lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sun, 30 Oct 2011 21:16:25 +0200
From:	Sergei Shtylyov <sshtylyov@...sta.com>
To:	JiSheng Zhang <jszhang3@...il.com>
CC:	jgarzik@...ox.com, linux-ide@...r.kernel.org,
	avorontsov@...sta.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ahci_platform: add suspend & resume support

Hello.

On 30.10.2011 8:21, JiSheng Zhang wrote:

> Signed-off-by: JiSheng Zhang<jszhang3@...il.com>
> ---
>   drivers/ata/ahci_platform.c |   54 +++++++++++++++++++++++++++++++++++++++++++
>   1 files changed, 54 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c
> index c03277d..60ff9eb 100644
> --- a/drivers/ata/ahci_platform.c
> +++ b/drivers/ata/ahci_platform.c
> @@ -202,12 +202,66 @@ static int __devexit ahci_remove(struct platform_device *pdev)
>   	return 0;
>   }
>
> +#ifdef CONFIG_PM
> +static int ahci_suspend(struct platform_device *pdev, pm_message_t mesg)
> +{
> +	struct ata_host *host = dev_get_drvdata(&pdev->dev);

    You can also call platform_get_drvdata(pdev).

> +static int ahci_resume(struct platform_device *pdev)
> +{
> +	struct device *dev =&pdev->dev;
> +	struct ahci_platform_data *pdata = dev->platform_data;

    There's dev_get_platdata().

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ