]> git.baikalelectronics.ru Git - kernel.git/commit
pata_via: Cache and rewrite the device bit
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Fri, 17 Apr 2009 11:21:21 +0000 (12:21 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 17 Apr 2009 23:04:30 +0000 (19:04 -0400)
commitdd9276799174727ad1fb7048f8f93f24f616d85d
tree1d900c29cbf43e81f06f30454a3a794bd882ebb4
parentb45108244c4b0c73eddd8160f81ac5e8262bd5ec
pata_via: Cache and rewrite the device bit

Some VIA chipsets will reset the DEV bit after IEN changes on ctl. Our
optimised write path avoids doing this but we need to remove the
optimisation on these devices.

[Identified and some original patches proposed by Josehn Chan @ VIA but
discussion then all ground to a halt so given a test case I dug it back out]

Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk
Tested-by: Christoph Bisping (bug #13086)
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_via.c