Am Samstag, 29. Mai 2004 09:21 schrieb Vojtech Pavlik:
> Hi!
> 
> Here I have this patch ported from a 2.4 verison of a patch by guy at
> Dell ([EMAIL PROTECTED]), that uses the serialize semaphore in devio.c
> and in usb-storage.
> 
> This is needed on storage devices, where even sending a harmless
> GET_DESCRIPTOR command at the wrong time will lead to a STALL condition,
> and make the device unusable.
> 
> Because many a hotplug script does exactly that, it's rather easy to get
> a non-working device.
> 
> I hope this use of the serialize semaphore is correct - at least it
> looks OK to me.

It seems to me that you should hold the semaphore until after the reset
of the error case. You are dropping it too early.

        Regards
                Oliver


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to