]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: brcmstb: Use same constant table for config space access
authorJim Quinlan <james.quinlan@broadcom.com>
Fri, 14 Feb 2025 17:39:34 +0000 (12:39 -0500)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Tue, 4 Mar 2025 16:01:43 +0000 (16:01 +0000)
commit42fd45be82bbb5b6cf0103e9e701d9801709c348
tree0fbcfef03bd4dd50447c2d8404e990f71343e28a
parentb7de1b60ecab2f7b6f05d8116e93228a0bbb8563
PCI: brcmstb: Use same constant table for config space access

The constants EXT_CFG_DATA and EXT_CFG_INDEX vary by SoC, where one of
the map_bus methods used these constants, and the other used a different
set of constants.

Thankfully, there was no problem because the SoCs that used the latter
map_bus method all had the same register constants.

Thus, remove redundant constants and adjust the code to use the correct
constants accordingly.

While at it, update the value of EXT_CFG_DATA to use the 4k-page based
configuration space access system, which is what the second map_bus
method was already using.

Signed-off-by: Jim Quinlan <james.quinlan@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20250214173944.47506-7-james.quinlan@broadcom.com
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
drivers/pci/controller/pcie-brcmstb.c