]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI: j721e: Validate max-link-speed from DT
authorHans Zhang <18255117159@163.com>
Fri, 13 Mar 2026 16:55:20 +0000 (00:55 +0800)
committerManivannan Sadhasivam <mani@kernel.org>
Thu, 26 Mar 2026 18:31:31 +0000 (00:01 +0530)
commit126d04398cd4e29743828c38c21f39f46fc2e004
tree05bdad4244620a932de3270751cc32a8a2a0b937
parent0f34f647f19465b475b13e889dcb33526e166d24
PCI: j721e: Validate max-link-speed from DT

Use the new pcie_get_link_speed() helper to validate the value read from
the "max-link-speed" DT property.  If the value is missing or invalid,
fall back to Gen2 (speed = 2).  This prepares for the removal of the
range check in of_pci_get_max_link_speed().

Signed-off-by: Hans Zhang <18255117159@163.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260313165522.123518-4-18255117159@163.com
drivers/pci/controller/cadence/pci-j721e.c