alistair23-linux/drivers/usb/typec
Heikki Krogerus 3e3b81965c usb: typec: mux: Take care of driver module reference counting
Functions typec_mux_get() and typec_switch_get() already
make sure that the mux device reference count is
incremented, but the same must be done to the driver module
as well to prevent the drivers from being unloaded in the
middle of operation.

This fixes a potential "BUG: unable to handle kernel paging
request at ..." from happening.

Fixes: 93dd2112c7 ("usb: typec: mux: Get the mux identifier from function parameter")
Acked-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-20 13:35:01 +02:00
..
altmodes usb: typec: unlock dp->lock on error exit path, and also zero ret if successful 2018-07-06 16:36:19 +02:00
fusb302 USB: typec: fsusb302: Drop empty set_current_limit implementation 2018-07-02 18:08:19 +02:00
mux usb: typec: pi3usb30532: Start using generic state values 2018-07-02 17:42:36 +02:00
ucsi usb: typec: ucsi: Fix for incorrect status data issue 2018-06-25 21:30:12 +08: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: fix kernel-doc parameter warning 2018-09-05 13:27:07 +02:00
Kconfig usb: typec: Add driver for DisplayPort alternate mode 2018-07-02 17:42:36 +02:00
Makefile usb: typec: Add driver for DisplayPort alternate mode 2018-07-02 17:42:36 +02:00
mux.c usb: typec: mux: Take care of driver module reference counting 2018-09-20 13:35:01 +02:00
tcpci.c staging: typec: tcpci: move tcpci drivers out of staging 2018-06-28 19:49:48 +09:00
tcpci.h staging: typec: tcpci: move tcpci drivers out of staging 2018-06-28 19:49:48 +09:00
tcpci_rt1711h.c staging: typec: tcpci: move tcpci drivers out of staging 2018-06-28 19:49:48 +09:00
tcpm.c Merge 4.18-rc7 into usb-next 2018-07-30 10:04:58 +02:00
tps6598x.c usb: typec: tps6598x: Remove VLA usage 2018-06-28 19:49:46 +09:00
typec_wcove.c usb: typec: wcove: Remove dependency on HW FSM 2018-05-24 18:17:00 +02:00