On Tue, Jun 21, 2016 at 03:08:52PM +0200, Oliver Neukum wrote: > On Thu, 2016-05-19 at 15:44 +0300, Heikki Krogerus wrote: > > The purpose of this class is to provide unified interface for user > > space to get the status and basic information about USB Type-C > > Connectors in the system, control data role swapping, and when USB PD > > is available, also power role swapping and Alternate Modes. > > This raises two more questions. > > 1. Booting > > It is possible that our only display and, worse, our source > of power is a display that can be used only in an alternate mode > and is connected via a type C connector. > > We need some kind of boot time support for alternate modes. > > The firmware will surely want to display something. So it is possible > that we start the OS will a valid power contract. How do we deal > with that? Renegotiate? Systems where the firmware has to negotiate PD will likely provide firmware interface like UCSI, and where the OS has no direct interaction with the USB PD transceiver. In these case there is no need to renegotiate as we are just reporting in OS the initial state after bootup. We do have a system where the typec port is used to power the board. On these systems the firmware does not communicate PD (so we will never have the firmware displaying anything over Type-C on those systems), but the USB PD chargers for example are detected as 3.0A Type-C power supplies before any USB PD negotiation takes place, just like the spec says, and that is more then enough to power these boards. > 2. Multiple GPUs > > How do we know which GPU is connected to which port? With ACPI we will have to be able to bind the correct companion to the device presenting the DP alternate mode under the port. Just like we will have to bind the ACPI companion of the actual USB port to the typec port device itself. Cheers, -- heikki -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html