EHCI driver missing bus_address assignment.
authorSteven A. Falco <sfalco@coincident.com>
Thu, 14 Jul 2011 01:01:26 +0000 (21:01 -0400)
committerPeter Stuge <peter@stuge.se>
Thu, 14 Jul 2011 01:43:05 +0000 (03:43 +0200)
Other USB drivers set the bus_address field.  EHCI should do this too.

Signed-off-by: Steven A. Falco <sfalco@coincident.com>
Change-Id: Ic4274c6744951ef7fa0cb135caf8b9f177d8bcaf
Reviewed-on: http://review.coreboot.org/99
Tested-by: build bot (Jenkins)
Reviewed-by: Peter Stuge <peter@stuge.se>
payloads/libpayload/drivers/usb/ehci.c

index 3df0477695aaf57b94b41335cf5c484fca0bc0c7..d97912140a21936366fb5628ad4557b1d1d3fe85 100644 (file)
@@ -336,6 +336,7 @@ ehci_init (pcidev_t addr)
        controller->create_intr_queue = ehci_create_intr_queue;
        controller->destroy_intr_queue = ehci_destroy_intr_queue;
        controller->poll_intr_queue = ehci_poll_intr_queue;
+       controller->bus_address = addr;
        for (i = 0; i < 128; i++) {
                controller->devices[i] = 0;
        }