]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00270802 usb: otg: delete redundant vbus off operation
authorPeter Chen <peter.chen@freescale.com>
Fri, 12 Jul 2013 05:45:49 +0000 (13:45 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:14:14 +0000 (14:14 +0200)
commit2083f211f9924ed7478407d6cc04f905c3843611
treeba1ce1ba06c7dd8e108900e77205ef5e36ed811e
parent80d14c40e61b37805011a06e003eb8caf206d023
ENGR00270802 usb: otg: delete redundant vbus off operation

The problem locates at:

fsl_otg_start_host(fsm, 0);
if (pdata->wake_up_enable)
pdata->wake_up_enable(pdata, false);
otg_drv_vbus(fsm, 0);

fsl_otg_start_host(fsm, 0) internally calls fsl_otg_drv_vbus(), which does
the same thing as otg_drv_vbus(fsm, 0). More critically, we need disable
VBUS wakeup before close VBUS operation, otherwise unexpected VBUS
wakeup will occur. The solution is to remove the call of fsl_otg_drv_vbus()
in fsl_otg_start_host().

Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/otg/fsl_otg.c