From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758010AbcFAJ3v (ORCPT ); Wed, 1 Jun 2016 05:29:51 -0400 Received: from mx2.suse.de ([195.135.220.15]:60249 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757491AbcFAJ3s (ORCPT ); Wed, 1 Jun 2016 05:29:48 -0400 Message-ID: <1464773169.4051.8.camel@suse.com> Subject: Re: [RFC PATCHv2] usb: USB Type-C Connector Class From: Oliver Neukum To: Heikki Krogerus Cc: Guenter Roeck , Andy Shevchenko , Rajaram R , Felipe Balbi , Mathias Nyman , Greg KH , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Date: Wed, 01 Jun 2016 11:26:09 +0200 In-Reply-To: <1463661894-22820-1-git-send-email-heikki.krogerus@linux.intel.com> References: <1463661894-22820-1-git-send-email-heikki.krogerus@linux.intel.com> 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 Thu, 2016-05-19 at 15:44 +0300, Heikki Krogerus wrote: > Just noticed that the "active" file is for now read only, but it needs > to be changed to writable. That file will of course provide means for > the userspace to Exit and Enter modes. But please note that the > responsibility of the dependencies between the modes, say, if a plug > needs to be in one mode or the other in order for the partner to enter > some specific mode, will fall on the Alternate Mode specific drivers > once we have the altmode bus. I remember there were concerns about > this in the original thread. There's one thing we haven't touched upon yet. And I cannot really find an answer in the spec. What do we do if we return from S4 or S3? I think we need to restore the ALternate Mode because our display may be running over that Alternate Mode. If we want to support USB persist we also need to restore data role after S4. Regards Oliver