PCI: j721e: Add per platform maximum lane settings
authorMatt Ranostay <mranostay@ti.com>
Tue, 28 Nov 2023 05:44:00 +0000 (11:14 +0530)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Wed, 13 Dec 2023 18:26:11 +0000 (18:26 +0000)
commit3ac7f14084f54bff9c31573d1ed59d047a34fe03
tree222b061b2a0d4d48f90f24eae81143df71a272c7
parentadc14d44d7cb676a5e2105a711e8a168eaebed6e
PCI: j721e: Add per platform maximum lane settings

Various platforms have different maximum amount of lanes that can be
selected. Add max_lanes to struct j721e_pcie to allow for detection of this
which is needed to calculate the needed bitmask size for the possible lane
count.

Link: https://lore.kernel.org/linux-pci/20231128054402.2155183-4-s-vadapalli@ti.com
Signed-off-by: Matt Ranostay <mranostay@ti.com>
Signed-off-by: Achal Verma <a-verma1@ti.com>
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
drivers/pci/controller/cadence/pci-j721e.c