linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] soc: imx: gpcv2: add GENPD_FLAG_ACTIVE_WAKEUP flag for usb of imx8mm/n
@ 2022-10-24  2:18 Li Jun
  2022-10-25  7:14 ` Lucas Stach
  2022-10-29  8:21 ` Shawn Guo
  0 siblings, 2 replies; 3+ messages in thread
From: Li Jun @ 2022-10-24  2:18 UTC (permalink / raw)
  To: shawnguo
  Cc: s.hauer, kernel, festevam, linux-imx, l.stach, laurent.pinchart,
	aford173, marex, martink, linux-arm-kernel, xu.yang_2, jun.li

To keep the power domain on if usb remote wakeup is enabled, add the
GENPD_FLAG_ACTIVE_WAKEUP for otg1/2 of imx8mm/n.

Signed-off-by: Li Jun <jun.li@nxp.com>
---
 drivers/soc/imx/gpcv2.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c
index 88aee59730e3..7a47d14fde44 100644
--- a/drivers/soc/imx/gpcv2.c
+++ b/drivers/soc/imx/gpcv2.c
@@ -755,6 +755,7 @@ static const struct imx_pgc_domain imx8mm_pgc_domains[] = {
 	[IMX8MM_POWER_DOMAIN_OTG1] = {
 		.genpd = {
 			.name = "usb-otg1",
+			.flags = GENPD_FLAG_ACTIVE_WAKEUP,
 		},
 		.bits  = {
 			.pxx = IMX8MM_OTG1_SW_Pxx_REQ,
@@ -766,6 +767,7 @@ static const struct imx_pgc_domain imx8mm_pgc_domains[] = {
 	[IMX8MM_POWER_DOMAIN_OTG2] = {
 		.genpd = {
 			.name = "usb-otg2",
+			.flags = GENPD_FLAG_ACTIVE_WAKEUP,
 		},
 		.bits  = {
 			.pxx = IMX8MM_OTG2_SW_Pxx_REQ,
@@ -1232,6 +1234,7 @@ static const struct imx_pgc_domain imx8mn_pgc_domains[] = {
 	[IMX8MN_POWER_DOMAIN_OTG1] = {
 		.genpd = {
 			.name = "usb-otg1",
+			.flags = GENPD_FLAG_ACTIVE_WAKEUP,
 		},
 		.bits  = {
 			.pxx = IMX8MN_OTG1_SW_Pxx_REQ,
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] soc: imx: gpcv2: add GENPD_FLAG_ACTIVE_WAKEUP flag for usb of imx8mm/n
  2022-10-24  2:18 [PATCH] soc: imx: gpcv2: add GENPD_FLAG_ACTIVE_WAKEUP flag for usb of imx8mm/n Li Jun
@ 2022-10-25  7:14 ` Lucas Stach
  2022-10-29  8:21 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Lucas Stach @ 2022-10-25  7:14 UTC (permalink / raw)
  To: Li Jun, shawnguo
  Cc: s.hauer, kernel, festevam, linux-imx, laurent.pinchart, aford173,
	marex, martink, linux-arm-kernel, xu.yang_2

Am Montag, dem 24.10.2022 um 10:18 +0800 schrieb Li Jun:
> To keep the power domain on if usb remote wakeup is enabled, add the
> GENPD_FLAG_ACTIVE_WAKEUP for otg1/2 of imx8mm/n.
> 
> Signed-off-by: Li Jun <jun.li@nxp.com>

Reviewed-by: Lucas Stach <l.stach@pengutronix.de>

> ---
>  drivers/soc/imx/gpcv2.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c
> index 88aee59730e3..7a47d14fde44 100644
> --- a/drivers/soc/imx/gpcv2.c
> +++ b/drivers/soc/imx/gpcv2.c
> @@ -755,6 +755,7 @@ static const struct imx_pgc_domain imx8mm_pgc_domains[] = {
>  	[IMX8MM_POWER_DOMAIN_OTG1] = {
>  		.genpd = {
>  			.name = "usb-otg1",
> +			.flags = GENPD_FLAG_ACTIVE_WAKEUP,
>  		},
>  		.bits  = {
>  			.pxx = IMX8MM_OTG1_SW_Pxx_REQ,
> @@ -766,6 +767,7 @@ static const struct imx_pgc_domain imx8mm_pgc_domains[] = {
>  	[IMX8MM_POWER_DOMAIN_OTG2] = {
>  		.genpd = {
>  			.name = "usb-otg2",
> +			.flags = GENPD_FLAG_ACTIVE_WAKEUP,
>  		},
>  		.bits  = {
>  			.pxx = IMX8MM_OTG2_SW_Pxx_REQ,
> @@ -1232,6 +1234,7 @@ static const struct imx_pgc_domain imx8mn_pgc_domains[] = {
>  	[IMX8MN_POWER_DOMAIN_OTG1] = {
>  		.genpd = {
>  			.name = "usb-otg1",
> +			.flags = GENPD_FLAG_ACTIVE_WAKEUP,
>  		},
>  		.bits  = {
>  			.pxx = IMX8MN_OTG1_SW_Pxx_REQ,



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] soc: imx: gpcv2: add GENPD_FLAG_ACTIVE_WAKEUP flag for usb of imx8mm/n
  2022-10-24  2:18 [PATCH] soc: imx: gpcv2: add GENPD_FLAG_ACTIVE_WAKEUP flag for usb of imx8mm/n Li Jun
  2022-10-25  7:14 ` Lucas Stach
@ 2022-10-29  8:21 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2022-10-29  8:21 UTC (permalink / raw)
  To: Li Jun
  Cc: s.hauer, kernel, festevam, linux-imx, l.stach, laurent.pinchart,
	aford173, marex, martink, linux-arm-kernel, xu.yang_2

On Mon, Oct 24, 2022 at 10:18:36AM +0800, Li Jun wrote:
> To keep the power domain on if usb remote wakeup is enabled, add the
> GENPD_FLAG_ACTIVE_WAKEUP for otg1/2 of imx8mm/n.
> 
> Signed-off-by: Li Jun <jun.li@nxp.com>

Applied, thanks!

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-10-29  8:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-24  2:18 [PATCH] soc: imx: gpcv2: add GENPD_FLAG_ACTIVE_WAKEUP flag for usb of imx8mm/n Li Jun
2022-10-25  7:14 ` Lucas Stach
2022-10-29  8:21 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).