]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita442a9f55fe70e095b7248754ed95d2a705d07eb
treeb49e1130fe721d4be4530c5a458b9e39199b4696
parentb6c98d5765b99de777922ccb432e917d5415fd3b
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