]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit89a3f74b8a273b1ff8a21ce8cf8cbad4f3bdd15a
tree54dd6b23e794ca90e32f3bf53dae372f18493a2f
parentb6e701f0b37667dfb7f9e45fcd4fa4bfb1ea481a
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