usb: typec: ucsi: Optimise ucsi_unregister()
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 4 Nov 2019 14:24:35 +0000 (17:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2019 20:53:15 +0000 (21:53 +0100)
commit74ce3e41274805e4a5598f4d98ee4d5160466d07
tree7991c9c32f0fce51c6a511d9b09b00237b4461a8
parente716bb38edb44b6a7dd9b825f57450118b3066ae
usb: typec: ucsi: Optimise ucsi_unregister()

There is no need to reset the PPM when the interface is
unregistered. Quietly silencing the notifications and then
unregistering everything is enough. This speeds up
ucsi_unregister() a lot.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191104142435.29960-19-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c