Re: Add US_FL_NO_ULD_ATTACH usb mass storage unusal dev flag ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 04/04/2010 08:56 PM, Josua Dietze wrote:
Hans de Goede schrieb:

But one of the variants (usb id 1908:1320) still hits a usb-reset
when drivers/scsi/sr.c does a READ_CAPACITY from get_sector_size().
After the initial READ_CAPACITY failure and the usb reset, the
second READ_CAPACITY succeeds.


Did you try to set the AVOID_RESET_QUIRK attribute? This was
originally targeted at those mode-switching devices, but might be
useful in this case too.


Thanks for the hint. although not really what I was looking for
this has prompted me to investigate this issue further as I was
not completely happy with the NO_ULD_ATTACH solution.

After turning on full debugging in the usb-storage driver it
turns out the out enabling of US_FL_SANE_SENSE was the culprit,
when I explicitly specify US_FL_BAD_SENSE, thus disabling the
auto enabling of SANE_SENSE, things are much better, the
first 2 READ_CAPACITY calls still fail (stalled endpoint), but
no longer result in a full device reset.

I'll do a patch adding these devices to unusual_devs.h with
the US_FL_BAD_SENSE quirk tomorrow.

Thanks all for your input.

Regards,

Hans
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux