Date: Wed, 19 Oct 2011 23:01:29 +0300 From: Eugene Dzhurinsky <jdevelop@gmail.com> To: Hans Petter Selasky <hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Support of internal card-reader for ASUS K43SJ Message-ID: <20111019200129.GA22707@devbox> In-Reply-To: <201110192152.51444.hselasky@c2i.net> References: <20111019183247.GA1735@devbox> <201110192142.51927.hselasky@c2i.net> <20111019195110.GA12385@devbox> <201110192152.51444.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Wed, Oct 19, 2011 at 09:52:51PM +0200, Hans Petter Selasky wrote:
> > > Also see the quirks available how to force the UMASS mode of a device.
> > Hi, with configuration descriptor you mean dump_curr_config_desc ?
>
> Yes.
ugen0.5: <USB2.0-CRW Generic> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
Configuration index 0
bLength = 0x0009
bDescriptorType = 0x0002
wTotalLength = 0x0027
bNumInterfaces = 0x0001
bConfigurationValue = 0x0001
iConfiguration = 0x0004 <CARD READER>
bmAttributes = 0x00a0
bMaxPower = 0x00fa
Interface 0
bLength = 0x0009
bDescriptorType = 0x0004
bInterfaceNumber = 0x0000
bAlternateSetting = 0x0000
bNumEndpoints = 0x0003
bInterfaceClass = 0x00ff
bInterfaceSubClass = 0x0006
bInterfaceProtocol = 0x0050
iInterface = 0x0005 <Bulk-In, Bulk-Out, Interface>
Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0001 <OUT>
bmAttributes = 0x0002 <BULK>
wMaxPacketSize = 0x0200
bInterval = 0x0000
bRefresh = 0x0000
bSynchAddress = 0x0000
Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0082 <IN>
bmAttributes = 0x0002 <BULK>
wMaxPacketSize = 0x0200
bInterval = 0x0000
bRefresh = 0x0000
bSynchAddress = 0x0000
Endpoint 2
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0083 <IN>
bmAttributes = 0x0003 <INTERRUPT>
wMaxPacketSize = 0x0003
bInterval = 0x000a
bRefresh = 0x0000
bSynchAddress = 0x0000
> > Also I don't really understand what are the quirks and how can/should I
> > force something. Could you please explain?
>
> usbconfig dump_quirk_names | grep MSC
>
> UQ_MSC_FORCE_WIRE_BBB
> UQ_MSC_FORCE_WIRE_CBI
> UQ_MSC_FORCE_WIRE_CBI_I
> UQ_MSC_FORCE_PROTO_SCSI
> UQ_MSC_FORCE_PROTO_ATAPI
> UQ_MSC_FORCE_PROTO_UFI
> UQ_MSC_FORCE_PROTO_RBC
>
> After applying the quirk you need to use USB config to reset the device.
I'm a bit lost, which quirk I should apply? I'm sorry, but I know very little
about all this stuff :(
UQ_MSC_NO_TEST_UNIT_READY
UQ_MSC_NO_RS_CLEAR_UA
UQ_MSC_NO_START_STOP
UQ_MSC_NO_GETMAXLUN
UQ_MSC_NO_INQUIRY
UQ_MSC_NO_INQUIRY_EVPD
UQ_MSC_NO_SYNC_CACHE
UQ_MSC_SHUTTLE_INIT
UQ_MSC_ALT_IFACE_1
UQ_MSC_FLOPPY_SPEED
UQ_MSC_IGNORE_RESIDUE
UQ_MSC_WRONG_CSWSIG
UQ_MSC_RBC_PAD_TO_12
UQ_MSC_READ_CAP_OFFBY1
UQ_MSC_FORCE_SHORT_INQ
UQ_MSC_FORCE_WIRE_BBB
UQ_MSC_FORCE_WIRE_CBI
UQ_MSC_FORCE_WIRE_CBI_I
UQ_MSC_FORCE_PROTO_SCSI
UQ_MSC_FORCE_PROTO_ATAPI
UQ_MSC_FORCE_PROTO_UFI
UQ_MSC_FORCE_PROTO_RBC
UQ_MSC_EJECT_HUAWEI
UQ_MSC_EJECT_SIERRA
UQ_MSC_EJECT_SCSIEJECT
UQ_MSC_EJECT_REZERO
UQ_MSC_EJECT_ZTESTOR
UQ_MSC_EJECT_CMOTECH
UQ_MSC_EJECT_WAIT
UQ_MSC_EJECT_SAEL_M460
UQ_MSC_EJECT_HUAWEISCSI
UQ_MSC_EJECT_TCT
--
Eugene N Dzhurinsky
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)
iQEcBAEBAgAGBQJOnyyZAAoJEJl2g18bZPdRyFEH/3z6kMYaUAU+jnhO9HALHc1/
64mJ/79+8oN7tid5cXbQg/sLAaNZma3q/2vcT+6UVkOEb69mhdztFANoNxb9ex6b
auae7hPbXrvHTMAix64wiIJbP0fGgUbZugQjZjUwQ0Xnuo6agFlH7J4aalnhDzHx
1oYKrvJUmAUsoJP7VfoG/AujL8uDj583Jkwu5IQTaWcVP00+ukoFxAxRFZ9fuGQO
vqGX2T4jfhRLk55PqYwHbLrBvPNCx3ZjrCQ+MTefeUpgRISjKkUxjToLjKed3f4N
gIMfwkUJVzJpQjDGthebZfOp+6O94l5Zalq8PISFa4gXWBiR+kr7f1mYD7vSyv8=
=Jj85
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111019200129.GA22707>
