usb: chipidea: udc: update gadget state after bus resume
authorLi Jun <jun.li@nxp.com>
Tue, 7 Mar 2017 02:35:01 +0000 (10:35 +0800)
committerPeter Chen <peter.chen@nxp.com>
Wed, 15 Mar 2017 03:30:43 +0000 (11:30 +0800)
commit4f4555cfe704913ce4ce836ab2707825d784a7cc
tree6e6393d5f4bd3fa9c3f16c80d23caf620a1eb2e9
parent4495c08e84729385774601b5146d51d9e5849f81
usb: chipidea: udc: update gadget state after bus resume

Gadget state is set to be suspended when bus suspened, but not updated
after resume, this patch saves the gadget state before suspend and
restores it after resume.

Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/ci.h
drivers/usb/chipidea/udc.c