summaryrefslogtreecommitdiff
path: root/tools/workqueue/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorJanne Grunau <j@jannau.net>2026-01-09 11:13:48 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-14 16:02:54 +0100
commit42c85d89b8d677b51f6a75569c69299a46d9f03d (patch)
tree44a84dfbce3e84843637da244716eebe64fb2f37 /tools/workqueue/git@git.tavy.me:linux.git
parentd13b6a128a12e528bb18f971f2969feb286f45c7 (diff)
usb: dwc3: apple: Ignore USB role switches to the active role
Ignore USB role switches if dwc3-apple is already in the desired state. The USB-C port controller on M2 and M1/M2 Pro/Max/Ultra devices issues additional interrupts which result in USB role switches to the already active role. Ignore these USB role switches to ensure the USB-C port controller and dwc3-apple are always in a consistent state. This matches the behaviour in __dwc3_set_mode() in core.c. Fixes detecting USB 2.0 and 3.x devices on the affected systems. The reset caused by the additional role switch appears to leave the USB devices in a state which prevents detection when the phy and dwc3 is brought back up again. Fixes: 0ec946d32ef7 ("usb: dwc3: Add Apple Silicon DWC3 glue layer driver") Cc: stable <stable@kernel.org> Signed-off-by: Janne Grunau <j@jannau.net> Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Reviewed-by: Sven Peter <sven@kernel.org> Tested-by: Sven Peter <sven@kernel.org> # M1 mac mini and macbook air Link: https://patch.msgid.link/20260109-apple-dwc3-role-switch-v1-1-11623b0f6222@jannau.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/workqueue/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions