aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Jun <B47624@freescale.com>2014-03-31 20:04:50 -0400
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 12:02:33 -0400
commit6506caa121d2a062cfa4c0da868a939fc23893bd (patch)
tree2af964509f729f58ad3d9c257be45fbcc474037a
parentf8d17879c9594febb42fad3f8177ed515965a38e (diff)
ENGR00307558-3 usb: chipidea: host: init otg port number.
Init otg_port number of otg capable host to be 1 at host start. Signed-off-by: Li Jun <b47624@freescale.com>
-rw-r--r--drivers/usb/chipidea/host.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c
index 35506d9d62bd..db0a78576331 100644
--- a/drivers/usb/chipidea/host.c
+++ b/drivers/usb/chipidea/host.c
@@ -279,10 +279,17 @@ static int host_start(struct ci_hdrc *ci)
279 } 279 }
280 280
281 ret = usb_add_hcd(hcd, 0, 0); 281 ret = usb_add_hcd(hcd, 0, 0);
282 if (ret) 282 if (ret) {
283 goto disable_reg; 283 goto disable_reg;
284 else 284 } else {
285 struct usb_otg *otg = ci->transceiver->otg;
286
285 ci->hcd = hcd; 287 ci->hcd = hcd;
288 if (ci_otg_is_fsm_mode(ci))
289 hcd->self.otg_port = 1;
290 if (otg)
291 otg->host = &hcd->self;
292 }
286 293
287 if (ci->platdata->notify_event && 294 if (ci->platdata->notify_event &&
288 (ci->platdata->flags & CI_HDRC_IMX_IS_HSIC)) 295 (ci->platdata->flags & CI_HDRC_IMX_IS_HSIC))