Re: [PATCH] usb: typec: tcpm: Remove unused functions

2019-02-12 Thread Kyle Tso
y even > work, or ever did. Lets remove them. > > Reported-by: Kyle Tso > Cc: Kyle Tso > Signed-off-by: Guenter Roeck Acked-by: Kyle Tso > --- > drivers/usb/typec/tcpm/tcpm.c | 60 > --- > include/linux/usb/tcpm.h | 6 -

Re: [PATCH] usb: typec: tcpm: Export partner Source Capabilities

2019-02-12 Thread Kyle Tso
On Fri, Feb 1, 2019 at 2:22 AM Guenter Roeck wrote: > > On Thu, Jan 31, 2019 at 08:02:38AM +0100, Greg KH wrote: > > On Thu, Jan 31, 2019 at 11:54:11AM +0800, Kyle Tso wrote: > > > Provide a function to get the partner Source Capabilities. > > >

Re: [PATCH] usb: typec: tcpm: Export partner Source Capabilities

2019-02-12 Thread Kyle Tso
On Thu, Jan 31, 2019 at 3:02 PM Greg KH wrote: > > On Thu, Jan 31, 2019 at 11:54:11AM +0800, Kyle Tso wrote: > > Provide a function to get the partner Source Capabilities. > > > > Signed-off-by: Kyle Tso > > --- > > drivers/usb/typec/tcpm/tcpm.c | 23 ++

[PATCH] usb: typec: tcpm: Export partner Source Capabilities

2019-01-30 Thread Kyle Tso
Provide a function to get the partner Source Capabilities. Signed-off-by: Kyle Tso --- drivers/usb/typec/tcpm/tcpm.c | 23 +++ include/linux/usb/tcpm.h | 1 + 2 files changed, 24 insertions(+) diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c

[PATCH] usb: typec: tcpm: Correct the PPS out_volt calculation

2019-01-29 Thread Kyle Tso
. The new out_volt will fall within the new voltage range while being the closest value compared to the previous out_volt. Signed-off-by: Kyle Tso --- drivers/usb/typec/tcpm/tcpm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb

[PATCH v3] usb: typec: tcpm: Extend the matching rules on PPS APDO selection

2018-12-17 Thread Kyle Tso
e the lower one between the selected Source PDO and the matching Sink PDO. c. The maximum power will be the maximum operational voltage times the maximum current defined in the selected Source PDO d. Select the Source PDO with the highest maximum power Signed-off-by: Kyle Tso --- Changelog

Re: [PATCH] usb: typec: tcpm: Extend the matching rules on PPS APDO selection

2018-12-17 Thread Kyle Tso
On Mon, Dec 17, 2018 at 8:45 PM Kyle Tso wrote: > > On Mon, Dec 17, 2018 at 8:23 PM Adam Thomson > wrote: > > > > On 17 December 2018 02:48, Kyle Tso wrote: > > > > > Current matching rules ensure that the voltage range of selected Source > > > Capab

Re: [PATCH] usb: typec: tcpm: Extend the matching rules on PPS APDO selection

2018-12-17 Thread Kyle Tso
On Mon, Dec 17, 2018 at 8:23 PM Adam Thomson wrote: > > On 17 December 2018 02:48, Kyle Tso wrote: > > > Current matching rules ensure that the voltage range of selected Source > > Capability is entirely within the range defined in one of the Sink > > Capabilities. Thi

Re: [PATCH] usb: typec: tcpm: Extend the matching rules on PPS APDO selection

2018-12-17 Thread Kyle Tso
On Mon, Dec 17, 2018 at 7:36 PM Heikki Krogerus wrote: > > On Mon, Dec 17, 2018 at 10:48:05AM +0800, Kyle Tso wrote: > > Current matching rules ensure that the voltage range of selected Source > > Capability is entirely within the range defined in one of the Sink > &g

[PATCH] usb: typec: tcpm: Extend the matching rules on PPS APDO selection

2018-12-16 Thread Kyle Tso
e the lower one between the selected Source PDO and the matching Sink PDO. c. The maximum power will be the maximum operational voltage times the maximum current defined in the selected Source PDO d. Select the Source PDO with the highest maximum power Signed-off-by: Kyle Tso --- Changelog

Re: [PATCH] usb: typec: tcpm: Extend the matching rules on PPS APDO selection

2018-12-13 Thread Kyle Tso
On Wed, Dec 12, 2018 at 6:15 PM Adam Thomson wrote: > > On 12 December 2018 02:47, Kyle Tso wrote: > > > On Mon, Dec 10, 2018 at 7:36 PM Adam Thomson > > wrote: > > > > > > On 10 December 2018 09:01, Adam Thomson wrote: > > > &

Re: [PATCH] usb: typec: tcpm: Extend the matching rules on PPS APDO selection

2018-12-11 Thread Kyle Tso
On Mon, Dec 10, 2018 at 7:36 PM Adam Thomson wrote: > > On 10 December 2018 09:01, Adam Thomson wrote: > > > On 06 December 2018 03:02, Kyle Tso wrote: > > > > > Current matching rules ensure that the voltage range of selected > > > Source Capability is enti

Re: [PATCH] usb: typec: tcpm: Extend the matching rules on PPS APDO selection

2018-12-11 Thread Kyle Tso
On Fri, Dec 7, 2018 at 1:56 AM Guenter Roeck wrote: > > On Thu, Dec 06, 2018 at 11:02:27AM +0800, Kyle Tso wrote: > > Current matching rules ensure that the voltage range of selected Source > > Capability is entirely within the range defined in one of the Sink > > Capabili

[PATCH] usb: typec: tcpm: Extend the matching rules on PPS APDO selection

2018-12-05 Thread Kyle Tso
ximum power will be the maximum operational voltage times the maximum current defined in the selected Source PDO d. Select the Source PDO with the highest maximum power Signed-off-by: Kyle Tso --- drivers/usb/typec/tcpm/tcpm.c | 29 + 1 file changed, 17 insertions(+