by crote · 1y ago · 0 comments
This isn't true. USB PD has both "data role swap" and "power role swap" commands, and they are independent from each other.
It even allows for things like a "fast role swap", where you can unplug the power source from a dock (so power now has to flow from laptop to dock, instead of dock to laptop) without any interruption of the data connection.
For example if you ask a USB-C power brick to let you swap to providing it power, it will reject that. Then some devices (like phones, tablets etc.) will only accept power when they're switched off, but will do either when they’re on. But some will happily let you switch to device mode and be a sink when they’re off, until the battery gets below a certain level and then they’ll only accept you providing it power. It all gets quite complex!
The company I work for makes devices that are always in device mode (called upstream facing port or UFP mode) but can provide power when they are plugged in themselves, so have to swap between source and sink. I’ve spent far too long debugging firmware issues with PD controllers because of this!
It sounded like the line you quote was expressing suprise that baseline USB power supply in USB-C - without implementing PD - can't do that. But apparently could with older USB OTG.