diff mbox series

soc: imx: gpcv2: add GENPD_FLAG_ACTIVE_WAKEUP flag for usb of imx8mm/n

Message ID 1666577916-32650-1-git-send-email-jun.li@nxp.com (mailing list archive)
State New, archived
Headers show
Series soc: imx: gpcv2: add GENPD_FLAG_ACTIVE_WAKEUP flag for usb of imx8mm/n | expand

Commit Message

Jun Li Oct. 24, 2022, 2:18 a.m. UTC
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(+)

Comments

Lucas Stach Oct. 25, 2022, 7:14 a.m. UTC | #1
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,
Shawn Guo Oct. 29, 2022, 8:21 a.m. UTC | #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!
diff mbox series

Patch

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,