From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757431AbcFANeV (ORCPT ); Wed, 1 Jun 2016 09:34:21 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:37284 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753715AbcFANeT (ORCPT ); Wed, 1 Jun 2016 09:34:19 -0400 Subject: Re: [RFC PATCHv2] usb: USB Type-C Connector Class To: Oliver Neukum , Heikki Krogerus References: <1463661894-22820-1-git-send-email-heikki.krogerus@linux.intel.com> <20160530131951.GA13055@kuha.fi.intel.com> <1464616767.5364.5.camel@suse.com> <20160531083121.GA10084@kuha.fi.intel.com> <1464684509.10800.16.camel@suse.com> <20160531120901.GB10084@kuha.fi.intel.com> <20160531124355.GC10084@kuha.fi.intel.com> <20160531172033.GB14007@roeck-us.net> <20160601082336.GE10084@kuha.fi.intel.com> <1464771866.4051.4.camel@suse.com> Cc: Andy Shevchenko , Rajaram R , Felipe Balbi , Mathias Nyman , Greg KH , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org From: Guenter Roeck Message-ID: <574EE452.3000805@roeck-us.net> Date: Wed, 1 Jun 2016 06:34:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <1464771866.4051.4.camel@suse.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Authenticated_sender: linux@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: linux@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: linux@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 6.8.2.2 (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 6.4.4.3.4). Section 6.4.4.3.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. Guenter