From: Paolo Bonzini Date: Thu, 5 Jul 2012 12:18:21 +0000 (+0200) Subject: [libata] scsi: implement MODE SELECT command X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~40^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b26d29ccd592ea585c7cc291384184c5568da92;p=pandora-kernel.git [libata] scsi: implement MODE SELECT command The cache_type file in sysfs lets users configure the disk cache in write-through or write-back modes. However, ata disks do not support writing to the file because they do not implement the MODE SELECT command. This patch adds a translation from MODE SELECT (for the caching page only) to the ATA SET FEATURES command. The set of changeable parameters answered by MODE SENSE is also adjusted accordingly. Signed-off-by: Paolo Bonzini Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed