1
0
Fork 0
alistair23-linux/drivers/usb/misc/sisusbvga
Thomas Gleixner c94a31c192 USB: sisusbvga: Make console support depend on BROKEN
commit 862ee699fe upstream.

The console part of sisusbvga is broken vs. printk(). It uses in_atomic()
to detect contexts in which it cannot sleep despite the big fat comment in
preempt.h which says: Do not use in_atomic() in driver code.

in_atomic() does not work on kernels with CONFIG_PREEMPT_COUNT=n which
means that spin/rw_lock held regions are not detected by it.

There is no way to make this work by handing context information through to
the driver and this only can be solved once the core printk infrastructure
supports sleepable console drivers.

Make it depend on BROKEN for now.

Fixes: 1bbb4f2035 ("[PATCH] USB: sisusb[vga] update")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20201019101109.603244207@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-21 13:27:06 +01:00
..
Kconfig USB: sisusbvga: Make console support depend on BROKEN 2020-12-21 13:27:06 +01:00
Makefile usb: sisusb: let files build only when needed 2019-01-25 10:02:49 +01:00
sisusb.c USB: sisusbvga: Fix a potential UB casued by left shifting a negative value 2020-09-03 11:26:48 +02:00
sisusb.h usb: sisusb_con, cleanup configs 2019-01-25 10:02:49 +01:00
sisusb_con.c usb: sisusb: remove useless macros and compact the code 2019-01-25 10:02:49 +01:00
sisusb_init.c usb: sisusb: let files build only when needed 2019-01-25 10:02:49 +01:00
sisusb_init.h USB: sisusbvga: Change port variable from signed to unsigned 2020-04-29 16:33:13 +02:00
sisusb_struct.h USB: add SPDX identifiers to all remaining files in drivers/usb/ 2017-11-04 11:48:02 +01:00