mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
sisusbvga: correct speed testing
Allow for SS+ Signed-off-by: Oliver Neukum <ONeukum@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cdc77c82a8
commit
88a0044e6c
1 changed files with 2 additions and 2 deletions
|
@ -2420,7 +2420,7 @@ static int sisusb_open(struct inode *inode, struct file *file)
|
|||
|
||||
if (!sisusb->devinit) {
|
||||
if (sisusb->sisusb_dev->speed == USB_SPEED_HIGH ||
|
||||
sisusb->sisusb_dev->speed == USB_SPEED_SUPER) {
|
||||
sisusb->sisusb_dev->speed >= USB_SPEED_SUPER) {
|
||||
if (sisusb_init_gfxdevice(sisusb, 0)) {
|
||||
mutex_unlock(&sisusb->lock);
|
||||
dev_err(&sisusb->sisusb_dev->dev,
|
||||
|
@ -3127,7 +3127,7 @@ static int sisusb_probe(struct usb_interface *intf,
|
|||
|
||||
sisusb->present = 1;
|
||||
|
||||
if (dev->speed == USB_SPEED_HIGH || dev->speed == USB_SPEED_SUPER) {
|
||||
if (dev->speed == USB_SPEED_HIGH || dev->speed >= USB_SPEED_SUPER) {
|
||||
int initscreen = 1;
|
||||
#ifdef INCL_SISUSB_CON
|
||||
if (sisusb_first_vc > 0 && sisusb_last_vc > 0 &&
|
||||
|
|
Loading…
Reference in a new issue