Alan Stern d8e33d97e0 SCSI: sd: don't fail if the device doesn't recognize SYNCHRONIZE CACHE
commit 7aae51347b21eb738dc1981df1365b57a6c5ee4e upstream.

Evidently some wacky USB-ATA bridges don't recognize the SYNCHRONIZE
CACHE command, as shown in this email thread:

	http://marc.info/?t=138978356200002&r=1&w=2

The fact that we can't tell them to drain their caches shouldn't
prevent the system from going into suspend.  Therefore sd_sync_cache()
shouldn't return an error if the device replies with an Invalid
Command ASC.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Sven Neumann <s.neumann@raumfeld.com>
Tested-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-22 16:49:20 -07:00
..
2013-11-19 15:53:02 -05:00
2013-10-29 12:53:07 +02:00
2014-04-03 12:02:37 -07:00
2014-04-22 16:49:20 -07:00
2014-04-14 06:47:22 -07:00
2013-11-07 19:24:20 +01:00
2014-04-14 06:47:22 -07:00
2014-02-22 13:34:45 -08:00
2014-02-13 13:55:46 -08:00
2014-04-22 16:49:20 -07:00
2014-02-06 11:34:00 -08:00
2014-04-22 16:49:20 -07:00
2014-04-03 12:02:37 -07:00
2013-12-10 08:48:15 +01:00