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

From: Florian Fainelli

Date: Thu Sep 17 2026 - 15:43:03 EST


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@xxxxxxxxxxxx>

Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian