Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1644925
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Badhri Jagan Sridharan <badhri@google.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers |
| Date | Thu, 18 May 2017 23:20:01 +0200 |
| Message-ID | <tIAZX-uT-5@gated-at.bofh.it> (permalink) |
| References | <tI1IS-8F-3@gated-at.bofh.it> <tI1IS-8F-5@gated-at.bofh.it> <tI3AZ-1j2-3@gated-at.bofh.it> <tIpLc-8ip-13@gated-at.bofh.it> <tIwWm-5mj-9@gated-at.bofh.it> <tIAQh-r6-5@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=R09JvFKiYfv4/CAp0vpQuAhGuVW9NDSpAKhAJiu73Iw=; b=UpPiyQ2ktzK2/EUdIPErsFP5vWsxjWPDPexghTCHDEuPxbMJhWL7CGwSMFTdB3iQ+M p/Comu7RsBwidr8gStiwSpwgC2vjEpMMoNVML0Qfr9FU8lOMwMDOWlXNF6zl0rUKB9d/ ZoHeF3vnaoO0k6Pk09OBOAQ26U4t/IKnKNpAGUDZC3h+SIhS5MkZgQ8H5vIctw32im1h /IZ+d/LbYj9EpTYMVSTgQ1dn//Y3eRAE3mZYhU3OH8JBEHoeEMafkRf0RbSRi6zoqHsh fEUtL+QONju+z4infRaI0cpUlm/BOpog20y2z/m+WgtCUp9F6QTEBZBuVPHk14OqZzDa ne6w== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=R09JvFKiYfv4/CAp0vpQuAhGuVW9NDSpAKhAJiu73Iw=; b=Z0F3OC+VB7Qxj5KdglnRfYaDbjoU0FQ2gyQmqcmssB83y8oFvvVMBleCY1Oa3HrOZ6 msK6Gp7TViocrr07fK2gV2VtML4zTzWtWoYaRBaoShPn6IYXFYJW5loe2k7XwfnJvi+8 D986Nxs1EUboiGOUxkZ6DhQZTdYKmKpVBqZpBSrswQl8GkfuzEPGZCh8Vhi0nQfbbndh eVloddk2Ye5hEPE9nZcghPLJXplwyuEjwju7QXem3dQ0EZ3pBGs2aa0Znz8/3MAnhfNN mJFJbEONO6/siay4DYLbKoUYq/CX+oqa/NAJ6IrbZcqaSCcem3OcGLh8Gv5Q1iRoZGU9 psmw== |
| X-Gm-Message-State | AODbwcBw5OIFX9VPx1hBUYDPQqEm4FWmxbBHKFf01nAsezO/i+aPyDNx fG6YJgv2rnrNOHwoYGQWyO7lqCQYdARL |
| X-Received | by 10.157.48.41 with SMTP id d38mr3841668otc.254.1495141987616; Thu, 18 May 2017 14:13:07 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 63 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Oliver Neukum <oneukum@suse.com>, Heikki Krogerus <heikki.krogerus@linux.intel.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, LKML <linux-kernel@vger.kernel.org>, USB <linux-usb@vger.kernel.org> |
| X-Original-Date | Thu, 18 May 2017 14:13:07 -0700 |
| X-Original-Message-ID | <CAPTae5K0+dNv81hsDyRH9kHFCxctDf1=74Ju+3PnbG0RE5h6Eg@mail.gmail.com> |
| X-Original-References | <20170517073219.8315-1-Badhri@google.com> <1495006472.30577.6.camel@suse.com> <2b7e6715-35b8-0d4a-fb28-3a59bd72916e@roeck-us.net> <1495098831.6672.2.camel@suse.com> <20170518165149.GA30223@roeck-us.net> <CAPTae5JS+cNFEkzjT6uQPCiNpc56NUTFAQQovWnQFN9H3RhwUA@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1644925 |
Show key headers only | View raw
Not Sure whether my previous response was sent properly. So re-sending. On Thu, May 18, 2017 at 2:08 PM, Badhri Jagan Sridharan <badhri@google.com> wrote: > On Thu, May 18, 2017 at 9:51 AM, Guenter Roeck <linux@roeck-us.net> wrote: >> On Thu, May 18, 2017 at 11:13:51AM +0200, Oliver Neukum wrote: >>> Am Mittwoch, den 17.05.2017, 02:36 -0700 schrieb Guenter Roeck: >>> > On 05/17/2017 12:34 AM, Oliver Neukum wrote: >>> > > >>> > > Am Mittwoch, den 17.05.2017, 00:32 -0700 schrieb Badhri Jagan >>> > > Sridharan: >>> > > >>> > > Hi, >>> > > >>> > > > >>> > > > "Two independent set of mechanisms are defined to allow a USB Type-C >>> > > > DRP to functionally swap power and data roles. When USB PD is >>> > > > supported, power and data role swapping is performed as a subsequent >>> > > > step following the initial connection process. For non-PD implementations, >>> > > > power/data role swapping can optionally be dealt with as part of the initial >>> > > > connection process." >>> > > >>> > > Well, as I read it, without PD once a connection is established, you >>> > > are stuck with your role. So it seems to me that blocking a later >>> > > attempt to change it makes sense. >>> > > >>> > >>> > That seems to be a harsh and not very user friendly reading of the specification. >>> > >>> > I would argue that the user doesn't care if the partner supports PD or not >>> > when selecting a role, and I would prefer to provide an implementation which is >>> > as user friendly as possible. >>> >>> Data role, no question, you are right. >>> Power role is a different question. A switch of power role with PD should >>> not lead to a disconnect. Any other method might. So equating them does >>> not look like a good idea. >>> >> >> Not really sure I can follow. If a partner does not support PD, there is no >> real distinction between data role and power role, or am I missing something ? >> >> Are you saying that, if a partner does not support PD, user space should >> request a data role swap instead, and that this would be acceptable for you ? >> >> I don't really understand the difference - a data role swap doesn't cause >> a disconnect either if the partner supports PD, and it would still result >> in a disconnect/reconnect sequence if the partner does not support PD - >> but if it works for you, fine with me. >> >> Badhri, would that work for us ? Yes Geunter that should work as well. Requesting non-pd role swap either through current_power_role or current_data_role is virtually the same. > > Yes Geunter that should work as well. Requesting non-pd role swap either through > current_power_role or current_data_role is virtually the same. > >> >> Thanks, >> Guenter
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Badhri Jagan Sridharan <badhri@google.com> - 2017-05-17 09:40 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Oliver Neukum <oneukum@suse.com> - 2017-05-17 09:40 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Guenter Roeck <linux@roeck-us.net> - 2017-05-17 11:40 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Heikki Krogerus <heikki.krogerus@linux.intel.com> - 2017-05-17 14:40 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Guenter Roeck <linux@roeck-us.net> - 2017-05-17 15:10 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Heikki Krogerus <heikki.krogerus@linux.intel.com> - 2017-05-17 16:00 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Badhri Jagan Sridharan <badhri@google.com> - 2017-05-17 20:10 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Oliver Neukum <oneukum@suse.com> - 2017-05-18 11:20 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Guenter Roeck <linux@roeck-us.net> - 2017-05-18 19:00 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Badhri Jagan Sridharan <badhri@google.com> - 2017-05-18 23:10 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Badhri Jagan Sridharan <badhri@google.com> - 2017-05-18 23:20 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Heikki Krogerus <heikki.krogerus@linux.intel.com> - 2017-05-19 12:40 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Guenter Roeck <linux@roeck-us.net> - 2017-05-19 15:30 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Oliver Neukum <oneukum@suse.com> - 2017-05-19 12:50 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-05-17 10:10 +0200
Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers Guenter Roeck <linux@roeck-us.net> - 2017-05-17 11:50 +0200
csiph-web