diff options
author | Manivannan Sadhasivam <[email protected]> | 2024-09-11 20:56:27 +0530 |
---|---|---|
committer | Krzysztof Wilczyński <[email protected]> | 2024-09-13 14:44:55 +0000 |
commit | 19a69cbd9d436fe503e5cb6dade76fe371244d4f (patch) | |
tree | b4cedb111843962aa9de497c815c18db7d6fc2e3 /scripts/generate_rust_analyzer.py | |
parent | 2cebf68a24abb0552ea59cf928829acd51f8b175 (diff) |
PCI: dwc: Always cache the maximum link speed value in dw_pcie::max_link_speed
Currently, the dw_pcie::max_link_speed has a valid value only if the
controller driver restricts the maximum link speed in the driver or if
the platform does so in the devicetree using the 'max-link-speed'
property.
But having the maximum supported link speed of the platform would be
helpful for the vendor drivers to configure any link specific settings.
So in the case of non-valid value in dw_pcie::max_link_speed, just cache
the hardware default value from Link Capability register.
While at it, remove the 'max_link_speed' argument to the
dw_pcie_link_set_max_speed() function since the value can be
retrieved within the function.
Link: https://lore.kernel.org/linux-pci/[email protected]
Tested-by: Johan Hovold <[email protected]>
Signed-off-by: Manivannan Sadhasivam <[email protected]>
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Reviewed-by: Johan Hovold <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions