diff mbox series

[U-Boot,v1,4/5] usb, ohci: add warning if none on pci found

Message ID 20190716084907.1568340-5-hs@denx.de
State Accepted
Commit f9c7fecbeb938d9a17e31bf7c8766190752790ae
Delegated to: Marek Vasut
Headers show
Series usb, ohci-hcd: add usb ohci pci DM driver | expand

Commit Message

Heiko Schocher July 16, 2019, 8:49 a.m. UTC
Signed-off-by: Heiko Schocher <hs@denx.de>
---

 drivers/usb/host/ohci-hcd.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 23ea2af5d7..58aa824ec0 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -2047,8 +2047,11 @@  int usb_lowlevel_init(int index, enum usb_init_type init, void **controller)
 		pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &base);
 		printf("OHCI regs address 0x%08x\n", base);
 		gohci.regs = (struct ohci_regs *)base;
-	} else
+	} else {
+		printf("%s: OHCI devnr: %d not found\n", __func__,
+		       CONFIG_PCI_OHCI_DEVNO);
 		return -1;
+	}
 #else
 	gohci.regs = (struct ohci_regs *)CONFIG_SYS_USB_OHCI_REGS_BASE;
 #endif