Say I have a laptop and a powerbank (or two laptops) with USB type C connected together, then how is it decided which charges which?
Is it controlled by the driver? Does Linux kernel supports such control?
Update:
I see this patch set (currently v14) but it's not in mainline yet.
https://lwn.net/Articles/710741/
But something called UCSI is in 4.10 already:
http://lxr.free-electrons.com/source/drivers/usb/misc/Kconfig
270 config UCSI
271 tristate "USB Type-C Connector System Software Interface driver"
272 depends on ACPI
273 help
274 UCSI driver is meant to be used as a convenience tool for desktop and
275 server systems that are not equipped to handle USB in device mode. It
276 will always select USB host role for the USB Type-C ports on systems
277 that provide UCSI interface.
So is it correct to say that the Linux kernel driver for this problem is work in progress as of 4.10?