usb: dwc3: qcom: Configure wakeup interrupts during suspend
authorSandeep Maheswaram <quic_c_sanm@quicinc.com>
Mon, 13 Jun 2022 04:30:53 +0000 (10:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jun 2022 14:37:34 +0000 (16:37 +0200)
commit6895ea55c385c9afdd2aec1eef27ec24917a112f
tree54dd6b23e794ca90e32f3bf53dae372f18493a2f
parent360e8230516de94d74d30c64f0cdcf228b8e8b67
usb: dwc3: qcom: Configure wakeup interrupts during suspend

Configure DP/DM line interrupts based on the USB2 device attached to
the root hub port. When HS/FS device is connected, configure the DP line
as falling edge to detect both disconnect and remote wakeup scenarios. When
LS device is connected, configure DM line as falling edge to detect both
disconnect and remote wakeup. When no device is connected, configure both
DP and DM lines as rising edge to detect HS/HS/LS device connect scenario.

Reviewed-by: Pavankumar Kondeti <quic_pkondeti@quicinc.com>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Sandeep Maheswaram <quic_c_sanm@quicinc.com>
Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
Link: https://lore.kernel.org/r/1655094654-24052-5-git-send-email-quic_kriskura@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-qcom.c