On Saturday 21 August 2010 16:54:32 indulekha wrote:
> On Sat, 2010-08-21 at 16:37 +0200, Hans Petter Selasky wrote:
> > There is a command to add quirks. Look at the source code:
> > 
> > grep UQ_ /sys/dev/usb/storage/umass.c
> > 
> > and look for UQ_
> Thanks for the suggestion. Unfortunately the string "UQ_"
> (or even "UQ") does not appear in umass.c.

Then you typed something wrong:

grep UQ_ /sys/dev/usb/storage/umass.c
        if (usb_test_quirk(uaa, UQ_MSC_FORCE_WIRE_BBB)) {
        } else if (usb_test_quirk(uaa, UQ_MSC_FORCE_WIRE_CBI)) {
        } else if (usb_test_quirk(uaa, UQ_MSC_FORCE_WIRE_CBI_I)) {
        if (usb_test_quirk(uaa, UQ_MSC_FORCE_PROTO_SCSI)) {
        } else if (usb_test_quirk(uaa, UQ_MSC_FORCE_PROTO_ATAPI)) {
        } else if (usb_test_quirk(uaa, UQ_MSC_FORCE_PROTO_UFI)) {
        } else if (usb_test_quirk(uaa, UQ_MSC_FORCE_PROTO_RBC)) {
        if (usb_test_quirk(uaa, UQ_MSC_NO_TEST_UNIT_READY))
        if (usb_test_quirk(uaa, UQ_MSC_NO_RS_CLEAR_UA))
        if (usb_test_quirk(uaa, UQ_MSC_NO_START_STOP))
        if (usb_test_quirk(uaa, UQ_MSC_NO_GETMAXLUN))
        if (usb_test_quirk(uaa, UQ_MSC_NO_INQUIRY))
        if (usb_test_quirk(uaa, UQ_MSC_NO_INQUIRY_EVPD))
        if (usb_test_quirk(uaa, UQ_MSC_NO_SYNC_CACHE))
        if (usb_test_quirk(uaa, UQ_MSC_SHUTTLE_INIT))
        if (usb_test_quirk(uaa, UQ_MSC_ALT_IFACE_1))
        if (usb_test_quirk(uaa, UQ_MSC_FLOPPY_SPEED))
        if (usb_test_quirk(uaa, UQ_MSC_IGNORE_RESIDUE))
        if (usb_test_quirk(uaa, UQ_MSC_WRONG_CSWSIG))
        if (usb_test_quirk(uaa, UQ_MSC_RBC_PAD_TO_12))
        if (usb_test_quirk(uaa, UQ_MSC_READ_CAP_OFFBY1))
        if (usb_test_quirk(uaa, UQ_MSC_FORCE_SHORT_INQ))

freebsd-usb@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to