usb: dwc3: rockchip: force dwc3 suspend immediately after disconneted
authorMeng Dongyang <daniel.meng@rock-chips.com>
Tue, 11 Oct 2016 09:59:58 +0000 (17:59 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 13 Oct 2016 08:15:34 +0000 (16:15 +0800)
commitfb3805a55a9fd85ad72a7349c1ce396511122c8f
treebf0353789c68c81a5dd6be77ff6f17691d7861c2
parenta43c9c3095ee7fbdd90d50a5e5e9901d4906e8dd
usb: dwc3: rockchip: force dwc3 suspend immediately after disconneted

When usb device or host reconnect quickly, the dwc3 controller still
in the state of resume and can not resume again after receive connect
notify. So we need to suspend dwc3 controller immediately when
receive the notify of disconnect. This patch fix the bug "set device
address fail" when resume or quick reconnect.

Change-Id: Iaef6363cdece497f8d7be745017674e119fe3529
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
drivers/usb/dwc3/dwc3-rockchip.c