]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00221217 usb: device: fix usb_state incorrect problem after pc sends resume
authorPeter Chen <peter.chen@freescale.com>
Thu, 23 Aug 2012 08:29:55 +0000 (16:29 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:17 +0000 (08:35 +0200)
commitd38ba15130c7bc3d55d5c9217bdb4b645694b8df
tree6540b070e34bb7f0420d598105d0edf8b5fa3c09
parentbfd27aa4bb019defd9c9423522c07e843821eb2e
ENGR00221217 usb: device: fix usb_state incorrect problem after pc sends resume

At pc sends suspend/resume case, the udc_controller->usb_state should
keep unchange during the suspend/resume process, at former code, the
fsl_udc_resume set udc_controller->usb_state to USB_STATE_ATTACHED
unconditionally. In fact, USB_STATE_ATTACHED stands for initial state
and should be set when we try to run controller.

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