Re: [RFC PATCH 4/5] usb: typec: Find the ports by also matching against the device node

2018-10-25 Thread Heikki Krogerus
On Thu, Oct 25, 2018 at 10:27:20AM +0300, Heikki Krogerus wrote: > On Wed, Oct 24, 2018 at 08:07:09PM +0300, Sergei Shtylyov wrote: > > Hello! > > > > On 10/24/2018 06:05 PM, Heikki Krogerus wrote: > > > > > When the connections are defined in firmware, struct > > > device_connection will have th

Re: [RFC PATCH 4/5] usb: typec: Find the ports by also matching against the device node

2018-10-25 Thread Heikki Krogerus
On Wed, Oct 24, 2018 at 08:07:09PM +0300, Sergei Shtylyov wrote: > Hello! > > On 10/24/2018 06:05 PM, Heikki Krogerus wrote: > > > When the connections are defined in firmware, struct > > device_connection will have the fwnode member pointing to > > the device node (struct fwnode_handle) of the r

Re: [RFC PATCH 4/5] usb: typec: Find the ports by also matching against the device node

2018-10-24 Thread Sergei Shtylyov
Hello! On 10/24/2018 06:05 PM, Heikki Krogerus wrote: > When the connections are defined in firmware, struct > device_connection will have the fwnode member pointing to > the device node (struct fwnode_handle) of the requested > device, and the endpoint will not be used at all in that > case. >

[RFC PATCH 4/5] usb: typec: Find the ports by also matching against the device node

2018-10-24 Thread Heikki Krogerus
When the connections are defined in firmware, struct device_connection will have the fwnode member pointing to the device node (struct fwnode_handle) of the requested device, and the endpoint will not be used at all in that case. Signed-off-by: Heikki Krogerus --- drivers/usb/typec/class.c | 19