]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: chipidea: core: detach power domain for ci_hdrc platform device
authorXu Yang <xu.yang_2@nxp.com>
Mon, 22 Sep 2025 02:21:08 +0000 (10:21 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 19 Nov 2025 17:06:49 +0000 (18:06 +0100)
commitdfdcfc19fe16f9a0612a119d7a741ed4d7206427
treee549a5b0d1031533e1f538bfec53d62e1fde6fab
parent3b7685da41838eda57f56e804014091769a93700
usb: chipidea: core: detach power domain for ci_hdrc platform device

When add a platform device by calling ci_hdrc_add_device(), this device
will reuse OF node of its parent device. If power-domains property is
provided in the OF node, both two platform devices will be attached to
the same power domain. This should be unnecessary and may bring other
inconsistent behavior. For example, to support wakeup capability, these
two platform device need different power domain state. The parent device
need NOT power domain on for out-band interrupt, but the ci_hdrc device
need power domain on for in-band interrupt. The i.MX95 Soc support
out-band wakeup interrupt, the user need to enable wakeup for the parent
device, but if the user also enable wakeup for ci_hdrc device, the power
domain will keep at on state finally. To exclude such inconsistent
behavior and simplify the power management, detach power domain for ci_hdrc
platform device.

Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Tested-by: Xu Yang <xu.yang_2@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/usb/chipidea/core.c