Skip to content

Commit

Permalink
USB: sisusbvga: Fix for USB 3.0
Browse files Browse the repository at this point in the history
Super speed is also fast enough to let sisusbvga operate.
Therefor expand the checks.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Jul 26, 2010
1 parent 47f19c0 commit 20a12f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/usb/misc/sisusbvga/sisusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2436,7 +2436,8 @@ sisusb_open(struct inode *inode, struct file *file)
}

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)) {
mutex_unlock(&sisusb->lock);
dev_err(&sisusb->sisusb_dev->dev, "Failed to initialize device\n");
Expand Down Expand Up @@ -3166,7 +3167,7 @@ static int sisusb_probe(struct usb_interface *intf,

sisusb->present = 1;

if (dev->speed == USB_SPEED_HIGH) {
if (dev->speed == USB_SPEED_HIGH || dev->speed == USB_SPEED_SUPER) {
int initscreen = 1;
#ifdef INCL_SISUSB_CON
if (sisusb_first_vc > 0 &&
Expand Down

0 comments on commit 20a12f0

Please sign in to comment.