Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1578975
| From | Jonathan Cameron <jic23@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 4/7] staging: iio: isl29028: use the runtime power management for system sleep |
| Date | 2017-02-11 10:50 +0100 |
| Message-ID | <t9CtA-7ty-19@gated-at.bofh.it> (permalink) |
| References | <t8MbD-81G-3@gated-at.bofh.it> <t8MbE-81G-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 09/02/17 01:54, Brian Masney wrote:
> With the introduction of runtime power management in commit 2db5054ac28d
> ("staging: iio: isl29028: add runtime power management support"), the
> system could go to sleep and turn off the device without notifying the
> runtime power management code. This patch changes the system suspend
> and resume to go through the runtime power management.
>
> Signed-off-by: Brian Masney <masneyb@onstation.org>
Applied to the togreg branch of iio.git and pushed out as testing.
Thanks,
Jonathan
> ---
> drivers/staging/iio/light/isl29028.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/staging/iio/light/isl29028.c b/drivers/staging/iio/light/isl29028.c
> index b63fdf70..ddd604d 100644
> --- a/drivers/staging/iio/light/isl29028.c
> +++ b/drivers/staging/iio/light/isl29028.c
> @@ -656,7 +656,8 @@ static int __maybe_unused isl29028_resume(struct device *dev)
> }
>
> static const struct dev_pm_ops isl29028_pm_ops = {
> - SET_SYSTEM_SLEEP_PM_OPS(isl29028_suspend, isl29028_resume)
> + SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
> + pm_runtime_force_resume)
> SET_RUNTIME_PM_OPS(isl29028_suspend, isl29028_resume, NULL)
> };
>
>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 4/7] staging: iio: isl29028: use the runtime power management for system sleep Brian Masney <masneyb@onstation.org> - 2017-02-09 03:00 +0100 Re: [PATCH 4/7] staging: iio: isl29028: use the runtime power management for system sleep Jonathan Cameron <jic23@kernel.org> - 2017-02-11 10:50 +0100
csiph-web