diff options
author | Pali Rohár <pali@kernel.org> | 2021-10-07 14:51:01 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-10-14 19:45:07 -0400 |
commit | 43dad07cd45dba129487a8dc55de9f4f850ae7d7 (patch) | |
tree | c1dd0b4ea2e9719c22af0accd2cca2d9fc20ed8f /cmd | |
parent | e6335d3eaafc60b74bd05761b2bf0e57ad429aa7 (diff) | |
download | u-boot-43dad07cd45dba129487a8dc55de9f4f850ae7d7.zip u-boot-43dad07cd45dba129487a8dc55de9f4f850ae7d7.tar.gz u-boot-43dad07cd45dba129487a8dc55de9f4f850ae7d7.tar.bz2 |
pci: Fix showing registers
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>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 & 0x03) { + switch (header_type & 0x7f) { case PCI_HEADER_TYPE_NORMAL: /* "normal" PCI device */ pci_show_regs(dev, regs_normal); break; |