diff options
| author | Ilpo Järvinen <[email protected]> | 2023-09-19 12:56:44 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2023-10-10 20:00:52 +0000 |
| commit | 759574abd78e3b47ec45bbd31a64e8832cf73f97 (patch) | |
| tree | 23c64cc1e05c0302adc77a785f36ff8cf671ccc2 /drivers/pci/controller/dwc/pci-layerscape.c | |
| parent | Linux 6.6-rc1 (diff) | |
| download | kernel-759574abd78e3b47ec45bbd31a64e8832cf73f97.tar.gz kernel-759574abd78e3b47ec45bbd31a64e8832cf73f97.zip | |
PCI: tegra194: Use FIELD_GET()/FIELD_PREP() with Link Width fields
Use FIELD_GET() to extract PCIe Negotiated Link Width field instead of
custom masking and shifting.
Similarly, change custom code that misleadingly used
PCI_EXP_LNKSTA_NLW_SHIFT to prepare value for PCI_EXP_LNKCAP write
to use FIELD_PREP() with correct field define (PCI_EXP_LNKCAP_MLW).
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-layerscape.c')
0 files changed, 0 insertions, 0 deletions
