public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] PCI: mediatek-gen3: Support limiting link speed and width
@ 2024-11-04 11:49 AngeloGioacchino Del Regno
  2024-11-04 11:49 ` [PATCH v4 1/2] PCI: mediatek-gen3: Add support for setting max-link-speed limit AngeloGioacchino Del Regno
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-11-04 11:49 UTC (permalink / raw)
  To: linux-pci
  Cc: ryder.lee, jianjun.wang, lpieralisi, kw, robh, bhelgaas,
	matthias.bgg, angelogioacchino.delregno, linux-mediatek,
	linux-kernel, linux-arm-kernel, kernel, fshao

Changes in v4:
 - Addressed comments from Jianjun Wang's review on v3

Changes in v3:
 - Addressed comments from Fei Shao's review on v2

Changes in v2:
 - Rebased on next-20240917

This series adds support for limiting the PCI-Express link speed
(or PCIe gen restriction) and link width (number of lanes) in the
pcie-mediatek-gen3 driver.

The maximum supported pcie gen is read from the controller itself,
so defining a max gen through platform data for each SoC is avoided.

Both are done by adding support for the standard devicetree properties
`max-link-speed` and `num-lanes`.

Please note that changing the bindings is not required, as those do
already allow specifying those properties for this controller.

AngeloGioacchino Del Regno (2):
  PCI: mediatek-gen3: Add support for setting max-link-speed limit
  PCI: mediatek-gen3: Add support for restricting link width

 drivers/pci/controller/pcie-mediatek-gen3.c | 75 ++++++++++++++++++++-
 1 file changed, 73 insertions(+), 2 deletions(-)

-- 
2.46.1



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-11-11 21:04 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-04 11:49 [PATCH v4 0/2] PCI: mediatek-gen3: Support limiting link speed and width AngeloGioacchino Del Regno
2024-11-04 11:49 ` [PATCH v4 1/2] PCI: mediatek-gen3: Add support for setting max-link-speed limit AngeloGioacchino Del Regno
2024-11-04 13:06   ` Krzysztof Wilczyński
2024-11-04 13:10     ` AngeloGioacchino Del Regno
2024-11-04 13:25       ` Krzysztof Wilczyński
2024-11-08  1:43         ` Jianjun Wang (王建军)
2024-11-11 20:47           ` Krzysztof Wilczyński
2024-11-06  1:22   ` Bjorn Helgaas
2024-11-04 11:49 ` [PATCH v4 2/2] PCI: mediatek-gen3: Add support for restricting link width AngeloGioacchino Del Regno
2024-11-04 13:20   ` Krzysztof Wilczyński
2024-11-06 13:29     ` AngeloGioacchino Del Regno
2024-11-06 14:02       ` Krzysztof Wilczyński
2024-11-06  1:24   ` Bjorn Helgaas
2024-11-06  7:43     ` Jianjun Wang (王建军)
2024-11-04 17:00 ` [PATCH v4 0/2] PCI: mediatek-gen3: Support limiting link speed and width Krzysztof Wilczyński
2024-11-04 17:02   ` Krzysztof Wilczyński

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox