projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6335d3
)
pci: Fix showing registers
author
Pali Rohár
<pali@kernel.org>
Thu, 7 Oct 2021 12:51:01 +0000
(14:51 +0200)
committer
Tom Rini
<trini@konsulko.com>
Thu, 14 Oct 2021 23:45:07 +0000
(19:45 -0400)
Header type is 7-bit number so use all 7 bits when detecting header type
and not only 2 bits.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
cmd/pci.c
patch
|
blob
|
history
diff --git
a/cmd/pci.c
b/cmd/pci.c
index
4a82854
..
3b1863f
100644
(file)
--- a/
cmd/pci.c
+++ b/
cmd/pci.c
@@
-239,7
+239,7
@@
static void pci_header_show(struct udevice *dev)
pci_class_str(class));
pci_show_regs(dev, regs_rest);
- switch (header_type & 0x
03
) {
+ switch (header_type & 0x
7f
) {
case PCI_HEADER_TYPE_NORMAL: /* "normal" PCI device */
pci_show_regs(dev, regs_normal);
break;