Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jan 2009 01:38:20 +0100 (CET)
From:      Alexander Best <alexbestms@math.uni-muenster.de>
To:        <freebsd-usb@freebsd.org>
Subject:   Re: usb2 quirks
Message-ID:  <permail-200901070038206981cf3e000069da-a_best01@message-id.uni-muenster.de>
In-Reply-To: <200812232242.30638.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
instead of using usbconfig to add the quirks for my device i added them to
umass2.c and usb2_devid.h. with the changes the device works without any
problems. here's the dmesg output:

ugen3.2: <Meizu   Electronics> at usbus3
umass0: <Meizu   Electronics MiniPlayer, class 0/0, rev 2.00/1.00, addr 2> on
usbus3
umass0:  SCSI over Bulk-Only; quirks = 0x4400
umass0:7:0:-1: Attached to scbus7
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <  > Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 3864MB (7913472 512 byte sectors: 255H 63S/T 492C)

it would be nice to see the changes make it into HEAD.

cheers.
alex


Hans Petter Selasky schrieb am 2008-12-23:
> On Tuesday 23 December 2008, Alexander Best wrote:
> > hi there,

> > could somebody tell me where i can find info about the quirk
> > settings used
> > in usbconfig (usb2) please? i had a look at usbconfig(8), but the
> > manual
> > doesn't contain any information concerning usb quirks.


> Hi,

> If you type:

> usbconfig -h

> You see that you have the following quirk commands available:

>   add_dev_quirk_vplh <vid> <pid> <lo_rev> <hi_rev> <quirk>
>   remove_dev_quirk_vplh <vid> <pid> <lo_rev> <hi_rev> <quirk>
>   dump_quirk_names
>   dump_device_quirks

> Before you can use quirks you need to:

> kldload usb2_quirk

> --HPS

[-- Attachment #2 --]
--- sys/dev/usb2/storage/umass2.c	2009-01-07 00:26:38.000000000 +0000
+++ sys/dev/usb2/storage/umass2.c	2009-01-07 00:09:20.000000000 +0000
@@ -916,6 +916,10 @@
 		UMASS_PROTO_ATAPI | UMASS_PROTO_CBI,
 		NO_QUIRKS
 	},
+	{USB_VENDOR_MEIZU, USB_PRODUCT_MEIZU_M6_SL, RID_WILDCARD,
+		UMASS_PROTO_SCSI | UMASS_PROTO_BBB,
+		NO_INQUIRY | NO_SYNCHRONIZE_CACHE
+	},
 	{VID_EOT, PID_EOT, RID_EOT, 0, 0}
 };
 
--- sys/dev/usb2/include/usb2_devid.h	2009-01-07 00:27:47.000000000 +0000
+++ sys/dev/usb2/include/usb2_devid.h	2009-01-07 00:20:39.000000000 +0000
@@ -158,6 +158,7 @@
 #define	USB_VENDOR_KYOCERA	0x0482		/* Kyocera Wireless Corp. */
 #define	USB_VENDOR_STMICRO	0x0483		/* STMicroelectronics */
 #define	USB_VENDOR_FOXCONN	0x0489		/* Foxconn */
+#define	USB_VENDOR_MEIZU	0x0492		/* Meizu Electronics */
 #define	USB_VENDOR_YAMAHA	0x0499		/* YAMAHA */
 #define	USB_VENDOR_COMPAQ	0x049f		/* Compaq */
 #define	USB_VENDOR_HITACHI	0x04a4		/* Hitachi */
@@ -1658,6 +1659,9 @@
 #define	USB_PRODUCT_MCT_USB232	0x0210		/* USB-232 Interface */
 #define	USB_PRODUCT_MCT_SITECOM_USB232	0x0230		/* Sitecom USB-232 Products */
 
+/* Meizu Electronics */
+#define USB_PRODUCT_MEIZU_M6_SL		0x0140		/* MiniPlayer M6 (SL) */
+
 /* Melco, Inc products */
 #define	USB_PRODUCT_MELCO_LUATX1	0x0001		/* LUA-TX Ethernet */
 #define	USB_PRODUCT_MELCO_LUATX5	0x0005		/* LUA-TX Ethernet */

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?permail-200901070038206981cf3e000069da-a_best01>