Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753513AbdCWITT (ORCPT ); Thu, 23 Mar 2017 04:19:19 -0400 Received: from mga04.intel.com ([192.55.52.120]:4834 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751757AbdCWITR (ORCPT ); Thu, 23 Mar 2017 04:19:17 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,208,1486454400"; d="scan'208";a="63991866" Date: Thu, 23 Mar 2017 10:16:08 +0200 From: Heikki Krogerus To: Mats Karrman Cc: Greg KH , Guenter Roeck , Felipe Balbi , Oliver Neukum , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v17 0/3] USB Type-C Connector class Message-ID: <20170323081608.GA17877@kuha.fi.intel.com> References: <20170221142405.76299-1-heikki.krogerus@linux.intel.com> <20170321102337.GA9627@kroah.com> <20170321103737.GB29812@kuha.fi.intel.com> <80e41065-51e9-5064-c4d6-6fb6075de129@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <80e41065-51e9-5064-c4d6-6fb6075de129@gmail.com> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2117 Lines: 49 Hi Mats, On Wed, Mar 22, 2017 at 10:15:20PM +0100, Mats Karrman wrote: > On 03/21/2017 11:37 AM, Heikki Krogerus wrote: > > > > I'm lost in the long thread here, is this series still ready to be > > > merged in, or is there another version that is being worked on? > > There was one documentation fix proposed Mats. The rest of the thread > > was not about these patches. > > > > I'll send one more version and fix the documentation. > > > A bit late but... > > After reading a bit more I found that there is a miss-match between > Documentation/ABI/testing/sysfs-class-typec on one side and the actual > code and Documentation/usb/typec.rst on the other side. In the first it > looks like all attribute groups are flat under typec/ but in the code > and the other document they are instead created in a tree, e.g.: > > /sys/class/typec/port0/ > /sys/class/typec/port0/svid-ff01/ > /sys/class/typec/port0/svid-ff01/mode0/ > /sys/class/typec/port0/port0-partner/ > /sys/class/typec/port0/port0-cable/ > /sys/class/typec/port0/port0-cable/identity/ > /sys/class/typec/port0/port0-cable/port0-plug0/ > /sys/class/typec/port0/port0-cable/port0-plug1/ Documentation/ABI/testing/sysfs-class-typec describes the attributes from the classes point of view. Documentation/usb/typec.rst tries to explain the actual hierarchy of the devices that the current typec class driver generates, however the "class" does not care about that. Every device will simply have a link added to the class directory (/sys/class/typec/ in our case) regardless of their parent. For example, port0 and its partners: /sys/class/typec/port0 -> ../../devices/////typec/port0 /sys/class/typec/port0-partner -> ../../devices/////typec/port0/port0-partner /sys/class/typec/port0-cable -> ../../devices/////typec/port0/port0-cable /sys/class/typec/port0-plug0 -> ../../devices/////typec/port0/port0-cable/port0-plug0 /sys/class/typec/port0-plug1 -> ../../devices/////typec/port0/port0-cable/port0-plug1 Thanks, -- heikki