]> git.ipfire.org Git - thirdparty/pciutils.git/commit
lspci: Fix wrong read size for RootSta
authorJeffy Chen <jeffy.chen@rock-chips.com>
Fri, 30 Jun 2017 10:09:00 +0000 (18:09 +0800)
committerMartin Mares <mj@ucw.cz>
Wed, 5 Jul 2017 13:14:23 +0000 (15:14 +0200)
commit23c277980bb711eebfd588783509c6b9d5cc8507
treebc0d11c14f4fb2f7c50b35d72f4cc4c4f81e68f1
parentd9b1b8e350adbaf97713ce50b044f1c63d6a98cf
lspci: Fix wrong read size for RootSta

We are reading wrong size(word) for this cap, since:

RootSta has:
PCI_EXP_RTSTA_PME_STATUS  0x00010000 /* PME Status */
PCI_EXP_RTSTA_PME_PENDING 0x00020000 /* PME is Pending */

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
ls-caps.c