]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: typec: tps6598x: Check mode of operation
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 13 Feb 2019 16:36:55 +0000 (19:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Feb 2019 09:48:44 +0000 (10:48 +0100)
commita043ad87a78f9cfb5ccd80f448e4e76b50546ad2
treec00689312b38fd520d8f924b0832261a144334ca
parentc17c7cf147ac56312156eaaaf8b2e19c9a59a71a
usb: typec: tps6598x: Check mode of operation

To prevent loading of the driver when the PD controller is
still in some operational mode that the driver does not
support, checking the mode in driver probe callback
function.

TI PD controllers may be in undefined mode of operation
for example when the application code (firmware) is
completely missing.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tps6598x.c