summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2006-06-28 03:48:47 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2006-06-28 03:48:47 +0000
commit0d95a156d10736db6af1fb634ed45e2e616bc573 (patch)
tree4bc182aa92fdfcbdead3cab6928a734e85417d26 /sys
parent2682309eb90fca11f084d6963d6b833f0cdb3a1f (diff)
Allow devices > revision 43.30 to attach.
Devices < 43.30 don't support all the used commands according to Florian.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/if_zyd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/usb/if_zyd.c b/sys/dev/usb/if_zyd.c
index 2fa152b8a58..7b27ecd4f44 100644
--- a/sys/dev/usb/if_zyd.c
+++ b/sys/dev/usb/if_zyd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_zyd.c,v 1.6 2006/06/27 13:40:35 xsa Exp $ */
+/* $OpenBSD: if_zyd.c,v 1.7 2006/06/28 03:48:46 jsg Exp $ */
/*
* Copyright (c) 2006 by Florian Stoehr <ich@florian-stoehr.de>
@@ -1494,8 +1494,9 @@ USB_ATTACH(zyd)
ddesc = usbd_get_device_descriptor(dev);
- if (UGETW(ddesc->bcdDevice) != ZYD_ALLOWED_DEV_VERSION) {
- printf("%s: device version mismatch: 0x%X (only 43.30 supported)\n",
+ if (UGETW(ddesc->bcdDevice) < ZYD_ALLOWED_DEV_VERSION) {
+ printf("%s: device version mismatch: 0x%X "
+ "(only >= 43.30 supported)\n",
USBDEVNAME(sc->zyd_dev), UGETW(ddesc->bcdDevice));
USB_ATTACH_ERROR_RETURN;