]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Sat, 15 Jun 2019 09:54:11 +0000 (11:54 +0200)
commitdb54e08c5832a74d8d035a38ebc2c37509272e00
treec1f9a7d42d98ee7bf65aa4e3612c98216489b4fc
parentce183fad3aa844379825372e3768e32c499d491e
usb: typec: fusb302: Check vconn is off when we start toggling

[ Upstream commit 32a155b1a83d6659e2272e8e1eec199667b1897e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/typec/fusb302/fusb302.c