sata_via: Delay on vt6420 when starting ATAPI DMA write
authorBart Hartgers <bart.hartgers@gmail.com>
Sun, 14 Feb 2010 12:04:50 +0000 (13:04 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 1 Mar 2010 20:19:21 +0000 (15:19 -0500)
commita55ab496ea9c820b7192c15ef1fbf3291edfe638
tree76b835a26c4aaaa2d7e970e76df7b95c0fdcc932
parent4b7d1c0509d0d07edc731f990791dc5518e51617
sata_via: Delay on vt6420 when starting ATAPI DMA write

When writing a disc on certain lite-on dvd-writers (also rebadged
as optiarc/LG/...) connected to a vt6420, the ATAPI CDB ends
up in the datastream and on the disc, causing silent corruption.
Delaying between sending the CDB and starting DMA seems to
prevent this.

I do not know if there are burners that do not suffer from
this, but the patch should be safe for those as well.

There are many reports of this issue, but AFAICT no solution was
found before. For example:
http://lkml.indiana.edu/hypermail/linux/kernel/0802.3/0561.html

Signed-off-by: Bart Hartgers <bart.hartgers@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_via.c