This patch fixes the issue on zynq USB failure with DM
when rootdev is not initialized. This variable is initalized
to zero in non driver model case but not in DM.

Signed-off-by: Siva Durga Prasad Paladugu <[email protected]>
---
- Tested on Zynq ZC702 board with USB DM driver model patches
  sent by Simon.
---
 drivers/usb/host/ehci-hcd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 13aa70d..8adffa6 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -1624,6 +1624,8 @@ int ehci_register(struct udevice *dev, struct ehci_hccr 
*hccr,
                        goto err;
        }
 
+       ctrl->rootdev = 0;
+
        ret = ehci_common_init(ctrl, tweaks);
        if (ret)
                goto err;
-- 
2.1.1

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to