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] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 11 Aug 2016 10:40:19 +0200
From:	Grzegorz Jaszczyk <jaz@...ihalf.com>
To:	linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Cc:	Marcin Wojtas <mw@...ihalf.com>,
	Grzegorz Jaszczyk <jaz@...ihalf.com>,
	Lior Amsalem <alior@...vell.com>,
	Eduardo Valentin <edubezval@...il.com>, rui.zhang@...el.com,
	Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>,
	Gregory CLEMENT <gregory.clement@...e-electrons.com>
Subject: Re: [PATCH] thermal: armada: add support for suspend/resume

Hi,

I just wanted to kindly remind about this patch.

Best regards,
Grzegorz

2016-07-21 12:43 GMT+02:00 Grzegorz Jaszczyk <jaz@...ihalf.com>:
> There is no need to implement subroutine for suspend since there is no
> data to store before suspending.
>
> Signed-off-by: Grzegorz Jaszczyk <jaz@...ihalf.com>
> ---
>  drivers/thermal/armada_thermal.c | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c
> index ae75328..65f9838 100644
> --- a/drivers/thermal/armada_thermal.c
> +++ b/drivers/thermal/armada_thermal.c
> @@ -304,12 +304,26 @@ static int armada_thermal_exit(struct platform_device *pdev)
>         return 0;
>  }
>
> +static int armada_thermal_resume(struct device *dev)
> +{
> +       struct thermal_zone_device *thermal =
> +               dev_get_drvdata(dev);
> +       struct armada_thermal_priv *priv = thermal->devdata;
> +
> +       priv->data->init_sensor(to_platform_device(dev), priv);
> +
> +       return 0;
> +}
> +
> +static SIMPLE_DEV_PM_OPS(armada_thermal_pm_ops, NULL, armada_thermal_resume);
> +
>  static struct platform_driver armada_thermal_driver = {
>         .probe = armada_thermal_probe,
>         .remove = armada_thermal_exit,
>         .driver = {
>                 .name = "armada_thermal",
>                 .of_match_table = armada_thermal_id_table,
> +               .pm = &armada_thermal_pm_ops,
>         },
>  };
>
> --
> 1.8.3.1
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ