Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2014 09:20:56 +0100
From:      Hans Petter Selasky <hps@bitfrost.no>
To:        Volodymyr Kostyrko <arcade@b1t.name>, freebsd-usb@FreeBSD.org
Subject:   Re: new usb device probably, needs quirks
Message-ID:  <52FDD1E8.7040804@bitfrost.no>
In-Reply-To: <52FB98DA.6080108@b1t.name>
References:  <52FB98DA.6080108@b1t.name>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02/12/14 16:52, Volodymyr Kostyrko wrote:
> Hi all.
>
> # usbconfig -d 5.2 dump_device_desc
> ugen5.2: <USB Flash Memory vendor 0x0930> at usbus5, cfg=0 md=HOST
> spd=HIGH (480Mbps) pwr=ON (200mA)
>
>    bLength = 0x0012
>    bDescriptorType = 0x0001
>    bcdUSB = 0x0200
>    bDeviceClass = 0x0000
>    bDeviceSubClass = 0x0000
>    bDeviceProtocol = 0x0000
>    bMaxPacketSize0 = 0x0040
>    idVendor = 0x0930
>    idProduct = 0x6544
>    bcdDevice = 0x0100
>    iManufacturer = 0x0001  <        >
>    iProduct = 0x0002  <USB Flash Memory>
>    iSerialNumber = 0x0003  <E954F90DBA26CC60EDC50A0F>
>    bNumConfigurations = 0x0001
>
> # usbconfig -d 5.2 reset
>
> Feb 12 17:44:56 urquan kernel: umass0: at uhub5, port 4, addr 2
> (disconnected)
> Feb 12 17:44:57 urquan kernel: umass0: <vendor 0x0930 USB Flash Memory,
> class 0/0, rev 2.00/1.00, addr 2> on usbus5
> Feb 12 17:44:57 urquan kernel: umass0:  SCSI over Bulk-Only; quirks =
> 0x4100
> Feb 12 17:44:57 urquan kernel: umass0:1:0:-1: Attached to scbus1
> Feb 12 17:44:57 urquan kernel: da7 at umass-sim0 bus 0 scbus1 target 0
> lun 0
> Feb 12 17:44:57 urquan kernel: da7: < USB Flash Memory 1.00> Removable
> Direct Access SCSI-0 device
> Feb 12 17:44:57 urquan kernel: da7: Serial Number E954F90DBA26CC60EDC50A0F
> Feb 12 17:44:57 urquan kernel: da7: 40.000MB/s transfers
> Feb 12 17:44:57 urquan kernel: da7: 7397MB (15149056 512 byte sectors:
> 255H 63S/T 942C)
> Feb 12 17:44:57 urquan kernel: da7: quirks=0x2<NO_6_BYTE>
> Feb 12 17:44:57 urquan kernel: (da7:umass-sim0:0:0:0): got CAM status 0x50
> Feb 12 17:44:57 urquan kernel: (da7:umass-sim0:0:0:0): fatal error,
> failed to attach to device
> Feb 12 17:44:57 urquan kernel: da7 at umass-sim0 bus 0 scbus1 target 0
> lun 0
> Feb 12 17:44:57 urquan kernel: da7: < USB Flash Memory 1.00> s/n
> E954F90DBA26CC60EDC50A0F detached
> Feb 12 17:44:57 urquan kernel: (da7:umass-sim0:0:0:0): Periph destroyed
>
> # usbconfig -d 5.2 add_quirk UQ_MSC_NO_PREVENT_ALLOW
> # usbconfig -d 5.2 reset

Hi,

Can you send a patch adding this quirk to:

sys/dev/usb/quirk/usb_quirk.c

And vendor and product IDs to:

sys/dev/usb/usbdevs

Which you have tested?

Thank you,

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52FDD1E8.7040804>