From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751915AbcF0MN3 (ORCPT ); Mon, 27 Jun 2016 08:13:29 -0400 Received: from mga03.intel.com ([134.134.136.65]:55428 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751858AbcF0MN0 (ORCPT ); Mon, 27 Jun 2016 08:13:26 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,536,1459839600"; d="scan'208";a="984032595" Date: Mon, 27 Jun 2016 15:13:21 +0300 From: Heikki Krogerus To: Rajaram R Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Oliver Neukum , Guenter Roeck Subject: Re: [PATCHv3 1/2] usb: USB Type-C connector class Message-ID: <20160627121321.GD20801@kuha.fi.intel.com> References: <1466520711-125758-1-git-send-email-heikki.krogerus@linux.intel.com> <1466520711-125758-2-git-send-email-heikki.krogerus@linux.intel.com> <20160627095120.GC20801@kuha.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Jun 27, 2016 at 03:51:08PM +0530, Rajaram R wrote: > May be I am missing user or usage of the driver.. I see this driver is > providing limited information of the Type-C connectors or the port > partner Yes, this interface can't provide directly information received from PD commands like Discover Identity. We will have to present the partners even when USB PD is not supported and in a consistent fashion. Some details will be available in any case indirectly. Like if there are modes, there will be devices presenting them, and the product type in case of partners will be the partner type. But there are a couple of attributes I have been thinking about adding for the partners: supported_data_roles supports_usb_power_delivery The supported data roles would respond bits 30 and 31 of the ID Header VDO. But when the partner does not support USB PD, we will have to report "unknown" in it. Oliver, Guenter! How do you guys feel about those? Is there any use for them? > On Mon, Jun 27, 2016 at 3:21 PM, Heikki Krogerus > wrote: > > On Fri, Jun 24, 2016 at 07:54:12PM +0530, Rajaram R wrote: > >> On Tue, Jun 21, 2016 at 8:21 PM, Heikki Krogerus > >> wrote: > >> > The purpose of USB Type-C connector class is to provide > >> > unified interface for the user space to get the status and > >> > basic information about USB Type-C connectors on a system, > >> > >> Since we are defining this is as a unified interface for user space, > >> will the interface include identity details of local port and peer. > >> Or am I over looking something ? > > > > By peer, do you mean the partners? Sorry but could you elaborate the > > question? Thanks, -- heikki