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

PCI: Update code comment on PCI_EXP_LNKCAP_SLS for PCIe r3.0

JIRA: https://issues.redhat.com/browse/RHEL-83611
Upstream Status: e10c5cbd1c912c06d887c8a1980ac57e21d87b6f

commit e10c5cbd1c912c06d887c8a1980ac57e21d87b6f
Author: Lukas Wunner <lukas@wunner.de>
Date:   Mon Dec 16 20:18:41 2024 +0100

    PCI: Update code comment on PCI_EXP_LNKCAP_SLS for PCIe r3.0

    Niklas notes that the code comment on the PCI_EXP_LNKCAP_SLS macro is
    outdated as it reflects the meaning of the field prior to PCIe r3.0.
    Update it to avoid confusion.

    Closes: https://lore.kernel.org/r/70829798889c6d779ca0f6cd3260a765780d1369.camel@kernel.org
    Link: https://lore.kernel.org/r/6152bd17cbe0876365d5f4624fc317529f4bbc85.1734376438.git.lukas@wunner.de


Reported-by: default avatarNiklas Schnelle <niks@kernel.org>
Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
Signed-off-by: default avatarKrzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: default avatarNiklas Schnelle <schnelle@linux.ibm.com>

Signed-off-by: default avatarMyron Stowe <mstowe@redhat.com>
parent 605bddf9
No related branches found
No related tags found
No related merge requests found
......@@ -532,7 +532,7 @@
#define PCI_EXP_DEVSTA_TRPND 0x0020 /* Transactions Pending */
#define PCI_CAP_EXP_RC_ENDPOINT_SIZEOF_V1 12 /* v1 endpoints without link end here */
#define PCI_EXP_LNKCAP 0x0c /* Link Capabilities */
#define PCI_EXP_LNKCAP_SLS 0x0000000f /* Supported Link Speeds */
#define PCI_EXP_LNKCAP_SLS 0x0000000f /* Max Link Speed (prior to PCIe r3.0: Supported Link Speeds) */
#define PCI_EXP_LNKCAP_SLS_2_5GB 0x00000001 /* LNKCAP2 SLS Vector bit 0 */
#define PCI_EXP_LNKCAP_SLS_5_0GB 0x00000002 /* LNKCAP2 SLS Vector bit 1 */
#define PCI_EXP_LNKCAP_SLS_8_0GB 0x00000003 /* LNKCAP2 SLS Vector bit 2 */
......
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