From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org,
jeff@garzik.org, linux-ide@vger.kernel.org
Subject: Re: [PATCH] sata_fsl: Add power mgmt support
Date: Thu, 11 Jun 2009 13:29:41 +0400 [thread overview]
Message-ID: <4A30CE85.40508@ru.mvista.com> (raw)
In-Reply-To: <1244692417-18484-1-git-send-email-galak@kernel.crashing.org>
Hello.
Kumar Gala wrote:
> From: Dave Liu <daveliu@freescale.com>
>
> Signed-off-by: Dave Liu <daveliu@freescale.com>
> Signed-off-by: Liu Yu <yu.liu@freescale.com>
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
> drivers/ata/sata_fsl.c | 35 +++++++++++++++++++++++++++++++++++
> 1 files changed, 35 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c
> index 36b8629..94eaa43 100644
> --- a/drivers/ata/sata_fsl.c
> +++ b/drivers/ata/sata_fsl.c
> @@ -1378,6 +1378,37 @@ static int sata_fsl_remove(struct of_device *ofdev)
> return 0;
> }
>
> +#ifdef CONFIG_PM
> +static int sata_fsl_suspend(struct of_device *op, pm_message_t state)
> +{
> + struct ata_host *host = dev_get_drvdata(&op->dev);
> + return ata_host_suspend(host, state);
> +}
> +
> +static int sata_fsl_resume(struct of_device *op)
> +{
> + struct ata_host *host = dev_get_drvdata(&op->dev);
> + struct sata_fsl_host_priv *host_priv = host->private_data;
> + int ret;
> + void __iomem *hcr_base = host_priv->hcr_base;
> + struct ata_port *ap = host->ports[0];
> + struct sata_fsl_port_priv *pp = ap->private_data;
> +
> + ret = sata_fsl_init_controller(host);
> + if (ret) {
> + dev_printk(KERN_ERR, &op->dev,
> + "Error initialize hardware\n");
>
May be "initializing"?
> + return ret;
> + }
> +
> + /* Recovery the CHBA register in host controller cmd register set */
>
Maybe "Recover"?
> + iowrite32(pp->cmdslot_paddr & 0xffffffff, hcr_base + CHBA);
> +
> + ata_host_resume(host);
> + return 0;
> +}
> +#endif
>
MBR, Sergei
next prev parent reply other threads:[~2009-06-11 9:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-11 3:53 [PATCH] sata_fsl: Add power mgmt support Kumar Gala
2009-06-11 9:29 ` Sergei Shtylyov [this message]
2009-06-23 5:57 ` Jeff Garzik
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=4A30CE85.40508@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=galak@kernel.crashing.org \
--cc=jeff@garzik.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
/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).