Message ID | 20230714090936.937344-4-peng.fan@oss.nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2389085vqm; Fri, 14 Jul 2023 02:58:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlGNMF2+WP1dnXaaTnFVpRjD303wkn9KiIUK20eyA+BiyfDufPpdxAiM76HIWVaIZ5imhbho X-Received: by 2002:a50:fc02:0:b0:51d:f813:fd28 with SMTP id i2-20020a50fc02000000b0051df813fd28mr4179105edr.35.1689328700076; Fri, 14 Jul 2023 02:58:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689328700; cv=pass; d=google.com; s=arc-20160816; b=mb78uq+EiI+ItY264PXlsPUqyvy434cZJsEdP2jqoBfsJQ/OZi+AHGHWH3v0gj8Gr2 eep5VRO6XI8/bttzCsRXQDPWOGZdbrUNIFQ6m7WOqnuhi8cmOV1T+oB25W6qTvsM1PW+ lb2AemVb1CIkARpgjVCikZ/KJBQSG0H26uwyQnfndotaCgi17vPC6q/evkuypWzgHE1u fKxJwFP8Z/jV3tn4PuCEO02GcLfcVOlGwwLL/H+BZIseagp3fuTDV3zY//su/eoKEgFo KB+7ObofeTr0rgwhnsO8vIhjmvYeappmXfrYVvjGtj5eiiBaSMbe4qewNhtA4F3jljcN pOFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bpkVSwFGmJZnxYHjD52Al+u/lCsNMdENGyWfSZpIPiI=; fh=/3kiG3j1vDHCma2P21rL4Ki/FPr8/EdpHpPPQ66iOXk=; b=WOSUY71FV2KctpvVZ5Pa/MfMIc14vfu3KBcb8TwzcmKSLCp0EWEb2/zDC8AAIbNNo1 g+Yuj+4jlSV8DykVm736PxdJzr3udUAqVrgsMkcWMW4qCfKctouhiBZBomlY8SmY0Gud mAmZzJsMV7fXEWaSWCQ9uBznd/KRyFiaJiVVcaf/hwOy41xOLY6vf3FRT4ENPeHum2mO Ffuv/AeuwRkVCOU9tXBzo0vx/GB5VUIKU4J+r77JzZI9K5DIy6yaZ8mKBd4GSjZqTjUt p47FjVHb9jqaiy/RhXfhyOaA7UqyO/cM8rO2d5cY1s+J7lWc84SoldhobWgDTU1h2Wd4 ZXfw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=FODOx7Nb; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n17-20020aa7c451000000b0051df73ddeffsi8852356edr.358.2023.07.14.02.57.55; Fri, 14 Jul 2023 02:58:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=FODOx7Nb; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235215AbjGNJFL (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Fri, 14 Jul 2023 05:05:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235170AbjGNJFH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Jul 2023 05:05:07 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2044.outbound.protection.outlook.com [40.107.7.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24E1E2738 for <linux-kernel@vger.kernel.org>; Fri, 14 Jul 2023 02:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S0IGbWYseQs4eYaurP8GuIUya02OExdwJxmyj8UIGiOR48gDZ02jqmopLSRjDXRbnC+MM+5ZJoHigOvjjVQoLKw/KskVt3yjxkQRAlZUPHxLDoZGJ8Z3g4DUJFL8Fl5xOqPopDA/EFepis8uBILqLnFV+MF7dCubSqL4Pq9mvAasmPs9XUjqPnEWCgs+vgt3TWgEMrDroPJWU4Ys/hnBwPOhfRgWhQVhGSLZcv/fVqvszKJeic+sZbLEnjFbWCH435R1U2/JOxX/TEgwjmprPhV9wkd43afg3UMSzM6eacp3+N8DU3MpsIKMlhlbyePqqAw7R6YolS7jSzB8KsBn/Q== 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=bpkVSwFGmJZnxYHjD52Al+u/lCsNMdENGyWfSZpIPiI=; b=WJ8djbN22scG5tF/ZEGiJI0PMBjNk27DfnZ4moKPrYhCQYURjIQwZijeLnniqLuogpVq5BUdHb0jPtfz7zSKBPD9H73EodKUT++1KSWozQpMh7R8o0CJHha+2xsteNfsE2r7WyHaF09/mZJ30SJN0UJs618Qqsbv6Gmv76oDNudwJZEb2wu3Uq+XQAmCl4Ik7LdpUd3IlCsOYFfWv7pk0JfaDPvBQzkUvn71VFOgdtlBAlePsLLYleGznuQefNCc4244aSf6Qlfxyt0BgXmfhSavKj8MdaJNKheW1vavLzU27h4kUEN8tiMiEMe+wSZ75nNXqdjTKiCi/Pv+dkP+zg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bpkVSwFGmJZnxYHjD52Al+u/lCsNMdENGyWfSZpIPiI=; b=FODOx7Nb9/KXY9K1HZ6m3h402eNar6ET7JvAtaD9FuwCWiFekWodkJiU1afrDglg9pIaDnrSBr65WzM9fHlmwD/ckt2qIoe2SXbXEpKmWA92iGFr0+aMuHP3IdZ8Jlt0JC0be2RWmK5k1gcwXTzOUGiGuvAJHpNqMQdGvpZQE/Y= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AS8PR04MB7736.eurprd04.prod.outlook.com (2603:10a6:20b:2af::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.27; Fri, 14 Jul 2023 09:05:02 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5c40:ed07:b875:18c0]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5c40:ed07:b875:18c0%3]) with mapi id 15.20.6588.027; Fri, 14 Jul 2023 09:05:02 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Frank.Li@nxp.com, aisheng.dong@nxp.com, marcel.ziswiler@toradex.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan <peng.fan@nxp.com> Subject: [PATCH 3/7] firmware: imx: scu-pd: do not power off console if no_console_suspend Date: Fri, 14 Jul 2023 17:09:32 +0800 Message-Id: <20230714090936.937344-4-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230714090936.937344-1-peng.fan@oss.nxp.com> References: <20230714090936.937344-1-peng.fan@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0130.apcprd02.prod.outlook.com (2603:1096:4:188::8) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AS8PR04MB7736:EE_ X-MS-Office365-Filtering-Correlation-Id: 554baf13-2acb-4864-b30a-08db8449686a X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HcAEy008NqusaUCWfp6x6XjCC+v8gzBJBmOmzHArghXFORH8evdGRgGEyBWQhHwsqM7FaUoY9nyBGkWHzZHa1z85SsAILwwhVrhbRPkjIK75aOdecicDtyPMGnLCBaDeD52iUXLAKKA0E72C+pEjCbh3BE01fqQozyGQpyiYPjuuYw9zalQ81qRjKQIp8YsbIHqoblSLOU3cYw3GuPH7602VguuQZq7B5d+u8bIexrtx/LbZH4HwIMzadlnJ42Q0DtiRYscFxokUGpDYszkQHluJj4buPNIL9bBh3qnSBArD6qISiKoTyYQwaJgQK4tIXiu+XVRe41szf76u0FwHFx/S0ijR+y9g9lh44ba50J01zi+47Ea7gZgz1SkDXy9A0k8clXuBYD0DqXNEl6XFRlbW+R8xKOZ7VMQoP1+nZncc89voWinCfg18MCMi3GORFbajLLMn2sDD7QJPI+/DG42HH+y/znj5jbhDPLemiQkt4LoQi9lmBKp/GvFVl0B2s23b4keBwYNX6eGKjYSlidAW7hOhcr90PAhJcD3h3yQMfGMDWoXM/NXvmmNum2myn8zAraadS4HMHtmad4RmUIVdCzBexQRtHxWphyDbL4RcjhMOrdLa7Puyl+v+MKuS X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(376002)(346002)(366004)(396003)(136003)(451199021)(38100700002)(38350700002)(86362001)(8936002)(6506007)(5660300002)(6666004)(1076003)(8676002)(41300700001)(26005)(186003)(2616005)(2906002)(83380400001)(6512007)(66556008)(52116002)(316002)(4326008)(478600001)(66946007)(66476007)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 036UUOIwBOi86+7fnLCnM1xd7un6XipvnTrXxfZeTX0pGhxlEBqwYvAB1APDV3aF30pSy4vaEtfyyHH5G7ENnHRhZKzUo3JZZb4o+H6QsLB3Bqvvdu3x0b2RnaqccMkHcgiuQXec5YIjfTreFLmB/BmqqRp8kiGh3pHUmyTflTxJMCnx9BP2KGhBiZnPcx9oIPJWrXLNUTIanfESM7sAb+f4ErS2Fw0e1FQvkiJeY9beArETHK0/W3IMfVHqeXLsJSK3v9Kk3taMivmkDHKax6XhB1uRg+Wkvy0Y4jtvhwvZYGPKwpmxaWo3+HW7xizZMvpkjrJ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wq/tS3g23uCRplpP39OupxCXVyTPrVFun1eRzkxC+FTOUWSUWqFQjRlv5RDRJHfaJ7WtWHbCYIBBVV4r9c8Ba1vPamR8MISVqk3t49bL05dHvQaKJn9nlBKx8+8k7JU1V6XcXyscmbehqx1VwNu8RfmZIQuT0xVifodAisQ0zD33M36Ch+K5lFKcEWl3jO/LZMIzXyOGxAP X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 554baf13-2acb-4864-b30a-08db8449686a X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2023 09:05:02.5449 (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: KUh+e/lwdVMW0h+bCNloROdq0TBjQqbXLzCU2i2wP8JdIirh05r/uw9HwUNMetl9DZ9KU1A5BaxgEi7s9q0OeA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7736 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771389531222695512 X-GMAIL-MSGID: 1771389531222695512 |
Series |
firmware: imx: scu-pd: misc update
|
|
Commit Message
Peng Fan (OSS)
July 14, 2023, 9:09 a.m. UTC
From: Dong Aisheng <aisheng.dong@nxp.com> Do not power off console if no_console_suspend Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> --- drivers/firmware/imx/scu-pd.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/drivers/firmware/imx/scu-pd.c b/drivers/firmware/imx/scu-pd.c index 08583a10ac62..6770be51d234 100644 --- a/drivers/firmware/imx/scu-pd.c +++ b/drivers/firmware/imx/scu-pd.c @@ -52,6 +52,7 @@ */ #include <dt-bindings/firmware/imx/rsrc.h> +#include <linux/console.h> #include <linux/firmware/imx/sci.h> #include <linux/firmware/imx/svc/rm.h> #include <linux/io.h> @@ -324,6 +325,10 @@ static int imx_sc_pd_power(struct generic_pm_domain *domain, bool power_on) msg.resource = pd->rsrc; msg.mode = power_on ? IMX_SC_PM_PW_MODE_ON : IMX_SC_PM_PW_MODE_LP; + /* keep uart console power on for no_console_suspend */ + if (imx_con_rsrc == pd->rsrc && !console_suspend_enabled && !power_on) + return 0; + ret = imx_scu_call_rpc(pm_ipc_handle, &msg, true); if (ret) dev_err(&domain->dev, "failed to power %s resource %d ret %d\n",