RE: [PATCH v2 01/12] usb: typec: add API to get port type and preferred role

2018-03-04 Thread Jun Li
e...@google.com; > Peter Chen <peter.c...@nxp.com>; garsi...@embeddedor.com; > o_leve...@orange.fr; shufan_...@richtek.com; linux-usb@vger.kernel.org; > devicet...@vger.kernel.org; dl-linux-imx <linux-...@nxp.com> > Subject: Re: [PATCH v2 01/12] usb: typec: add API to get po

Re: [PATCH v2 01/12] usb: typec: add API to get port type and preferred role

2018-02-26 Thread Heikki Krogerus
On Mon, Feb 26, 2018 at 07:49:08PM +0800, Li Jun wrote: > This patch add 2 APIs to get port type and preferred role from firmware > description. > > Signed-off-by: Li Jun > > --- > change for v2 > - Change the 2 APIs name and input para to be device_node pointer. Why? You are

[PATCH v2 01/12] usb: typec: add API to get port type and preferred role

2018-02-26 Thread Li Jun
This patch add 2 APIs to get port type and preferred role from firmware description. Signed-off-by: Li Jun --- change for v2 - Change the 2 APIs name and input para to be device_node pointer. drivers/usb/typec/typec.c | 46 ++