[PATCH v4] sd: Ignore sync cache failures when not supported

2017-05-11 Thread Thierry Escande
for these drives, so we shouldn't fail to suspend for this error case. The drive may stay powered if that's the setup for the port it's plugged into. Signed-off-by: Derek Basehore Signed-off-by: Thierry Escande --- v4 changes: - Check sense header validity before checking the sen

[PATCH v3] sd: Ignore sync cache failures when not supported

2017-05-09 Thread Thierry Escande
for these drives, so we shouldn't fail to suspend for this error case. The drive may stay powered if that's the setup for the port it's plugged into. Signed-off-by: Derek Basehore Signed-off-by: Thierry Escande --- v3 changes: - Pass the sense_hdr structure to sd_sync_cache(

Re: [PATCH v2] sd: Ignore sync cache failures when not supported

2017-05-05 Thread Thierry Escande
On 05/05/2017 11:02, Christoph Hellwig wrote: Normally we'd just pass the scsi_sense_hdr structure in from the caler if we care about sense data. Is this something you considered? Not really as only the sense_key field is needed for only one call to sd_sync_cache() (out of two). Otherwise t

[PATCH v2] sd: Ignore sync cache failures when not supported

2017-05-04 Thread Thierry Escande
for these drives, so we shouldn't fail to suspend for this error case. The drive may stay powered if that's the setup for the port it's plugged into. Signed-off-by: Derek Basehore Signed-off-by: Thierry Escande --- v2 changes: - Change sense_key type to u8 in sd_sync_cache()

[PATCH] sd: Ignore sync cache failures when not supported

2017-03-16 Thread Thierry Escande
for these drives, so we shouldn't fail to suspend for this error case. The drive may stay powered if that's the setup for the port it's plugged into. Signed-off-by: Derek Basehore Signed-off-by: Thierry Escande --- drivers/scsi/sd.c | 22 ++ 1 file changed, 18 i