Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1605488 > unrolled thread
| Started by | Greg KH <gregkh@linuxfoundation.org> |
|---|---|
| First post | 2017-03-21 11:30 +0100 |
| Last post | 2017-03-23 09:20 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v17 0/3] USB Type-C Connector class Greg KH <gregkh@linuxfoundation.org> - 2017-03-21 11:30 +0100
Re: [PATCH v17 0/3] USB Type-C Connector class Heikki Krogerus <heikki.krogerus@linux.intel.com> - 2017-03-21 11:40 +0100
Re: [PATCH v17 0/3] USB Type-C Connector class Mats Karrman <mats.dev.list@gmail.com> - 2017-03-22 22:20 +0100
Re: [PATCH v17 0/3] USB Type-C Connector class Heikki Krogerus <heikki.krogerus@linux.intel.com> - 2017-03-23 09:20 +0100
| From | Greg KH <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2017-03-21 11:30 +0100 |
| Subject | Re: [PATCH v17 0/3] USB Type-C Connector class |
| Message-ID | <tnpd7-20s-3@gated-at.bofh.it> |
On Tue, Feb 21, 2017 at 05:24:02PM +0300, Heikki Krogerus wrote: > The USB Type-C class is meant to provide unified interface to the > userspace to present the USB Type-C ports in a system. > > Changes since v16: > - Using PTR_ERR_OR_ZERO macro in typec_init(). 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? thanks, greg k-h
[toc] | [next] | [standalone]
| From | Heikki Krogerus <heikki.krogerus@linux.intel.com> |
|---|---|
| Date | 2017-03-21 11:40 +0100 |
| Message-ID | <tnpmO-24D-11@gated-at.bofh.it> |
| In reply to | #1605488 |
On Tue, Mar 21, 2017 at 11:23:37AM +0100, Greg KH wrote: > On Tue, Feb 21, 2017 at 05:24:02PM +0300, Heikki Krogerus wrote: > > The USB Type-C class is meant to provide unified interface to the > > userspace to present the USB Type-C ports in a system. > > > > Changes since v16: > > - Using PTR_ERR_OR_ZERO macro in typec_init(). > > 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. Thanks, -- heikki
[toc] | [prev] | [next] | [standalone]
| From | Mats Karrman <mats.dev.list@gmail.com> |
|---|---|
| Date | 2017-03-22 22:20 +0100 |
| Message-ID | <tnVPI-nl-3@gated-at.bofh.it> |
| In reply to | #1605494 |
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/ BR // Mats
[toc] | [prev] | [next] | [standalone]
| From | Heikki Krogerus <heikki.krogerus@linux.intel.com> |
|---|---|
| Date | 2017-03-23 09:20 +0100 |
| Message-ID | <to68p-7Yi-17@gated-at.bofh.it> |
| In reply to | #1607024 |
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/<path>/<to>/<your>/<device>/typec/port0 /sys/class/typec/port0-partner -> ../../devices/<path>/<to>/<your>/<device>/typec/port0/port0-partner /sys/class/typec/port0-cable -> ../../devices/<path>/<to>/<your>/<device>/typec/port0/port0-cable /sys/class/typec/port0-plug0 -> ../../devices/<path>/<to>/<your>/<device>/typec/port0/port0-cable/port0-plug0 /sys/class/typec/port0-plug1 -> ../../devices/<path>/<to>/<your>/<device>/typec/port0/port0-cable/port0-plug1 Thanks, -- heikki
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web