Re: [PATCH 1/3] usb: USB Type-C Connector Class
From: Oliver Neukum
Date: Thu Feb 18 2016 - 04:38:24 EST
On Thu, 2016-02-18 at 10:47 +0200, Heikki Krogerus wrote:
Hi,
> P.S. That reminds me, here's my current draft for the
> Documentation/ABI/. Could you take a look?
And I am afraid, that I have a few remarks not bound
to a specific entry.
We have port directories for port power switching. How is
the connector directory linked to them?
Likewise, if we have USB PD, we have to know how that
is linked to the connector directory.
In addition, writes to those files have results. We need
the error codes to be described.
Furthermore, do these files support poll?
And lastly we can get "Attention" as a message connected
with a connector in an alternate mode. How does user space
learn about that?
I am sorry to be this obnoxious, but this is an API which
will be with us for a long time, so we better get it right.
HTH
Oliver