scsi: set to WCE if usb cache quirk is present.
authorNamjae Jeon <namjae.jeon@samsung.com>
Sun, 8 Jul 2012 03:05:08 +0000 (23:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 23:43:49 +0000 (16:43 -0700)
commit7620c687429553d469afb699565054748d74b81f
tree5ee5d5e4ca5ed45c073434bf366ec41367f02ac7
parentb903bd69e3fa156598def8d6433dfe5352af8da3
scsi: set to WCE if usb cache quirk is present.

Make use of USB quirk method to identify such HDD while reading
the cache status in sd_probe(). If cache quirk is present for
the HDD, lets assume that cache is enabled and make WCE bit
equal to 1.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Pankaj Kumar <pankaj.km@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/sd.c
include/scsi/scsi_device.h