From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752456AbcFBG2M (ORCPT ); Thu, 2 Jun 2016 02:28:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:45395 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751708AbcFBG2K (ORCPT ); Thu, 2 Jun 2016 02:28:10 -0400 Message-ID: <1464848668.8527.2.camel@suse.com> Subject: Re: [RFC PATCHv2] usb: USB Type-C Connector Class From: Oliver Neukum To: Guenter Roeck Cc: Heikki Krogerus , Andy Shevchenko , Rajaram R , Felipe Balbi , Mathias Nyman , Greg KH , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Date: Thu, 02 Jun 2016 08:24:28 +0200 In-Reply-To: <574EE452.3000805@roeck-us.net> 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> <574EE452.3000805@roeck-us.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2016-06-01 at 06:34 -0700, Guenter Roeck wrote: > The class code would not explicitly learn about the reset, > but it would be informed about the exited modes. That has drawbacks - it doesn't tell you what caused the mode to be left (if you UFP, it may be the regular command) - it is a race against your own command - it does not work if you are in basic USB mode Regards Oliver