From patchwork Mon Aug 14 10:41:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13352694 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6F44EB64DD for ; Mon, 14 Aug 2023 10:38:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233499AbjHNKh2 (ORCPT ); Mon, 14 Aug 2023 06:37:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233543AbjHNKg5 (ORCPT ); Mon, 14 Aug 2023 06:36:57 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2068.outbound.protection.outlook.com [40.107.21.68]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5884A10C; Mon, 14 Aug 2023 03:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VEic6aB/u1MOTzkjmRru108wDU026ATbTnv59IjvNN/Rpoyg1o7Lfd0EDqJeKjmU8CtX+Ap4Sd5LMNxOSYK1b6ZFej0ZRIikREWceelWURt1tjD+ALzEnaBntiibTYmRoQ8xmIa9YU/491+TBD0MwkeYnByF4AQ70Mlvn+IcbIYEoZH5W5C/8B99OvE3kNencn2qnfT6zZ1UwfVPQ1Q+tCy8E41uef14OEsS1pavyPzpl4hBAI3cMKiTPXYzfrOfBENhMh4JAu3Yyhb3WQXhUPUd58nL+M1vrIj8S1Tzoqtf5SPPHIWHKHuudHp9XLXMBh4nGOowAb45lzWCtdmWTg== 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=8j2x63NWMmoM433598UtKLRt7rCiJlI0Efc0kouIMD4=; b=ml9ezRZ6yEuk0T9tkkCMW7iMDBKyEYA0iYoyp5ldIqcMCC6m3L7De1veUlLe4qn2ZwBDZjU8buxUrROTsLowRNZckTCL0PRcqiF1MySWxbPywCxKFM7DxO2hs0ZjAkYxY3ZfZl4PgrNBF1rKsdGEqCfBfze32AhyzaE2blksRBTUgF5l18fXj2wBjziqAc20zsOtDPASAZxaD57Yvaa5D9giRmskVTtecMJ7AEC+oGC7wxwLBdHOPtDu3cvmJhrzMaQYilT5ZQh5HQWZUeOVVkFu5PHnk+R0tJAGp18wjO8yXF6tuuUQBW3QgKvBD9mIr1YNHtE58+zyvDGGg8z9xQ== 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=8j2x63NWMmoM433598UtKLRt7rCiJlI0Efc0kouIMD4=; b=TYMfGXwrbXxPw3/p79gYzfEwrTMSNXEuCkyghkvztxdpiQF4PqlfEVl7qL5ItZutbHxt5ywxmaW1yzKZTRM7/9s+PKGTM98N2Xj0LxhdVeH/P0di+KJMAMkjKkODL6Xc1nfyyfIS1U0+nAhtY8Gm84fqyH4f1XDuob5243FIlb8= 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 VE1PR04MB7216.eurprd04.prod.outlook.com (2603:10a6:800:1b0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.24; Mon, 14 Aug 2023 10:36:50 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::2b3:d8de:95c8:b28b]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::2b3:d8de:95c8:b28b%3]) with mapi id 15.20.6678.022; Mon, 14 Aug 2023 10:36:50 +0000 From: "Peng Fan (OSS)" To: ulf.hansson@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Peng Fan Subject: [PATCH V4 0/8] genpd: imx: relocate scu-pd and misc update Date: Mon, 14 Aug 2023 18:41:19 +0800 Message-Id: <20230814104127.1929-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SG2PR02CA0011.apcprd02.prod.outlook.com (2603:1096:3:17::23) 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_|VE1PR04MB7216:EE_ X-MS-Office365-Filtering-Correlation-Id: a562d470-42b6-4d20-8c06-08db9cb25e14 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pEjVk0CNcr6hwLBuMSO5vWhMCVeBnrJ/TvOv2pqvwvTzYG7dF8/BFtLEBF/YHeuugqG2B7fX5+tjVQEVfbc7MlrJumhw7RN9/nVUKhgMgvIgOdJzD+GVTb74iYJqvqcf+IaLViMbdnGCN+V9TllkSBfbU7iURLsNqXVVTRxqqdBW8y/O0vsXN7X7xyi4m0tO+r4bQ8fN7YPHj3eBtklmVuBZs5ApPyxFhS2nALsXhOm/zgnSIWTKhkg7f3IcfSuOLB3IhHkud526U74AmOX0gWFbuQTFWeK8BeFiXEGxbX61VkA1SFFT5d4oVpBDsIy0gOQ/JBfUkT7aINK8+kZjIfT7s5Ullch0LCQia06DcwI5y9W4MqpskcQLm/RXux1wCdwyeLoZwjleEtujosC51lt05yJWrZ7ZeYJ435VjcNznWreasxfdYeYc7D59pCtc+HfptUO8y2vKSWPsBbrK9s+kzDe8jQfFAYrBLXhSldbAD0v3GKSxwGNNDict1g3msoY0a4LKRVIKV3aMGOnK1VI+RpsVkdpr6oPDoWIzuS5fxQ6+hWgPDg1SHWrIv82N4Di5XMcQkGRKg2Y1QdLt6l80pE0FoUqkOz7lC0ghf007oBCmBbkb/XrO0WzG8Z7V 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)(376002)(396003)(346002)(136003)(39860400002)(366004)(1800799006)(186006)(451199021)(478600001)(6486002)(6666004)(6506007)(26005)(1076003)(52116002)(6512007)(2616005)(66946007)(15650500001)(66556008)(66476007)(8676002)(316002)(4326008)(8936002)(41300700001)(5660300002)(38100700002)(38350700002)(86362001)(83380400001)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nYXekkgBzqIYM7SrKODVUZ2rM+8ZsJA9BqkGQZcAKCFQ//xd0SwMgzCFMGj4/Wzm/0b1nx+DcsqSEd/JBx19L4cwz11KsjqTxHdbYeYj9B4urOms1dkzfC5CC+3FuODNAh7KeDkISg1eKlBH9zOZ2ymlyDbWExrxLIdFk4lZui7i7BHfwD1TABsccflA3S71VFeCLHW0oHW3tM2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skaj5T+JPQNPz7n5qefJy1wW9sW08kTmXuHy3cstKpQ4vkC4zCCMknP3bkJwi/5hFSRdSGxS/CyPv9GOGnuivZbf6l54ll497TCh/dGEKuotAv+FA6cZX4i+yffVgMGYfSrbw3+s937WAA5Sl77UCGZn4CaXvggA3jWdHSs7zSK3pibxdqPL1v8H/AqiIv75mlvt7JDOt/RehyL5wHv44WfWFWjFbwoWHOTb4tYV1cqB2SxlvCsZJs6iXhihHcZ95t/IcZ4kmQ5Lj+2AdsZW2ewOciYrEEgxH6jx1JsbTNvlQ0zBiNhyk4O4elVXQAnN9A2pAS9aScJ5VE4jO X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a562d470-42b6-4d20-8c06-08db9cb25e14 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Aug 2023 10:36:50.2415 (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: n3r8tk8+rcM7a+5WEfjrywBAJKOganVA9wUvaAVPe6YCY6MVsqY72VJq0OS65KL8W81HIZuW2evwAkmCfLsVkQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7216 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan V4: Update commit message in patch 4 V3: return -EBUSY instead of return 0 in patch 4 V2: Move drivers/firmware/imx/scu-pd.c to drivers/genpd/imx This patchset is to upstream NXP downstream scu-pd driver patches. patch is to relocate scu-pd to genpd patch 2,3 is to support more PDs patch 4 is to not power off console when no console suspend patch 5 is to suppress bind patch 6 is to make genpd align with HW state patch 7 is to support LP mode in runtime suspend, OFF mode in system suspend. patch 8 is to change init level to avoid uneccessary defer probe V1: This patchset is to upstream NXP downstream scu-pd driver patches. patch 1,2 is to support more PDs patch 3 is to not power off console when no console suspend patch 4 is to suppress bind patch 5 is to make genpd align with HW state patch 6 is to support LP mode in runtime suspend, OFF mode in system suspend. patch 7 is to change init level to avoid uneccessary defer probe Dong Aisheng (1): genpd: imx: scu-pd: change init level to subsys_initcall Peng Fan (7): genpd: imx: relocate scu-pd under genpd genpd: imx: scu-pd: enlarge PD range genpd: imx: scu-pd: add more PDs genpd: imx: scu-pd: do not power off console if no_console_suspend genpd: imx: scu-pd: Suppress bind attrs genpd: imx: scu-pd: initialize is_off according to HW state genpd: imx: scu-pd: add multi states support drivers/firmware/imx/Makefile | 1 - drivers/genpd/imx/Makefile | 1 + drivers/{firmware => genpd}/imx/scu-pd.c | 193 +++++++++++++++++++++-- 3 files changed, 183 insertions(+), 12 deletions(-) rename drivers/{firmware => genpd}/imx/scu-pd.c (70%)