OSDN Git Service

usb: typec: tcpm: reset the port on removal
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 10 Oct 2017 13:40:33 +0000 (16:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Oct 2017 09:56:11 +0000 (11:56 +0200)
commita6d5d230e0c2dbc710d473105d5652d3980da673
tree8ca1dd3ae2d51b93ea6209ac23b8b8edaf7a4ff3
parent4c13fec1ba555950112555b599dea8e0f0129d99
usb: typec: tcpm: reset the port on removal

If a port is unregistered, all the devices attached to it
must be unregistered as well. This will also make sure VBUS
and VCONN are disabled.

Signed-off-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.c