]> git.proxmox.com Git - qemu.git/commit - hw/ide/core.c
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)
commita58b8d5401b6064d52113f243456115d046bdd12
treee325b5f7818062aadec21ef035140d169205bbc4
parent9b036055ef65d0ab3236dfdb0d07828cea961133
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