Files
erofs-linux/drivers/pci/controller
Florian Fainelli ed831e7ea1 PCI: brcmstb: Assign pcie->gen from of_pci_get_max_link_speed()
After commit 03f9209369 ("PCI: controller: Validate max-link-speed"),
pcie->gen stopped being assigned and as a result the established PCIe link
would stop supporting Gen3 speeds on 2712 since pcie->gen is used to
populate LnkCntl2 and LnkCap in brcm_pcie_set_gen().

If the 'max-link-speed' property is not specified, or it exceeds Gen3,
resort to the HW defaults.

Link: https://github.com/raspberrypi/linux/issues/7343
Reported-by: Dom Cobley <[email protected]>
Reported-by: Phil Elwell <[email protected]>
Fixes: 03f9209369 ("PCI: controller: Validate max-link-speed")
Signed-off-by: Florian Fainelli <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Hans Zhang <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Link: https://patch.msgid.link/[email protected]
2026-05-15 13:09:52 -05:00
..
…
…
…