On Wed, 9 Oct 2024 12:52:18 +0300 Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx> wrote: > pcie_update_link_speed() is passed the Link Status register but not all > callers have that value at hand nor need the value. > > Refactor pcie_update_link_speed() to include reading the Link Status > register and create __pcie_update_link_speed() which can be used by the > hotplug code that has the register value at hand beforehand (and needs > the value for other purposes). > > Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>