summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-05-05 11:54:35 +0200
committerSimon Glass <sjg@chromium.org>2015-05-05 20:58:42 -0600
commitcb8a2c148a55adfd0f07e723eedbc4ef95e8226d (patch)
treec30b8a611cfebe7df0ea6fea175623d1bbfbd599 /drivers/usb
parentfcdd8aaa48dfcac492cbac5436d9edc3f5928325 (diff)
downloadtalos-obmc-uboot-cb8a2c148a55adfd0f07e723eedbc4ef95e8226d.tar.gz
talos-obmc-uboot-cb8a2c148a55adfd0f07e723eedbc4ef95e8226d.zip
dm: usb: Set desc_before_addr from ehci dm code
Without this usb-1 device descriptors do not get read properly. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ehci-hcd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 9471bcb362..46d01d40e8 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -1579,12 +1579,15 @@ int ehci_register(struct udevice *dev, struct ehci_hccr *hccr,
struct ehci_hcor *hcor, const struct ehci_ops *ops,
uint tweaks, enum usb_init_type init)
{
+ struct usb_bus_priv *priv = dev_get_uclass_priv(dev);
struct ehci_ctrl *ctrl = dev_get_priv(dev);
int ret;
debug("%s: dev='%s', ctrl=%p, hccr=%p, hcor=%p, init=%d\n", __func__,
dev->name, ctrl, hccr, hcor, init);
+ priv->desc_before_addr = true;
+
ehci_setup_ops(ctrl, ops);
ctrl->hccr = hccr;
ctrl->hcor = hcor;
OpenPOWER on IntegriCloud