ide: set WCACHE supported in IDENTIFY data
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Oct 2010 13:29:41 +0000 (15:29 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Oct 2010 12:49:35 +0000 (14:49 +0200)
commitdc1ce66920820c6681ffda617218e34db133edc5
treee325b5f7818062aadec21ef035140d169205bbc4
parentba258547ee69de7bbf97a5612584afd353282324
ide: set WCACHE supported in IDENTIFY data

ATA does not only have the WCACHE enabled bit in identify word 85, but also
a WCACHE supported bit in word 82.  While the Linux kernel is fine with the
latter at least hdparm also needs the former before correctly displaying
the cache settings.  There's also a non-zero chance other operating systems
are more picky in their volatile write cache detection.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/core.c