]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: qcom: fix wakeup implementation
authorJohan Hovold <johan+linaro@kernel.org>
Thu, 4 Aug 2022 15:10:00 +0000 (17:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Aug 2022 17:33:40 +0000 (19:33 +0200)
commita5d94f356eacbc2d73a3bfb0c9c1d077136e42f6
treedcc9c5186048b0647535c013ed9850ca0e3a2472
parentf6a74deff57579e0f74fc9113bde3028a4a9fb8a
usb: dwc3: qcom: fix wakeup implementation

It is the Qualcomm glue wakeup interrupts that may be able to wake the
system from suspend and this can now be described in the devicetree.

Move the wakeup-source property handling over from the core driver and
instead propagate the capability setting to the core device during
probe.

This is needed as there is currently no way for the core driver to query
the wakeup setting of the glue device, but it is the core driver that
manages the PHY power state during suspend.

Also don't leave the PHYs enabled when system wakeup has been disabled
through sysfs.

Fixes: a0e53ba3242e ("usb: dwc3: core: Host wake up support from system suspend")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220804151001.23612-9-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/dwc3-qcom.c