]> mj.ucw.cz Git - pciutils.git/commit
lspci: zero address in IO isn't always unassigned
authorAaron Sierra <asierra@xes-inc.com>
Fri, 25 May 2012 19:11:39 +0000 (14:11 -0500)
committerMartin Mares <mj@ucw.cz>
Mon, 28 May 2012 13:16:55 +0000 (15:16 +0200)
commit00bf6625153067e3d894beb984fc3a2a381f8700
tree1ddfee2bf8c64428e45d41413e785d48c2a0bf9a
parent58b5c2e1643c8b80b16a46f3003bdb68777ef4d4
lspci: zero address in IO isn't always unassigned

Zero is a valid address in I/O space, so display it and it's associated
size when IO is enabled in the PCI command register.

From arch/powerpc/kernel/pci-common.c:

/* Here, we are a bit different than memory as typically IO space
 * starting at low addresses -is- valid. What we do instead [is] that
 * we consider as unassigned anything that doesn't have IO enabled
 * in the PCI command register, and that's it.
 */

Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
lib/sysfs.c
lspci.c