]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
MLK-10101-5 usb: chipidea: otg: init otg_fsm of usb_bus while start host
authorLi Jun <jun.li@freescale.com>
Tue, 27 Jan 2015 09:26:48 +0000 (17:26 +0800)
committerLi Jun <jun.li@freescale.com>
Wed, 28 Jan 2015 03:08:38 +0000 (11:08 +0800)
Set otg_fsm of usb_bus to be ci->fsm while start host.

Signed-off-by: Li Jun <jun.li@freescale.com>
drivers/usb/chipidea/host.c

index 40131e4195ee5f3200befba96afb17e49dec2036..85febf7c0e0114ac33b3ee2c8a1c07229796800f 100644 (file)
@@ -264,6 +264,7 @@ static int host_start(struct ci_hdrc *ci)
                ci->hcd = hcd;
 
                if (ci_otg_is_fsm_mode(ci)) {
+                       hcd->self.otg_fsm = &ci->fsm;
                        otg->host = &hcd->self;
                        hcd->self.otg_port = 1;
                }