Skip to content
Snippets Groups Projects
Commit bee6ce4b authored by Myron Stowe's avatar Myron Stowe
Browse files

PCI: Refactor pcie_update_link_speed()

JIRA: https://issues.redhat.com/browse/RHEL-81906
Upstream Status: e93d9fcfd7dc643eb5fce43053774d27bea2b263

commit e93d9fcfd7dc643eb5fce43053774d27bea2b263
Author: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Date:   Fri Oct 18 17:47:50 2024 +0300

    PCI: Refactor pcie_update_link_speed()

    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).

    Link: https://lore.kernel.org/r/20241018144755.7875-5-ilpo.jarvinen@linux.intel.com


Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>

Signed-off-by: default avatarMyron Stowe <mstowe@redhat.com>
parent 13bc7bd9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment