• Tejun Heo's avatar
    libata-acpi: improve _GTF execution error handling and reporting · 0e8634bf
    Tejun Heo authored
    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: default avatarTejun Heo <htejun@gmail.com>
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    0e8634bf
libata-acpi.c 19 KB