[PATCH] ide: fix IDE ACPI regression breaking suspend

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

 



Commit 4dde4492d850a4c9bcaa92e5bd7f4eebe3e2f5ab ("ide: make drive->idan union (take 2)") accidentally introduced an IDE ACPI regression whichat least on some machines confuses ACPI and breaks suspend. Fix it.
Fixes kernel.org bug #12279:http://bugzilla.kernel.org/show_bug.cgi?id=12279
[ Sorry about the bug (IDE ACPI is not used by default so it managed  to slip in).  Still it is kind of surprising that the bug breaks  suspend as it shouldn't impact anything except IDE ACPI (it seems  that it uncovered either some ACPI/PM deficiency or a BIOS bug). ]
Reported-and-bisected-by: David Roka <roka@xxxxxxxx>Tested-by: David Roka <roka@xxxxxxxx>Cc: Rafael J. Wysocki <rjw@xxxxxxx>Cc: Len Brown <len.brown@xxxxxxxxx>Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@xxxxxxxxx>--- drivers/ide/ide-acpi.c |    4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Index: b/drivers/ide/ide-acpi.c===================================================================--- a/drivers/ide/ide-acpi.c+++ b/drivers/ide/ide-acpi.c@@ -615,10 +615,10 @@ void ide_acpi_push_timing(ide_hwif_t *hw 	in_params[0].buffer.length = sizeof(struct GTM_buffer); 	in_params[0].buffer.pointer = (u8 *)&hwif->acpidata->gtm; 	in_params[1].type = ACPI_TYPE_BUFFER;-	in_params[1].buffer.length = sizeof(ATA_ID_WORDS * 2);+	in_params[1].buffer.length = ATA_ID_WORDS * 2; 	in_params[1].buffer.pointer = (u8 *)&master->idbuff; 	in_params[2].type = ACPI_TYPE_BUFFER;-	in_params[2].buffer.length = sizeof(ATA_ID_WORDS * 2);+	in_params[2].buffer.length = ATA_ID_WORDS * 2; 	in_params[2].buffer.pointer = (u8 *)&slave->idbuff; 	/* Output buffer: _STM has no output */ ÿôèº{.nÇ+?·?®?­?+%?Ëÿ±éݶ¥?wÿº{.nÇ+?·¥?{±þ'^þ)í?æèw*jg¬±¨¶????Ý¢jÿ¾«þG«?éÿ¢¸¢·¦j:+v?¨?wèjØm¶?ÿþø¯ù®w¥þ?àþf£¢·h??â?úÿ?Ù¥


[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