On Sun, 11 Jul 2004, Florian Schmitt wrote:

> > The bad news is that those clear_halt() statements aren't likely to leave 
> > the kernel.  (Your device won't work with them, other devices won't work 
> > without them.)  If you want to keep on using your device, you'll have to 
> > patch the source every time you upgrade your kernel.  :-(
> 
> The funny thing is that package says "supports linux kernel 2.40 or higher". 
> Bad luck, I guess... otoh, it was fun playing around with it, and perhaps 
> I'll keep it nevertheless.

Those clear_halt() lines were added fairly recently, just within the last 
few months.  So the packaging is understandable.

> hmm, the only real problem is that it doesn't like clear_halt. Both other bugs 
> should (in theory) never occur without the buggy hotplug script.

That's not necessarily true.  Even though the command sent by the hotplug
script was bogus, the device should have responded to it correctly.  The 
fact that it gave a bad response here indicates that perhaps it will also 
give a bad response when a genuine error occurs.

> Would it make sense to make clear_halt optional (eg configurable by the 
> blacklist)?
> In case there is a chance that you accept such thing, I could take a look at 
> the source and try to create a patch which does something like that.

I don't think it makes sense.  Few devices provoke the clear_halt during
GetMaxLUN and even fewer react badly to it -- yours is the only one I've
heard of.  According to the USB specification any device should be able to
accept those clear_halt commands (and ignore them, if nothing else).

If enough other devices turn out to react badly like yours, then we might
have to create a blacklist like you suggest.  Unless that happens, I
suspect Matt Dharm (the usb-storage maintainer) won't want to change 
anything.

Alan Stern



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to