This patch adds 3 APIs to get the typec port power and data type,
and preferred power role by its name string.
Signed-off-by: Li Jun
---
drivers/usb/typec/class.c | 52 +++
include/linux/usb/typec.h | 3 +++
2 files changed, 55 insertions(+)
diff --g
Hi Li Jun,
On 2018-05-03 02:24, Li Jun wrote:
This patch adds 3 APIs to get the typec port power and data type,
and preferred power role by its name string.
Signed-off-by: Li Jun
---
drivers/usb/typec/class.c | 52 +++
include/linux/usb/typec.h |
ung.com;
> shufan_...@richtek.com; Peter Chen ;
> gso...@gmail.com; devicet...@vger.kernel.org; linux-usb@vger.kernel.org;
> dl-linux-imx
> Subject: Re: [PATCH v5 05/14] usb: typec: add API to get typec basic port
> power
> and data config
>
> Hi Li Jun,
>
> On 2018-05-03 02:24
m; li...@roeck-us.net
>> Cc: a.ha...@samsung.com; cw00.c...@samsung.com;
>> shufan_...@richtek.com; Peter Chen ;
>> gso...@gmail.com; devicet...@vger.kernel.org; linux-usb@vger.kernel.org;
>> dl-linux-imx
>> Subject: Re: [PATCH v5 05/14] usb: typec: add API to get typec basic p
devicet...@vger.kernel.org; linux-usb@vger.kernel.org;
> >> dl-linux-imx
> >> Subject: Re: [PATCH v5 05/14] usb: typec: add API to get typec basic port
> >> power
> >> and data config
> >>
> >> Hi Li Jun,
> >>
> >> On 2018-05
cw00.c...@samsung.com;
>>>> shufan_...@richtek.com; Peter Chen ;
>>>> gso...@gmail.com; devicet...@vger.kernel.org; linux-usb@vger.kernel.org;
>>>> dl-linux-imx
>>>> Subject: Re: [PATCH v5 05/14] usb: typec: add API to get typec basic port
>
>>> gre...@linuxfoundation.org;
> >>>> heikki.kroge...@linux.intel.com; li...@roeck-us.net
> >>>> Cc: a.ha...@samsung.com; cw00.c...@samsung.com;
> >>>> shufan_...@richtek.com; Peter Chen ;
> >>>> gso...@gmail.com; devi
Hi Mats,
>
> Uhm, typing too fast again, I am. A better name would be just
> typec_find_role().
> What I mean is that the function could be used for any situation when
> someone wants to map a string to a TYPEC_{SOURCE,SINK} constant so it is
> unnecessary to limit its usage to just preferred role
an_...@richtek.com;
> Peter Chen ; gso...@gmail.com;
> devicet...@vger.kernel.org; linux-usb@vger.kernel.org; dl-linux-imx
>
> Subject: Re: [PATCH v5 05/14] usb: typec: add API to get typec basic port
> power
> and data config
>
> Hi guys,
>
> On Tue, May 15, 2018
Hi Mats
> I reread this patch and tried to see it more in the context of the other
> patches
> and the existing code. The naming of the existing string tables doesn't help
> in
> getting this right, however I have a proposal:
>
> typec_find_port_power_role() to get to TYPEC_PORT_SRC/SNK/DRP
> t
Hi Heikki,
> > I reread this patch and tried to see it more in the context of the
> > other patches and the existing code. The naming of the existing string
> > tables doesn't help in getting this right, however I have a proposal:
> >
> > typec_find_port_power_role() to get to TYPEC_PORT_SRC/SNK/D
On Thu, May 17, 2018 at 02:05:41PM +, Jun Li wrote:
> Hi Heikki,
>
> > > I reread this patch and tried to see it more in the context of the
> > > other patches and the existing code. The naming of the existing string
> > > tables doesn't help in getting this right, however I have a proposal:
>
hufan_...@richtek.com; Peter Chen
> ; gso...@gmail.com; devicet...@vger.kernel.org;
> linux-usb@vger.kernel.org; dl-linux-imx
> Subject: Re: [PATCH v5 05/14] usb: typec: add API to get typec basic port
> power
> and data config
>
> On Thu, May 17, 2018 at 02:05:41PM +,
man ; robh...@kernel.org;
> > gre...@linuxfoundation.org; li...@roeck-us.net; a.ha...@samsung.com;
> > cw00.c...@samsung.com; shufan_...@richtek.com; Peter Chen
> > ; gso...@gmail.com; devicet...@vger.kernel.org;
> > linux-usb@vger.kernel.org; dl-linux-imx
> > Subject: R
@samsung.com; shufan_...@richtek.com; Peter Chen
> ; gso...@gmail.com; devicet...@vger.kernel.org;
> linux-usb@vger.kernel.org; dl-linux-imx
> Subject: Re: [PATCH v5 05/14] usb: typec: add API to get typec basic port
> power
> and data config
>
> Hi Jun,
>
> Sorry for the dela
15 matches
Mail list logo