mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-20 20:04:46 +00:00
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>
This commit is contained in:
parent
e6335d3eaa
commit
43dad07cd4
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ static void pci_header_show(struct udevice *dev)
|
||||||
pci_class_str(class));
|
pci_class_str(class));
|
||||||
pci_show_regs(dev, regs_rest);
|
pci_show_regs(dev, regs_rest);
|
||||||
|
|
||||||
switch (header_type & 0x03) {
|
switch (header_type & 0x7f) {
|
||||||
case PCI_HEADER_TYPE_NORMAL: /* "normal" PCI device */
|
case PCI_HEADER_TYPE_NORMAL: /* "normal" PCI device */
|
||||||
pci_show_regs(dev, regs_normal);
|
pci_show_regs(dev, regs_normal);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue