Skip to content
Commit 6a6468f4 authored by Mark Kettenis's avatar Mark Kettenis Committed by Marek Vasut
Browse files

usb: xhci-dwc3: Support role switch default role



When the device tree indicates support for role switching through
the "usb-role-switch" property, take the "role-switch-default-mode"
property into account when deciding which role to put the
controller into.

This makes USB devices work on Apple M1 systems where the device
tree may include a "dr_mode" property that is set to "otg", but
where we need to put the controller into "host" mode to see
devices connected to the type-C ports.

Signed-off-by: default avatarMark Kettenis <kettenis@openbsd.org>
parent f83bd23e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment