From patchwork Mon Oct 24 02:18:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 13016505 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E3217C433FE for ; Mon, 24 Oct 2022 02:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zVEgI6IGLCh6UZ306p40tXL8sTl17G0mcHf3zezqr+4=; b=F14N4aOwSs8nHu iY91w/JA2dM04vsJd1UY+iOsy0SljcsRUq7Nyy7F+ymNPHSVf77UmMMjcU9CYjTqH8obGb68jdcWb r5N3151Hvh6L7IpQL2RR+kZUOOJr2aEZw/d4Mb551j9QPa6Lc4mDWueLSVwHjnkyN1XlQe5HnrDU4 s7B9PvA7Nb1RJFxSIsKd9EeEE4c1BC/SN6m48zS7IBw0Z/AJ7wFPOhiEHv2wuJLMk+wI5sMw9bgZo sZvAyA12rtBJOtp8WXuHzDd3T9Gq5/221zUVCCAiJnsY8sXStZnlawfcgeVWWJKG0uninYa9KrDo0 Xj4zaAFF3rOgOgXKDZUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1omnN0-00GouA-CA; Mon, 24 Oct 2022 02:39:18 +0000 Received: from mail-vi1eur05on2047.outbound.protection.outlook.com ([40.107.21.47] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1omnMw-00Gotf-D3 for linux-arm-kernel@lists.infradead.org; Mon, 24 Oct 2022 02:39:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Llg/4oA7wn2n/L/RDG3P50eQ3RM3aVqPeTSRorGsL3lAjwNITmOydbhRmd/2BTr6xPirtnE0h/uuoF/hbnx9bnf3FwsbdET4GTk4/LwKblPqbBsSHlezSe8D/irc1IUmDinDwXb5CDuRuio3W2QAndRfA1X1Jk2o5JWQzoPs4Vt8mbtNNYD15+57B8Bqx8wGo3FuSBE9F8dfbfDUbw1H1txEo05cVIM7wHkgeU18LjLb7Ib0HQ0JuYTKO/ikYATL3qBgJ9mA20yIrI9dBOODLgqrawYfJM6BmyI0nZ+KmfzcIlip+WrDiOx20WJjzlv9AL5mzH6GV+ytdqhxG2Hv/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=g7bbdmMClsdinQLUJguhGGZFEpucy5ruTnF/YXXe2z0=; b=diKLpRDxOBoyWqCV/C7poDgsXSBW9qyX7N/CE0T3Oa41/svEHQy1F6o0rFYAo/E73BRqnZmf9PCgc20MTmTioxtnlWUTfrsLxEJg+TMafD2LrDapwRHixjS8lORG5w9Iy5LhpClyOIqV+SkmuqUK/lsvDuEJSWps/lXPZKBreBMJ5cGCKqZzmUj8uf4d2lXiqgx7Q4Q5ueAjXyR5J0ryHQUr7OdY352Yic7LKlYhrlQiKDLP5W2jCuZaHl5UwU7IHns0XfEXobQ3i6fBaf1+JYE4/hYdYSdTFewP+DwwaJDAoqZgVsaxfSdLzEkOY7KEKMZOM0DxGdKHEs4DEqoYhg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=g7bbdmMClsdinQLUJguhGGZFEpucy5ruTnF/YXXe2z0=; b=J+bXl62wGkfmGNGKnV7zW52KQgWoD9aZuEusnDXP3oLqk1oTBuWU4B6sQqy9OE+luweRJBBKRt7ZUozTf+HLdh8ocTTFQv9Nu093VCV1crUiMF5FQao4KzidZLtF4WdDn5lXppdzvYdRVtnus1LX5ua+29BGKYtp1E447wjQp+8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) by DBBPR04MB7708.eurprd04.prod.outlook.com (2603:10a6:10:20d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.23; Mon, 24 Oct 2022 02:39:08 +0000 Received: from PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::cc4:c5c2:db97:1313]) by PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::cc4:c5c2:db97:1313%7]) with mapi id 15.20.5746.026; Mon, 24 Oct 2022 02:39:08 +0000 From: Li Jun To: shawnguo@kernel.org Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, l.stach@pengutronix.de, laurent.pinchart@ideasonboard.com, aford173@gmail.com, marex@denx.de, martink@posteo.de, linux-arm-kernel@lists.infradead.org, xu.yang_2@nxp.com, jun.li@nxp.com Subject: [PATCH] soc: imx: gpcv2: add GENPD_FLAG_ACTIVE_WAKEUP flag for usb of imx8mm/n Date: Mon, 24 Oct 2022 10:18:36 +0800 Message-Id: <1666577916-32650-1-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 X-ClientProxiedBy: SI1PR02CA0002.apcprd02.prod.outlook.com (2603:1096:4:1f7::16) To PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9640:EE_|DBBPR04MB7708:EE_ X-MS-Office365-Filtering-Correlation-Id: d9923a8d-4ff6-4e7b-2a14-08dab568ecd3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ws1ihXiZ6jdFhJzO9pzav/J2wHv1eMbRLQmL0wVFCQBf+PFN0npIVflrrxwCByoSrZgSunpRun0bKscsHAhz3+0hg2rKQ0++Cmnnv7e8s+LQVwH7RSeEOK3hVMozu0ImNgk9kJstwimM40hezvQ9+QA8a0UGTEX6tgVc7iqHCOJyguEasD1cVxLRx4TOaust2+tw9G0zud+VYkbq/zNrXopl4FeNxVcsJ36at8ESSIL0gcWmIW61DOQHgC9NxHG2w6+aegyEBwAfwHlUrRjpmkWJygjeP2my8NLVs/VVUbNIFyZBdvRYjGKff/buNdkO/YVqcwkwl55jH6AT66DBMQAvTuiuiXJF4o/J1enT1RHEMgFswySRWKNb0kZnUzSoaZpEZOb4/IZ534lxPrYA6a4nSa9ZFJCrfFqzXQyXeThvJsdXn5b6RXC1BPqIC4e7csBTDtu/CmxYkluq4yk7t5H/wjLpXCfNEQ1sNLcgSXcGvyrwdBQ5zWxbZi7zTxTuOa93gh8YQdfzTPPzn+p0479up0oBst5nFaJcZz8sQmFOQYHk4zt4A+9XvgFI6n9RSpsVCq4MrObnLtzpd7ru+wZlAQl7SofaScPkz+b3hKlHxi2lURyglT9gRSz8QDrvcLNER5k+R+0joS092iF/+yVzrMpCwEBxFFF5hs7a0UoyrQuQzRMIUowWKPzlMmfMM2yBkk3JT2f3Y8dGhNYWxLAEJLcAhCkVx/nTlD2/D/I/qM3G3O8yByvg5u25xP4dqCnxsQfHB5f6OwXqCfHjK001Pu3Pr/oJ3U91lYd8xPYRxcH5Elm72UAmwVR8fVP4sz1xJlxXjmURWOLaTVFsog== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9640.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(39860400002)(136003)(346002)(366004)(396003)(451199015)(186003)(2616005)(86362001)(38100700002)(2906002)(38350700002)(7416002)(8936002)(41300700001)(5660300002)(478600001)(66946007)(26005)(52116002)(6666004)(6486002)(4326008)(66556008)(66476007)(8676002)(6506007)(316002)(6916009)(6512007)(36756003)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ckbtXMAqrr5teuQKaiqe7588doj3WM+YPCvLiDZo/Uv/UoS8aiuzKMOSJebjaWMuxN75z0T0vxs97ByGVRjxR1OJ3QDY7GUrbnxw53pGCutV6gcpDAxeRgW0UiiJFWA4VCjwcP6P5fDHYEG29g79XronB6RM9ssUhW+rhMZrhB4oXJ1fGhLA4ogM8xNTHjhmSa3v4CvjYNazFI3arYM9tpbBsaUwTdrgEo++f+HE7KVkSK0FhIg+3dRsVXr+3pntEFdAFY/ltb0Qxwg/1rSJG4pdT6LAGXKqxPVmH9Hlh3/UmTaaL7g2+3GN1fASLOCXDN8AGlyU1z/lsHNaqHtFJ/ndSxMDIlUcRfc9j+cyB9t3by1NrRJJQj3jhMOpwlI/e6PNz97C7KKuAH6lMpZFRG1ZNIoR6ACu0Q23pHq+yk1y+Iq7YhN6BkBSGdVme57T+7W3SK5UtGXAVMy5AT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yno2pxFxqIgk1C9yNy+WIHiibKZCC X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d9923a8d-4ff6-4e7b-2a14-08dab568ecd3 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9640.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2022 02:39:08.4585 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: d1+Fhtun3gHrFwBeKQ89fyIOPrWx1Yr3acLME9W14BApLdhw6WqVOq4bIcXkLHz9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7708 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221023_193914_705205_22A5B1A5 X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Lucas Stach --- 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,