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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I just wanted to kindly remind about this patch.

Best regards,
Grzegorz

2016-07-21 12:39 GMT+02:00 Grzegorz Jaszczyk <jaz@xxxxxxxxxxxx>:
> There is no need to implement subroutine for suspend since there is no
> data to store before suspending.
>
> Signed-off-by: Grzegorz Jaszczyk <jaz@xxxxxxxxxxxx>
> ---
>  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
>
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux