diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2023-10-24 14:03:36 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2023-10-24 10:53:58 -0500 |
commit | 92af77ca26f75f7874634c8ac2f744f86ec56e88 (patch) | |
tree | ae3e6a14d9d7e57a421a084881f9ddc7a773b29c /fs | |
parent | b09d0f98a434bd6b9b9e0fb63bebfcac5e1a679e (diff) | |
download | linux-stable-92af77ca26f75f7874634c8ac2f744f86ec56e88.tar.gz linux-stable-92af77ca26f75f7874634c8ac2f744f86ec56e88.tar.bz2 linux-stable-92af77ca26f75f7874634c8ac2f744f86ec56e88.zip |
PCI: dwc: Use FIELD_GET/PREP()
Convert open-coded variants of PCI field access into FIELD_GET/PREP()
to make the code easier to understand.
Add two missing defines into pci_regs.h. Logically, the Max No-Snoop
Latency Register is a separate word sized register in the PCIe spec,
but the pre-existing LTR defines in pci_regs.h with dword long values
seem to consider the registers together (the same goes for the only
user). Thus, follow the custom and make the new values also take both
word long LTR registers as a joint dword register.
Link: https://lore.kernel.org/r/20231024110336.26264-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions