]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sata_via: Delay on vt6420 when starting ATAPI DMA write
authorBart Hartgers <bart.hartgers@gmail.com>
Sun, 27 Jun 2010 18:04:56 +0000 (19:04 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:55:40 +0000 (15:55 -0700)
commit4a6b24769e5dec6aff2752d2a5dec7f63c3d1eb9
treeb0d02cc82b392702b3698688d40ac79417c209a0
parentad2ec68f76ce08911c87bc8bd5c92491a0c5aac9
sata_via: Delay on vt6420 when starting ATAPI DMA write

commit a55ab496ea9c820b7192c15ef1fbf3291edfe638 upstream.

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>
[bwh: Remove version bump for 2.6.32]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/ata/sata_via.c