From f9fd558bdce45c4e69f9db76250e6e20fa568b84 Mon Sep 17 00:00:00 2001 From: mycroft Date: Mon, 28 Jun 2004 06:47:48 +0000 Subject: [PATCH] Tracy's Clie reports that it's SFF-8070 when it's really UFI. Bah. --- sys/dev/usb/umass_quirks.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/sys/dev/usb/umass_quirks.c b/sys/dev/usb/umass_quirks.c index b586792e58ea..8b64f2eb04b2 100644 --- a/sys/dev/usb/umass_quirks.c +++ b/sys/dev/usb/umass_quirks.c @@ -1,4 +1,4 @@ -/* $NetBSD: umass_quirks.c,v 1.65 2004/06/25 13:23:55 mycroft Exp $ */ +/* $NetBSD: umass_quirks.c,v 1.66 2004/06/28 06:47:48 mycroft Exp $ */ /* * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: umass_quirks.c,v 1.65 2004/06/25 13:23:55 mycroft Exp $"); +__KERNEL_RCSID(0, "$NetBSD: umass_quirks.c,v 1.66 2004/06/28 06:47:48 mycroft Exp $"); #include #include @@ -133,7 +133,6 @@ Static const struct umass_quirk umass_quirks[] = { UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO, NULL, NULL }, - { { USB_VENDOR_SHUTTLE, USB_PRODUCT_SHUTTLE_ORCA }, UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC, UMASS_QUIRK_WRONG_CSWTAG, @@ -154,6 +153,18 @@ Static const struct umass_quirk umass_quirks[] = { NULL, umass_fixup_sony }, + /* + * Stupid device reports itself as SFF-8070, but actually returns a UFI + * interrupt descriptor. - mycroft, 2004/06/28 + */ + { { USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_40_MS }, + UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UFI, + 0, + 0, + UMATCH_VENDOR_PRODUCT, + NULL, NULL + }, + /* * The DiskOnKey does not reject commands it doesn't recognize in a * sane way -- rather than STALLing the bulk pipe, it continually NAKs