]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: dwc: Update pci->num_lanes to maximum supported link width
authorKrishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Fri, 28 Mar 2025 10:28:31 +0000 (15:58 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Sat, 19 Apr 2025 14:12:38 +0000 (19:42 +0530)
commitf9eb654fb194e7c404d4984481a18edb9b1c1d7c
treea2f5ffc52d4e4bef818b128a7097311d05b7c2bc
parent57a4591df70900252265ecfd6eeba95ce2021504
PCI: dwc: Update pci->num_lanes to maximum supported link width

If the num-lanes property is not present in the devicetree, update
pci->num_lanes with the hardware supported maximum link width using
the newly introduced dw_pcie_link_get_max_link_width() API.

The API is used to get the Maximum Link Width (MLW) of the controller.

Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
[mani: reworded commit message a bit]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://patch.msgid.link/20250328-preset_v6-v9-3-22cfa0490518@oss.qualcomm.com
drivers/pci/controller/dwc/pcie-designware-host.c
drivers/pci/controller/dwc/pcie-designware.c
drivers/pci/controller/dwc/pcie-designware.h