• Tejun Heo's avatar
    libata-acpi: improve ACPI disabling · 66fa7f21
    Tejun Heo authored
    * If _GTF evalution fails, it's pointless to retry.  If nothing else
      is wrong, just ignore the error.
    
    * After disabling ACPI, return success iff the number of executed _GTF
      command equals zero.  Otherwise, tell EH to retry.  This change
      fixes bogus 1 return bug where ata_acpi_on_devcfg() expects the
      caller to reload IDENTIFY data and continue but the caller
      interprets it as an error.
    Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    66fa7f21
libata-acpi.c 18.9 KB