summaryrefslogtreecommitdiff
path: root/drivers/usb/core/phy.h
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2022-08-04 17:09:54 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-18 19:33:40 +0200
commit762e744922b566b47d15b195646440ca64257e91 (patch)
treedf14eb81e973f87e2075d0d1ee2c4e40706e7ab3 /drivers/usb/core/phy.h
parentd2ac7bef95c9ead307801ccb6cb6dfbeb14247bf (diff)
Revert "usb: dwc3: qcom: Keep power domain on to retain controller status"
This reverts commit d9be8d5c5b032e5383ff5c404ff4155e9c705429. Generic power-domain flags must be set before the power-domain is initialised and must specifically not be modified by drivers for devices that happen to be in the domain. To make sure that USB power-domains are left enabled during system suspend when a device in the domain is in the wakeup path, the GENPD_FLAG_ACTIVE_WAKEUP flag should instead be set for the domain unconditionally when it is registered. Note that this also avoids keeping power-domains on during suspend when wakeup has not been enabled (e.g. through sysfs). For the runtime PM case, making sure that the PHYs are not suspended and that they are in the same domain as the controller prevents the domain from being suspended. If there are cases where this is not possible or desirable, the genpd implementation may need to be extended. Fixes: d9be8d5c5b03 ("usb: dwc3: qcom: Keep power domain on to retain controller status") Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Link: https://lore.kernel.org/r/20220804151001.23612-3-johan+linaro@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/phy.h')
0 files changed, 0 insertions, 0 deletions