All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] Revert "media: dw9768: activate runtime PM and turn off device"
@ 2022-04-13 13:33 Sakari Ailus
  2022-04-13 14:15 ` Tomasz Figa
  2022-04-14  2:51 ` Bingbu Cao
  0 siblings, 2 replies; 3+ messages in thread
From: Sakari Ailus @ 2022-04-13 13:33 UTC (permalink / raw)
  To: linux-media; +Cc: tfiga, bingbu.cao

This reverts commit c09d776eaa060534a1663e3b89d842db3e1d9076.

Revert the commit as it breaks runtime PM support on OF based systems.
More fixes to the driver are needed.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
 drivers/media/i2c/dw9768.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/media/i2c/dw9768.c b/drivers/media/i2c/dw9768.c
index 65c6acf3ced9a..c086580efac78 100644
--- a/drivers/media/i2c/dw9768.c
+++ b/drivers/media/i2c/dw9768.c
@@ -469,11 +469,6 @@ static int dw9768_probe(struct i2c_client *client)
 
 	dw9768->sd.entity.function = MEDIA_ENT_F_LENS;
 
-	/*
-	 * Device is already turned on by i2c-core with ACPI domain PM.
-	 * Attempt to turn off the device to satisfy the privacy LED concerns.
-	 */
-	pm_runtime_set_active(dev);
 	pm_runtime_enable(dev);
 	if (!pm_runtime_enabled(dev)) {
 		ret = dw9768_runtime_resume(dev);
@@ -488,7 +483,6 @@ static int dw9768_probe(struct i2c_client *client)
 		dev_err(dev, "failed to register V4L2 subdev: %d", ret);
 		goto err_power_off;
 	}
-	pm_runtime_idle(dev);
 
 	return 0;
 
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] Revert "media: dw9768: activate runtime PM and turn off device"
  2022-04-13 13:33 [PATCH 1/1] Revert "media: dw9768: activate runtime PM and turn off device" Sakari Ailus
@ 2022-04-13 14:15 ` Tomasz Figa
  2022-04-14  2:51 ` Bingbu Cao
  1 sibling, 0 replies; 3+ messages in thread
From: Tomasz Figa @ 2022-04-13 14:15 UTC (permalink / raw)
  To: Sakari Ailus; +Cc: linux-media, bingbu.cao

On Wed, Apr 13, 2022 at 10:32 PM Sakari Ailus
<sakari.ailus@linux.intel.com> wrote:
>
> This reverts commit c09d776eaa060534a1663e3b89d842db3e1d9076.
>
> Revert the commit as it breaks runtime PM support on OF based systems.
> More fixes to the driver are needed.
>
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> ---
>  drivers/media/i2c/dw9768.c | 6 ------
>  1 file changed, 6 deletions(-)
>
> diff --git a/drivers/media/i2c/dw9768.c b/drivers/media/i2c/dw9768.c
> index 65c6acf3ced9a..c086580efac78 100644
> --- a/drivers/media/i2c/dw9768.c
> +++ b/drivers/media/i2c/dw9768.c
> @@ -469,11 +469,6 @@ static int dw9768_probe(struct i2c_client *client)
>
>         dw9768->sd.entity.function = MEDIA_ENT_F_LENS;
>
> -       /*
> -        * Device is already turned on by i2c-core with ACPI domain PM.
> -        * Attempt to turn off the device to satisfy the privacy LED concerns.
> -        */
> -       pm_runtime_set_active(dev);
>         pm_runtime_enable(dev);
>         if (!pm_runtime_enabled(dev)) {
>                 ret = dw9768_runtime_resume(dev);
> @@ -488,7 +483,6 @@ static int dw9768_probe(struct i2c_client *client)
>                 dev_err(dev, "failed to register V4L2 subdev: %d", ret);
>                 goto err_power_off;
>         }
> -       pm_runtime_idle(dev);
>
>         return 0;
>
> --
> 2.30.2
>

Thanks for a quick response!

Reviewed-by: Tomasz Figa <tfiga@chromium.org>

Best regards,
Tomasz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] Revert "media: dw9768: activate runtime PM and turn off device"
  2022-04-13 13:33 [PATCH 1/1] Revert "media: dw9768: activate runtime PM and turn off device" Sakari Ailus
  2022-04-13 14:15 ` Tomasz Figa
@ 2022-04-14  2:51 ` Bingbu Cao
  1 sibling, 0 replies; 3+ messages in thread
From: Bingbu Cao @ 2022-04-14  2:51 UTC (permalink / raw)
  To: Sakari Ailus, linux-media; +Cc: tfiga, bingbu.cao

Sakari, 

Thanks.

Reviewed-by: Bingbu Cao <bingbu.cao@intel.com>

On 4/13/22 9:33 PM, Sakari Ailus wrote:
> This reverts commit c09d776eaa060534a1663e3b89d842db3e1d9076.
> 
> Revert the commit as it breaks runtime PM support on OF based systems.
> More fixes to the driver are needed.
> 
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> ---
>  drivers/media/i2c/dw9768.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/drivers/media/i2c/dw9768.c b/drivers/media/i2c/dw9768.c
> index 65c6acf3ced9a..c086580efac78 100644
> --- a/drivers/media/i2c/dw9768.c
> +++ b/drivers/media/i2c/dw9768.c
> @@ -469,11 +469,6 @@ static int dw9768_probe(struct i2c_client *client)
>  
>  	dw9768->sd.entity.function = MEDIA_ENT_F_LENS;
>  
> -	/*
> -	 * Device is already turned on by i2c-core with ACPI domain PM.
> -	 * Attempt to turn off the device to satisfy the privacy LED concerns.
> -	 */
> -	pm_runtime_set_active(dev);
>  	pm_runtime_enable(dev);
>  	if (!pm_runtime_enabled(dev)) {
>  		ret = dw9768_runtime_resume(dev);
> @@ -488,7 +483,6 @@ static int dw9768_probe(struct i2c_client *client)
>  		dev_err(dev, "failed to register V4L2 subdev: %d", ret);
>  		goto err_power_off;
>  	}
> -	pm_runtime_idle(dev);
>  
>  	return 0;
>  
> 

-- 
Best regards,
Bingbu Cao

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-14  2:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-13 13:33 [PATCH 1/1] Revert "media: dw9768: activate runtime PM and turn off device" Sakari Ailus
2022-04-13 14:15 ` Tomasz Figa
2022-04-14  2:51 ` Bingbu Cao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.