linux/drivers/usb/typec
Heikki Krogerus b0fcdffdd6 usb: typec: Prepare alt mode enter/exit reporting for UCSI alt mode support
Because of UCSI, we have to support alt mode enter/exit
reporting even when there is no alt mode driver bind to the
alt mode device. With UCSI a firmware handles the alternate
modes, and the modes are entered automatically from OS PoW.

Changing typec_altmode_update_active() so that the driver
module ref count is incremented/decremented only if there
really is a driver for the alt mode. That avoids a NULL
pointer dereference from happening when the driver is
missing.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-08 10:25:12 +01:00
..
altmodes usb: typec: displayport: Move the Configuration VDO helpers to the header 2019-02-08 10:25:12 +01:00
mux USB: add missing SPDX lines to Kconfig and Makefiles 2019-01-22 09:08:17 +01:00
tcpm usb: typec: tpcm: improve error handling of tcpm_register_port 2019-01-25 10:02:50 +01:00
ucsi USB: add missing SPDX lines to Kconfig and Makefiles 2019-01-22 09:08:17 +01:00
bus.c usb/typec: fix kernel-doc notation warning for typec_match_altmode 2018-09-05 14:36:53 +02:00
bus.h usb: typec: avoid format-overflow warning 2018-07-06 16:36:19 +02:00
class.c usb: typec: Prepare alt mode enter/exit reporting for UCSI alt mode support 2019-02-08 10:25:12 +01:00
Kconfig USB: add missing SPDX lines to Kconfig and Makefiles 2019-01-22 09:08:17 +01:00
Makefile usb: typec: Group all TCPCI/TCPM code together 2018-09-20 13:37:29 +02:00
mux.c usb: typec: mux: Take care of driver module reference counting 2018-09-20 13:35:01 +02:00
tps6598x.c ACPI / scan: Create platform device for INT3515 ACPI nodes 2018-12-03 21:40:03 +02:00