[PATCH RESEND 0/3] scsi: fix internal write cache issue on usb hdd.

2012-07-07 Thread Namjae Jeon
From: Namjae Jeon The numbers of USB HDDs(All USB HDD I checked) does not respond correctly to scsi mode sense command for retrieving the write cache page status. Even though write cache is enabled by default, due to scsi driver assume that cache is not enabled which in turn might lead to loss of

[PATCH RESEND 2/3] usb: storage: add support for write cache quirk

2012-07-07 Thread Namjae Jeon
From: Namjae Jeon Add support for write cache quirk on usb hdd. scsi driver will be set to wce by detecting write cache quirk in quirk list when plugging usb hdd. Signed-off-by: Namjae Jeon Signed-off-by: Pankaj Kumar Signed-off-by: Amit Sahrawat Acked-by: Alan Stern --- Documentation/kerne

[PATCH RESEND 1/3] scsi: set to WCE if usb cache quirk is present.

2012-07-07 Thread Namjae Jeon
From: Namjae Jeon 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 Signed-off-by: Pankaj Kumar Signed-off-by: Amit Sah

[PATCH RESEND 3/3] usb: storage: update usb devices for write cache quirk in quirk list.

2012-07-07 Thread Namjae Jeon
From: Namjae Jeon Update information of Seagate Portable HDD and WD My Passport HDD in quirk list. Signed-off-by: Namjae Jeon Signed-off-by: Pankaj Kumar Signed-off-by: Amit Sahrawat Acked-by: Alan Stern --- drivers/usb/storage/unusual_devs.h | 12 1 file changed, 12 insertio