usb: dwc3: fix logical errors and improve stability for rockchip platform
authorWu Liang feng <wulf@rock-chips.com>
Sat, 10 Sep 2016 05:37:08 +0000 (13:37 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 23 Sep 2016 07:03:29 +0000 (15:03 +0800)
commit8f2c7e7cd70bc19b61060dd0273f3ab37b044469
tree5c9b8f25c25490b773ee70a61b12568a0cbeac71
parent756d9ad54889396db40c1bca2ece8b9c07f0888d
usb: dwc3: fix logical errors and improve stability for rockchip platform

1. put clks err handle at the end of probe.

2. register extcon notifier after dwc3 core initialized successfully.

3. try to get extcon cable state in probe, this can avoid to
   lose the first extcon state notifier.

4. fix pm runtime handle and disable clks in remove operation

Change-Id: I0bea71206801139efb37a835b65562c051a2072e
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/dwc3/dwc3-rockchip.c