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:	Thu, 11 Aug 2016 10:39:37 +0200
From:	Grzegorz Jaszczyk <jaz@...ihalf.com>
To:	linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org
Cc:	Marcin Wojtas <mw@...ihalf.com>,
	Grzegorz Jaszczyk <jaz@...ihalf.com>,
	Lior Amsalem <alior@...vell.com>,
	Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>,
	Gregory CLEMENT <gregory.clement@...e-electrons.com>,
	wsa@...-dreams.de
Subject: Re: [PATCH] i2c: i2c-mv64xxx: add suspend/resume support

Hi,

I just wanted to kindly remind about this patch.

Best regards,
Grzegorz

2016-07-21 12:39 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/i2c/busses/i2c-mv64xxx.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>
> diff --git a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64xxx.c
> index b4dec08..dc048e7 100644
> --- a/drivers/i2c/busses/i2c-mv64xxx.c
> +++ b/drivers/i2c/busses/i2c-mv64xxx.c
> @@ -977,12 +977,24 @@ mv64xxx_i2c_remove(struct platform_device *dev)
>         return 0;
>  }
>
> +static int mv64xxx_i2c_resume(struct device *dev)
> +{
> +       struct mv64xxx_i2c_data *drv_data = dev_get_drvdata(dev);
> +
> +       mv64xxx_i2c_hw_init(drv_data);
> +
> +       return 0;
> +}
> +
> +static SIMPLE_DEV_PM_OPS(mv64xxx_i2c_pm_ops, NULL, mv64xxx_i2c_resume);
> +
>  static struct platform_driver mv64xxx_i2c_driver = {
>         .probe  = mv64xxx_i2c_probe,
>         .remove = mv64xxx_i2c_remove,
>         .driver = {
>                 .name   = MV64XXX_I2C_CTLR_NAME,
>                 .of_match_table = mv64xxx_i2c_of_match_table,
> +               .pm = &mv64xxx_i2c_pm_ops,
>         },
>  };
>
> --
> 1.8.3.1
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ