Re: [PATCH v5 1/5] usb: typec: tcpm: pdo matching optimization

2018-04-20 Thread Guenter Roeck
On Fri, Apr 20, 2018 at 06:13:30PM +0300, Heikki Krogerus wrote: > Hi, > > On Mon, Apr 16, 2018 at 02:54:33PM +0800, Li Jun wrote: > > This patch is a combination of commit 57e6f0d7b804 > > ("typec: tcpm: Only request matching pdos") and source > > pdo selection optimization based on it, instead

Re: [PATCH v5 1/5] usb: typec: tcpm: pdo matching optimization

2018-04-20 Thread Heikki Krogerus
Hi, On Mon, Apr 16, 2018 at 02:54:33PM +0800, Li Jun wrote: > This patch is a combination of commit 57e6f0d7b804 > ("typec: tcpm: Only request matching pdos") and source > pdo selection optimization based on it, instead of only > compare between the same pdo type of sink and source, > we should

[PATCH v5 1/5] usb: typec: tcpm: pdo matching optimization

2018-04-16 Thread Li Jun
This patch is a combination of commit 57e6f0d7b804 ("typec: tcpm: Only request matching pdos") and source pdo selection optimization based on it, instead of only compare between the same pdo type of sink and source, we should check source pdo voltage range is within the voltage range of one sink