Re: [RFC PATCHv2] usb: USB Type-C Connector Class
From: Guenter Roeck
Date: Wed Jun 01 2016 - 09:34:24 EST
On 06/01/2016 02:04 AM, Oliver Neukum wrote:
On Wed, 2016-06-01 at 11:23 +0300, Heikki Krogerus wrote:
I think we can still add them later if they are still seen as
necessity later on, tough I seriously doubt it. It would not be
ideal, but adding an attribute should not really break anything,
right? Removing would.
However, how do we learn that the other side has triggered a reset?
USB PD specification, section 126.96.36.199 (Modal Operation and Hard Reset):
A Hard Reset shall cause all Active Modes to be exited by both Port Partners
and any Cable Plugs (see Section 188.8.131.52.4).
Section 184.108.40.206.4 (Enter Mode Command):
The following events shall also cause the Port Partners and Cable Plug(s) to exit all Active Modes:
- A PD Hard Reset
- The Port Partners or Cable Plug(s) are Detached
- A Cable Reset (only exits the Cable Plugâs Active Modes)
The class code would not explicitly learn about the reset,
but it would be informed about the exited modes.