From: Thomas Glanzmann <sithglan@stud.uni-erlangen.de>
To: Randy Dunlap <randy_d_dunlap@linux.intel.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
"Michael S. Tsirkin" <mst@mellanox.co.il>
Subject: Updated libata acpi patches for GIT HEAD
Date: Sun, 27 Aug 2006 23:50:32 +0200 [thread overview]
Message-ID: <20060827215032.GG8271@cip.informatik.uni-erlangen.de> (raw)
Hello Randy,
I have a T60 and use your libata acpi patch which saves/restores the
taskfile of the disk on hibernation and resume. I wonder if you have an
updated patch for GIT HEAD because a colleague with a similar notebook
has to use GIT HEAD to get his soundcard supported. I tried to port it
myself and there was only one reject which I maybe fixed, but I don't
intend to try the patch so I don't know:
@@ -4290,6 +4294,7 @@ int ata_device_resume(struct ata_port *a
}
if (!ata_dev_present(dev))
return 0;
+ ata_acpi_exec_tfs(ap);
if (dev->class == ATA_DEV_ATA)
ata_start_drive(ap, dev);
in libata-core.c. This function ata_device_resume does no longer exist in GIT
HEAD, so I modified the following function ata_scsi_device_resume instead:
diff -ruN linux-2.6.orig/drivers/scsi/libata-scsi.c linux-2.6/drivers/scsi/libata-scsi.c
--- linux-2.6.orig/drivers/scsi/libata-scsi.c 2006-08-27 20:01:34.000000000 +0200
+++ linux-2.6/drivers/scsi/libata-scsi.c 2006-08-27 23:13:00.000000000 +0200
@@ -499,6 +499,8 @@
sdev->sdev_state == SDEV_CANCEL || sdev->sdev_state == SDEV_DEL)
goto out_unlock;
+ ata_acpi_exec_tfs(ap);
+
/* request resume */
action = ATA_EH_RESUME;
if (sdev->sdev_gendev.power.power_state.event == PM_EVENT_SUSPEND)
Thomas
next reply other threads:[~2006-08-27 21:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-27 21:50 Thomas Glanzmann [this message]
2006-08-27 22:05 ` Randy.Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060827215032.GG8271@cip.informatik.uni-erlangen.de \
--to=sithglan@stud.uni-erlangen.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@mellanox.co.il \
--cc=randy_d_dunlap@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®