Enable dwc3 to be wakeup source in runtime resume callback function
and disable dwc3 to be wake up source in runtime suspend. Change pd
in order to control usb pd base on the connect state of usb controller
and fix the detect fail bug of otg port after suspend and resume.
Change-Id: Ic204a82952eb5dd626945189e18a3d2cc40aa6d9
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
for (i = 0; i < rockchip->num_clocks; i++)
clk_disable(rockchip->clks[i]);
+ device_init_wakeup(dev, false);
+
return 0;
}
for (i = 0; i < rockchip->num_clocks; i++)
clk_enable(rockchip->clks[i]);
+ device_init_wakeup(dev, true);
+
return 0;
}