usb: typec: tcpm: not sink vbus if operational current is 0mA
authorXu Yang <xu.yang_2@nxp.com>
Tue, 1 Aug 2023 07:01:10 +0000 (15:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Aug 2023 12:47:50 +0000 (14:47 +0200)
commit803b1c8a0cea58cccde16eba31d285956f4c920c
treeb87c05c1ce1dff380609d06ca8c82b59fed7009b
parent2569088dbaaff6401630bda517db2e1ac4d92692
usb: typec: tcpm: not sink vbus if operational current is 0mA

PD3.0 Spec 6.4.1.3.1 said:
For a Sink requiring no power from the Source, the Voltage (B19-10)
shall be set to 5V and the Operational Current Shall be set to 0mA.

Therefore, we can keep sink path closed if the operational current of
the first fixed PDO is 0mA.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230801070110.1653394-1-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c