Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1460261

Re: [PATCH] i2c: i2c-mv64xxx: add suspend/resume support

From Grzegorz Jaszczyk <jaz@semihalf.com>
Newsgroups linux.kernel
Subject Re: [PATCH] i2c: i2c-mv64xxx: add suspend/resume support
Date 2016-08-11 10:40 +0200
Message-ID <s4TGW-1oz-21@gated-at.bofh.it> (permalink)
References <rXjyx-6eJ-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

I just wanted to kindly remind about this patch.

Best regards,
Grzegorz

2016-07-21 12:39 GMT+02:00 Grzegorz Jaszczyk <jaz@semihalf.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@semihalf.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
>

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] i2c: i2c-mv64xxx: add suspend/resume support Grzegorz Jaszczyk <jaz@semihalf.com> - 2016-08-11 10:40 +0200

csiph-web