Re: [PATCH v2] usb: typec: tcpm: Wait for vbus discharge to VSAFE0V before toggling

2021-02-25 Thread Badhri Jagan Sridharan
On Wed, Feb 24, 2021 at 9:46 PM Badhri Jagan Sridharan wrote: > > On Fri, Feb 19, 2021 at 7:56 AM Guenter Roeck wrote: > > > > On 2/19/21 1:04 AM, Badhri Jagan Sridharan wrote: > > > When vbus auto discharge is enabled, TCPM can sometimes be faster than > > > the TCPC i.e. TCPM can go ahead and m

Re: [PATCH v2] usb: typec: tcpm: Wait for vbus discharge to VSAFE0V before toggling

2021-02-24 Thread Badhri Jagan Sridharan
On Fri, Feb 19, 2021 at 7:56 AM Guenter Roeck wrote: > > On 2/19/21 1:04 AM, Badhri Jagan Sridharan wrote: > > When vbus auto discharge is enabled, TCPM can sometimes be faster than > > the TCPC i.e. TCPM can go ahead and move the port to unattached state > > (involves disabling vbus auto discharg

Re: [PATCH v2] usb: typec: tcpm: Wait for vbus discharge to VSAFE0V before toggling

2021-02-19 Thread Guenter Roeck
On 2/19/21 1:04 AM, Badhri Jagan Sridharan wrote: > When vbus auto discharge is enabled, TCPM can sometimes be faster than > the TCPC i.e. TCPM can go ahead and move the port to unattached state > (involves disabling vbus auto discharge) before TCPC could effectively > discharge vbus to VSAFE0V. Th

[PATCH v2] usb: typec: tcpm: Wait for vbus discharge to VSAFE0V before toggling

2021-02-19 Thread Badhri Jagan Sridharan
When vbus auto discharge is enabled, TCPM can sometimes be faster than the TCPC i.e. TCPM can go ahead and move the port to unattached state (involves disabling vbus auto discharge) before TCPC could effectively discharge vbus to VSAFE0V. This leaves vbus with residual charge and increases the deca