From: Alan Stern Date: Wed, 15 Jan 2014 20:37:04 +0000 (-0500) Subject: [SCSI] sd: don't fail if the device doesn't recognize SYNCHRONIZE CACHE X-Git-Tag: v3.15-rc1~136^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7aae51347b21eb738dc1981df1365b57a6c5ee4e;p=pandora-kernel.git [SCSI] sd: don't fail if the device doesn't recognize SYNCHRONIZE CACHE 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 Reported-by: Sven Neumann Tested-by: Daniel Mack CC: Signed-off-by: James Bottomley --- Reading git-diff-tree failed