usb: chipidea: imx: get available runtime dr mode for wakeup setting
authorPeter Chen <peter.chen@nxp.com>
Tue, 28 Jul 2020 06:12:11 +0000 (14:12 +0800)
committerPeter Chen <peter.chen@nxp.com>
Tue, 28 Jul 2020 06:12:11 +0000 (14:12 +0800)
commitd6f93d21001e4388a25b0b922e02e64bc6004d2f
tree2e15ef155f5cd2ffadbb958bcb0b2efd8bba9ef3
parent62b9825827518843f0f93dec6730ddcde14eb5b2
usb: chipidea: imx: get available runtime dr mode for wakeup setting

If runtime dr_mode is not dual-role, it doesn't need to enable ID
wakeup interrupt.
If runtime dr_mode is host, it doesn't need to enable VBUS
wakeup interrupt.
With these changes, the user will not get the unexpected wakeup
for single role use case. For example, the host-only use case at
Micro-AB port, the controller should not be waken up by only
plug in Micro-AB cable or the Micro-B cable with host.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/ci_hdrc_imx.c
drivers/usb/chipidea/ci_hdrc_imx.h
drivers/usb/chipidea/usbmisc_imx.c