]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: dwc3: qcom: Honor wakeup enabled/disabled state
authorMatthias Kaehlcke <mka@chromium.org>
Tue, 2 Mar 2021 18:37:03 +0000 (10:37 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 17 Mar 2021 18:48:08 +0000 (13:48 -0500)
commit1516194b4cb5b313960954672ce484ed7001b02e
tree7fef21aa8d68f9f69dfe0d25740f7b4a3f3a7030
parent012346f38fde748f7ce46c4b84b38782f63b1001
usb: dwc3: qcom: Honor wakeup enabled/disabled state

BugLink: https://bugs.launchpad.net/bugs/1919492
commit 2664deb0930643149d61cddbb66ada527ae180bd upstream.

The dwc3-qcom currently enables wakeup interrupts unconditionally
when suspending, however this should not be done when wakeup is
disabled (e.g. through the sysfs attribute power/wakeup). Only
enable wakeup interrupts when device_may_wakeup() returns true.

Fixes: a4333c3a6ba9 ("usb: dwc3: Add Qualcomm DWC3 glue driver")
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210302103659.v2.1.I44954d9e1169f2cf5c44e6454d357c75ddfa99a2@changeid
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/usb/dwc3/dwc3-qcom.c