Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1651778
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCHv4] usb: typec: Add a sysfs node to manage port type |
| Date | 2017-05-27 07:50 +0200 |
| Message-ID | <tLCLT-7yE-9@gated-at.bofh.it> (permalink) |
| References | <tLyIl-4Vw-111@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, May 26, 2017 at 01:42:57PM -0700, Badhri Jagan Sridharan wrote: > User space applications in some cases have the need to enforce a > specific port type(DFP/UFP/DRP). This change allows userspace to > attempt setting the desired port type. Low level drivers can > however reject the request if the specific port type is not supported. > > Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com> > --- > Changelog since v1: > - introduced a new variable port_type in struct typec_port to track > the current port type instead of changing type member in > typec_capability to address Heikki Krogerus comments. > - changed the output format and strings that would be displayed as > suggested by Heikki Krogerus. > > Changelog since v2: > - introduced a new mutex lock to protect port_type for addressing > the race conditions identified by Geunter Roeck > - added typec_port_types_drp for printing port_type when cap->type > is TYPE_PORT_DRP as suggested by Geunter Roeck > - Power role swap and data role swaps would be rejected unless > port port_type == TYPE_PORT_DRP > - port_type_store would return immediately if the current port_type > is same as the new port_type as suggested by Geunter Roeck > > Changelog since v3: > - Moved as much as code outside port_type_lock as suggested by > Geunter Roeck > - Removed Change-Id line from commit message identified by > Greg Kroah-Hartman Ok, this is how you write a changelog for a patch, very nice job! greg k-h
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCHv4] usb: typec: Add a sysfs node to manage port type Badhri Jagan Sridharan <badhri@google.com> - 2017-05-27 03:30 +0200
Re: [PATCHv4] usb: typec: Add a sysfs node to manage port type Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-05-27 07:50 +0200
Re: [PATCHv4] usb: typec: Add a sysfs node to manage port type Badhri Jagan Sridharan <badhri@google.com> - 2017-05-27 22:40 +0200
csiph-web