Skip to content

Commit cef7300

Browse files
quic-kdybciobjorn-helgaas
authored andcommitted
PCI: dwc: Support 16-lane operation
Some hosts support 16 lanes of PCIe. Make num-lanes accept that number. Signed-off-by: Konrad Dybcio <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 8f5ae30 commit cef7300

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/pci/controller/dwc/pcie-designware.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,9 @@ static void dw_pcie_link_set_max_link_width(struct dw_pcie *pci, u32 num_lanes)
841841
case 8:
842842
plc |= PORT_LINK_MODE_8_LANES;
843843
break;
844+
case 16:
845+
plc |= PORT_LINK_MODE_16_LANES;
846+
break;
844847
default:
845848
dev_err(pci->dev, "num-lanes %u: invalid value\n", num_lanes);
846849
return;

drivers/pci/controller/dwc/pcie-designware.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
#define PORT_LINK_MODE_2_LANES PORT_LINK_MODE(0x3)
9191
#define PORT_LINK_MODE_4_LANES PORT_LINK_MODE(0x7)
9292
#define PORT_LINK_MODE_8_LANES PORT_LINK_MODE(0xf)
93+
#define PORT_LINK_MODE_16_LANES PORT_LINK_MODE(0x1f)
9394

9495
#define PCIE_PORT_LANE_SKEW 0x714
9596
#define PORT_LANE_SKEW_INSERT_MASK GENMASK(23, 0)

0 commit comments

Comments
 (0)