summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/message.c
diff options
context:
space:
mode:
authorHeikki Krogerus2019-02-01 11:47:55 +0100
committerGreg Kroah-Hartman2019-02-08 10:25:12 +0100
commitb0fcdffdd6262d49d509a2945b2c2375a84f28af (patch)
tree3d304e6effdc004331db9e4838aaadf2ad716ebf /drivers/usb/core/message.c
parentusb: typec: displayport: Move the Configuration VDO helpers to the header (diff)
downloadkernel-qcow2-linux-b0fcdffdd6262d49d509a2945b2c2375a84f28af.tar.gz
kernel-qcow2-linux-b0fcdffdd6262d49d509a2945b2c2375a84f28af.tar.xz
kernel-qcow2-linux-b0fcdffdd6262d49d509a2945b2c2375a84f28af.zip
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>
Diffstat (limited to 'drivers/usb/core/message.c')
0 files changed, 0 insertions, 0 deletions