[PATCH 8/9] libata-acpi: ignore _GTM failure during suspend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Don't fail suspend because of _GTM failure.  This might eventually
cause _GTF evaluation failure during resume but that's better than
failing suspend.

Signed-off-by: Tejun Heo <htejun@xxxxxxxxx>
---
 drivers/ata/libata-acpi.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/ata/libata-acpi.c b/drivers/ata/libata-acpi.c
index e68e918..1981112 100644
--- a/drivers/ata/libata-acpi.c
+++ b/drivers/ata/libata-acpi.c
@@ -640,9 +640,12 @@ int ata_acpi_on_suspend(struct ata_port *ap)
 		ap->pflags &= ~ATA_PFLAG_GTM_VALID;
 	spin_unlock_irqrestore(ap->lock, flags);
 
-	if (rc == -ENOENT)
-		rc = 0;
-	return rc;
+	/* Don't fail suspend because of _GTM failure.  This will skip
+	 * _STM during resume and has the possibility of failing _GTF
+	 * but that's better than failing suspend/resume.  After all,
+	 * libata doesn't depend on ACPI to configure devices.
+	 */
+	return 0;
 }
 
 /**
-- 
1.5.2.4

-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux