[PATCH 13/13] PCI: brcmstb: Split up complicated function into two variants

Florian Fainelli florian.fainelli at broadcom.com
Thu Sep 17 10:09:37 PDT 2026


On 9/11/26 16:35, Jim Quinlan wrote:
> The function brcm_pcie_get_inbound_wins() is abstruse.  Most of
> its code is used exclusively by older chips, where the PCIe HW employed a
> baroque internal inbound window mapping scheme which was an artifact for
> when the PCIe would be configured as an endpoint.
> 
> Create two variants of this function, one for the newer chips and one for
> the older chips, and assign them using the config_data structures.
> 
> Signed-off-by: Jim Quinlan <james.quinlan at broadcom.com>

Reviewed-by: Florian Fainelli <florian.fainelli at broadcom.com>
-- 
Florian



More information about the linux-arm-kernel mailing list