Commit 20a12f00 authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

USB: sisusbvga: Fix for USB 3.0

Super speed is also fast enough to let sisusbvga operate.
Therefor expand the checks.
Signed-off-by: default avatarOliver Neukum <oneukum@suse.de>
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 47f19c0e
...@@ -2436,7 +2436,8 @@ sisusb_open(struct inode *inode, struct file *file) ...@@ -2436,7 +2436,8 @@ sisusb_open(struct inode *inode, struct file *file)
} }
if (!sisusb->devinit) { if (!sisusb->devinit) {
if (sisusb->sisusb_dev->speed == USB_SPEED_HIGH) { if (sisusb->sisusb_dev->speed == USB_SPEED_HIGH ||
sisusb->sisusb_dev->speed == USB_SPEED_SUPER) {
if (sisusb_init_gfxdevice(sisusb, 0)) { if (sisusb_init_gfxdevice(sisusb, 0)) {
mutex_unlock(&sisusb->lock); mutex_unlock(&sisusb->lock);
dev_err(&sisusb->sisusb_dev->dev, "Failed to initialize device\n"); dev_err(&sisusb->sisusb_dev->dev, "Failed to initialize device\n");
...@@ -3166,7 +3167,7 @@ static int sisusb_probe(struct usb_interface *intf, ...@@ -3166,7 +3167,7 @@ static int sisusb_probe(struct usb_interface *intf,
sisusb->present = 1; sisusb->present = 1;
if (dev->speed == USB_SPEED_HIGH) { if (dev->speed == USB_SPEED_HIGH || dev->speed == USB_SPEED_SUPER) {
int initscreen = 1; int initscreen = 1;
#ifdef INCL_SISUSB_CON #ifdef INCL_SISUSB_CON
if (sisusb_first_vc > 0 && if (sisusb_first_vc > 0 &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment