• Aaro Koskinen's avatar
    [SCSI] sym53c8xx: Keep transfer negotiations valid · 49799fee
    Aaro Koskinen authored
    (The patch updated based on testing and comments from Tony Battersby.)
    
    Change the sym53c8xx_2 driver negotiation logic so that the driver will
    tolerate better device removals. Negotiation message(s) will be sent
    with every INQUIRY and REQUEST SENSE command, and whenever there is a
    change in goals or when the device reports check condition.
    
    The patch was made specifically to address the case where you hotswap
    the disk using remove-single-device/add-single-device commands through
    /proc/scsi/scsi. Without the patch the driver keeps using old transfer
    parameters even though the target is reset and reports check condition,
    so the data transfer of the very first INQUIRY will fail.
    Signed-off-by: default avatarAaro Koskinen <Aaro.Koskinen@nokia.com>
    Tested-by: default avatarTony Battersby <tonyb@cybernetics.com>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
    49799fee
sym_hipd.h 33.4 KB