]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
usb: typec: fusb302: Check vconn is off when we start toggling
authorHans de Goede <hdegoede@redhat.com>
Mon, 11 Mar 2019 10:48:14 +0000 (11:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Mar 2019 14:06:12 +0000 (15:06 +0100)
commit32a155b1a83d6659e2272e8e1eec199667b1897e
tree589bb4663af19df3cb0a242f41a542b7d31d2fd9
parent4995bb15ad27366492a6a87bfb95bea0db1818c9
usb: typec: fusb302: Check vconn is off when we start toggling

The datasheet says the vconn MUST be off when we start toggling. The
tcpm.c state-machine is responsible to make sure vconn is off, but lets
add a WARN to catch any cases where vconn is not off for some reason.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/fusb302.c