]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: dwc3: add needs_full_reinit flag
authorXu Yang <xu.yang_2@nxp.com>
Thu, 12 Feb 2026 09:40:27 +0000 (17:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Feb 2026 18:35:58 +0000 (10:35 -0800)
commita717321ad7c4046eec60fa9469e1401d20071d5a
treeacdce1f8e4202be7669e3971b117d478d1ed30ec
parent9ac1befac36c47f419d29c96bd7ba589dfe94422
usb: dwc3: add needs_full_reinit flag

The current design assumes that the controller remains powered when wakeup
is enabled. However, some SoCs provide wakeup capability even when the
controller itself is powered down, using separate dedicated wakeup logic.
This allows additional power savings, but requires the controller to be
fully re‑initialized after system resume.

To support these SoCs, introduce a flag needs_full_reinit for the purpose.
And the glue layer needs to indicate if the controller needs this behavior
by setting a same flag needs_full_reinit in dwc3_properties.

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://patch.msgid.link/20260212-add-flatten-dts-based-dwc3-imx-driver-v5-2-ff04a75ce221@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/glue.h