[2/2] video: meson: keep power domain up after booting
diff mbox series

Message ID 20200217113644.21434-2-agust@denx.de
State Accepted
Commit 9aa886cc0b4424b49b24486f804fd18aafad00b2
Delegated to: Simon Glass
Headers show
Series
  • [1/2] dm: core: Add a flag for power domain control on device removal
Related show

Commit Message

Anatolij Gustschin Feb. 17, 2020, 11:36 a.m. UTC
Add driver flag to skip power domain disabling on device removal.

Fixes: 52edfed65de9 ("dm: core: device: switch off power domain after device removal")
Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 drivers/video/meson/meson_vpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Neil Armstrong Feb. 17, 2020, 4:55 p.m. UTC | #1
On 17/02/2020 12:36, Anatolij Gustschin wrote:
> Add driver flag to skip power domain disabling on device removal.
> 
> Fixes: 52edfed65de9 ("dm: core: device: switch off power domain after device removal")
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
>  drivers/video/meson/meson_vpu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/video/meson/meson_vpu.c b/drivers/video/meson/meson_vpu.c
> index 4eb66398d0..aa8c0a962f 100644
> --- a/drivers/video/meson/meson_vpu.c
> +++ b/drivers/video/meson/meson_vpu.c
> @@ -210,5 +210,5 @@ U_BOOT_DRIVER(meson_vpu) = {
>  	.probe = meson_vpu_probe,
>  	.bind = meson_vpu_bind,
>  	.priv_auto_alloc_size = sizeof(struct meson_vpu_priv),
> -	.flags  = DM_FLAG_PRE_RELOC,
> +	.flags  = DM_FLAG_PRE_RELOC | DM_FLAG_REMOVE_WITH_PD_ON,
>  };
> 

Acked-by: Neil Armstrong <narmstrong@baylibre.com>

and

Tested-by: Guillaume La Roque <glaroque@baylibre.com>

Thanks,
Neil
Simon Glass March 3, 2020, 2:46 a.m. UTC | #2
On 17/02/2020 12:36, Anatolij Gustschin wrote:
> Add driver flag to skip power domain disabling on device removal.
>
> Fixes: 52edfed65de9 ("dm: core: device: switch off power domain after device removal")
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
>  drivers/video/meson/meson_vpu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
Applied to u-boot-dm, thanks!

Patch
diff mbox series

diff --git a/drivers/video/meson/meson_vpu.c b/drivers/video/meson/meson_vpu.c
index 4eb66398d0..aa8c0a962f 100644
--- a/drivers/video/meson/meson_vpu.c
+++ b/drivers/video/meson/meson_vpu.c
@@ -210,5 +210,5 @@  U_BOOT_DRIVER(meson_vpu) = {
 	.probe = meson_vpu_probe,
 	.bind = meson_vpu_bind,
 	.priv_auto_alloc_size = sizeof(struct meson_vpu_priv),
-	.flags  = DM_FLAG_PRE_RELOC,
+	.flags  = DM_FLAG_PRE_RELOC | DM_FLAG_REMOVE_WITH_PD_ON,
 };