MLK-9897-2 usb: otg-fsm: check B-device state before sending polling request
authorLi Jun <jun.li@freescale.com>
Tue, 25 Nov 2014 04:08:48 +0000 (12:08 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:15 +0000 (14:47 -0500)
commitd9322f2e3d824a2e85ba237b2a904504812e3984
tree91f1e3ef6b51d5492d9a46b3834e40a70f8ad698
parent30d316cfee79ef8940800dbd21882b7719944877
MLK-9897-2 usb: otg-fsm: check B-device state before sending polling request

While system resume, the connected udev as B-device may not has been resumed,
if HNP polling request is sent to it, HNP polling may fail, this patch adds
check of the udev state to make sure it finished resume and to be configured
state before sending host request message, otherwise try next HNP polling
request.

Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Li Jun <jun.li@freescale.com>
(cherry picked from commit 2cff5eb7bd4feb70cd28ac4655e7433e57a17938)
(cherry picked from commit b6eea060a3760bdb24d1514a5130a346daba81c9)
drivers/usb/common/usb-otg-fsm.c