Commit 07ad580
committed
usb: dwc3: apple: Ignore USB role switches to the current role
Ignore USB role switches if dwc3-apple is already in the desired role.
The USB-C port controller on M2 and M1/M2 Pro/Max/Ultra devices receives
additional interrupts which result in usb_role_switch_set_role() calls
with the current role.
Ignore these USB role switches to ensure a consistent state between tipd
and dwc3-apple. This matches the behaviour in __dwc3_set_mode() in
core.c.
This fixes connecting USB2 and USB3 device without DP-altmode on Apple
silicon systems with M2 or M1/M2 Pro/Max/Ultra.
Signed-off-by: Janne Grunau <j@jannau.net>1 parent d83af04 commit 07ad580
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
342 | 359 | | |
343 | 360 | | |
344 | 361 | | |
| |||
0 commit comments