summaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_nv.c
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2009-02-15 20:24:24 +0100
committerJeff Garzik <jgarzik@redhat.com>2009-02-17 00:55:56 +0100
commitd1b3525b4126d7acad0493b62642b80b71442661 (patch)
treee8b55a52e5a57f92b997f84365fa9a72ded106c8 /drivers/ata/sata_nv.c
parentLinux 2.6.29-rc5 (diff)
downloadlinux-d1b3525b4126d7acad0493b62642b80b71442661.tar.xz
linux-d1b3525b4126d7acad0493b62642b80b71442661.zip
libata-sff: fix 32-bit PIO ATAPI regression
Commit 871af1210f13966ab911ed2166e4ab2ce775b99d (libata: Add 32bit PIO support) has caused all kinds of errors on the ATAPI devices, so it has been empirically proven that one shouldn't try to read/write an extra data word when a device is not expecting it already. "Don't do it then"; however, still use a chance to do 32-bit read/write one last time when there are exactly 3 trailing bytes. Oh, and stop pointlessly swapping the bytes to and fro on big-endian machines by using io*_rep() accessors which shouldn't byte-swap. This patch should fix the kernel.org bug #12609. Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/sata_nv.c')
0 files changed, 0 insertions, 0 deletions