libata-acpi: improve _GTF execution error handling and reporting
authorTejun Heo <htejun@gmail.com>
Sat, 15 Dec 2007 06:05:05 +0000 (15:05 +0900)
committerJeff Garzik <jeff@garzik.org>
Tue, 18 Dec 2007 01:33:15 +0000 (20:33 -0500)
commit0e8634bf8e48e50aa96c7e7becafcf9d98c1a28d
treeb49e1130fe721d4be4530c5a458b9e39199b4696
parent66fa7f2158e84530aa4a1839a3500d6bdb231301
libata-acpi: improve _GTF execution error handling and reporting

As _GTF commands can't transfer data, device error never signals
transfer error.  It indicates that the device vetoed the operation, so
it's meaningless to retry.

This patch makes libata-acpi to report and continue on device errors
when executing _GTF commands.  Also commands rejected by device don't
contribute to the number of _GTF commands executed.

While at it, update _GTF execution reporting such that all successful
commands are logged at KERN_DEBUG and rename taskfile_load_raw() to
ata_acpi_run_tf() for consistency.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-acpi.c