linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Randy Dunlap <randy_d_dunlap@linux.intel.com>
Cc: ide <linux-ide@vger.kernel.org>, axboe@suse.de
Subject: Re: [PATCH 4/7] call/invoke SATA ACPI suspend/resume functions
Date: Wed, 14 Dec 2005 17:11:47 -0500	[thread overview]
Message-ID: <43A098A3.9090606@pobox.com> (raw)
In-Reply-To: <20051213160640.6a5154b0.randy_d_dunlap@linux.intel.com>

Randy Dunlap wrote:
> From: Randy Dunlap <randy_d_dunlap@linux.intel.com>
> 
> Add calls to ACPI methods for SATA drives.
> 
> Signed-off-by: Randy Dunlap <randy_d_dunlap@linux.intel.com>
> ---
>  drivers/scsi/libata-core.c |    4 ++++
>  drivers/scsi/libata.h      |   26 ++++++++++++++++++++++++++
>  2 files changed, 30 insertions(+)
> 
> --- linux-2615-rc5g3.orig/drivers/scsi/libata-core.c
> +++ linux-2615-rc5g3/drivers/scsi/libata-core.c
> @@ -1345,6 +1345,8 @@ void ata_dev_config(struct ata_port *ap,
>  
>  	if (ap->ops->dev_config)
>  		ap->ops->dev_config(ap, &ap->device[i]);
> +
> +	do_drive_SDD(ap, i);
>  }
>  
>  /**
> @@ -1784,6 +1786,8 @@ static void ata_set_mode(struct ata_port
>  	if (ap->flags & ATA_FLAG_PORT_DISABLED)
>  		return;
>  
> +	do_drive_update_taskfiles(ap);
> +
>  	if (ap->ops->post_set_mode)
>  		ap->ops->post_set_mode(ap);
>  

Mostly OK.

1) The function names are awful.  I would suggest ata_acpi_push_id() and 
ata_acpi_exec_tfs() instead.

2) The call to do_drive_update_taskfiles() should be done in 
ata_bus_probe(), not inside ata_set_mode() where it is essentially 
hidden amongst code that is dedicated to a single purpose, getting the 
data xfer timings.

	Jeff



  reply	other threads:[~2005-12-14 22:11 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20051213160110.193e3f61.randy_d_dunlap@linux.intel.com>
2005-12-14  0:02 ` [PATCH 1/7] SATA suspend/resume support (Jens) Randy Dunlap
2005-12-14 22:07   ` Jeff Garzik
2005-12-14 22:22     ` Randy Dunlap
2005-12-14  0:04 ` [PATCH 2/7] SATA ACPI make/config Randy Dunlap
2005-12-14 22:07   ` Jeff Garzik
2005-12-14  0:05 ` [PATCH 3/7] SATA ACPI linux/libata.h update Randy Dunlap
2005-12-14 22:08   ` Jeff Garzik
2005-12-14 23:00     ` Randy Dunlap
2005-12-14  0:06 ` [PATCH 4/7] call/invoke SATA ACPI suspend/resume functions Randy Dunlap
2005-12-14 22:11   ` Jeff Garzik [this message]
2005-12-14  0:07 ` [PATCH 5/7] SATA ACPI kernel-doc Randy Dunlap
2005-12-14 22:12   ` Jeff Garzik
2005-12-14  0:09 ` [PATCH 6/7] SATA ACPI suspend/resume functions Randy Dunlap
2005-12-14 22:23   ` Jeff Garzik
2005-12-14  0:10 ` [PATCH 7/7] SATA ACPI debug-only output Randy Dunlap
2005-12-14 22:23   ` Jeff Garzik
2005-12-14 22:42     ` Randy Dunlap
2005-12-14 22:42       ` Jeff Garzik
2005-12-14 23:08         ` 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=43A098A3.9090606@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=axboe@suse.de \
    --cc=linux-ide@vger.kernel.org \
    --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;
as well as URLs for NNTP newsgroup(s).