• Oliver Neukum's avatar
    [PATCH] USB: storage device reset cleanup · d4da2538
    Oliver Neukum authored
    > In the absence of far-reaching changes to the API, my suggestion is to
    > have the emulated SCSI bus reset code in usb-storage do nothing but log an
    > error message and return an error code.  For the time being, considering
    > how infrequently these resets occur, we can simply rely on the user
    > unplugging the USB cable and putting it back in or cycling the power to
    > the drive.  (Yes, there are situations where these resets crop up
    > regularly -- but they are the result of some other incompatibility that a
    > device reset won't fix anyway.)
    
    OK, as the consensus seems to be that in the short run changing things
    for a full reset implementation is not worth it, here's an implementation
    that does the best we can do without.
    It issues a reset only if we can be sure that there are no other users
    of the device in question.
    As the version currently in the storage driver is broken anyway,
    this is a definite improvement. And it addresses the need of exporting
    the probe/remove functions for storage's sake.
    d4da2538
scsiglue.c 23.3 KB