Commit 42fd45b
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>1 parent b7de1b6 commit 42fd45b
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | 153 | | |
157 | 154 | | |
158 | 155 | | |
| |||
727 | 724 | | |
728 | 725 | | |
729 | 726 | | |
730 | | - | |
731 | | - | |
| 727 | + | |
| 728 | + | |
732 | 729 | | |
733 | 730 | | |
734 | 731 | | |
| |||
1711 | 1708 | | |
1712 | 1709 | | |
1713 | 1710 | | |
1714 | | - | |
| 1711 | + | |
1715 | 1712 | | |
1716 | 1713 | | |
1717 | 1714 | | |
1718 | 1715 | | |
1719 | 1716 | | |
1720 | 1717 | | |
1721 | 1718 | | |
1722 | | - | |
| 1719 | + | |
1723 | 1720 | | |
1724 | 1721 | | |
1725 | 1722 | | |
| |||
1733 | 1730 | | |
1734 | 1731 | | |
1735 | 1732 | | |
| 1733 | + | |
1736 | 1734 | | |
1737 | | - | |
| 1735 | + | |
1738 | 1736 | | |
1739 | 1737 | | |
1740 | 1738 | | |
| |||
0 commit comments