[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1472549521.2623.10.camel@suse.com>
Date: Tue, 30 Aug 2016 11:32:01 +0200
From: Oliver Neukum <oneukum@...e.com>
To: Heikki Krogerus <heikki.krogerus@...ux.intel.com>
Cc: Greg KH <gregkh@...uxfoundation.org>,
Guenter Roeck <linux@...ck-us.net>,
Vincent Palatin <vpalatin@...omium.org>,
Bin Gao <bin.gao@...ux.intel.com>,
Felipe Balbi <felipe.balbi@...ux.intel.com>,
linux-kernel@...r.kernel.org, linux-usb@...r.kernel.org
Subject: Re: [PATCHv6 1/3] usb: USB Type-C connector class
On Mon, 2016-08-29 at 15:36 +0300, Heikki Krogerus wrote:
> +What: /sys/class/typec/<port>/current_data_role
> +Date: June 2016
> +Contact: Heikki Krogerus <heikki.krogerus@...ux.intel.com>
> +Description:
> + The current USB data role the port is operating in.
> This
> + attribute can be used for requesting data role
> swapping on the
> + port. Swapping is only supported as an asynchronous
> operation
> + and requires polling of the attribute in order to know
> the
> + result, so successful write operation does not mean
> successful
> + swap.
> +
That is badly formulated. Does it mean that poll() or select()
can be used or does the value need to be repearedly read?
And how would you learn about an error?
Regards
Oliver
Powered by blists - more mailing lists