]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI: brcmstb: Set MLW based on "num-lanes" DT property if present
authorJim Quinlan <james.quinlan@broadcom.com>
Fri, 30 May 2025 22:40:33 +0000 (18:40 -0400)
committerManivannan Sadhasivam <mani@kernel.org>
Mon, 23 Jun 2025 11:52:40 +0000 (05:52 -0600)
commita364d10ffe361fb34c3838d33604da493045de1e
treeaf7ded0ee082ae1422c93a2ebd8eded0acb3b66e
parentdbb1258daf75f2b98e465ba5a0e26073eda6e539
PCI: brcmstb: Set MLW based on "num-lanes" DT property if present

By default, the driver relies on the default hardware defined value for the
Max Link Width (MLW) capability. But if the "num-lanes" DT property is
present, assume that the chip's default capability information is incorrect
or undesired, and use the specified value instead.

Signed-off-by: Jim Quinlan <james.quinlan@broadcom.com>
[mani: reworded the description and comments]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20250530224035.41886-3-james.quinlan@broadcom.com
drivers/pci/controller/pcie-brcmstb.c