From patchwork Mon Jul 31 06:47:38 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: 13333676 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 C2C30C001DE for ; Mon, 31 Jul 2023 06:43:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229883AbjGaGnH (ORCPT ); Mon, 31 Jul 2023 02:43:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjGaGnG (ORCPT ); Mon, 31 Jul 2023 02:43:06 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2085.outbound.protection.outlook.com [40.107.104.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CBEFC7; Sun, 30 Jul 2023 23:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pk+wXiFVu89FPXpJ/GC1Ham9ME+NQjwqb/2dG7+vCoqBQyJK2iE50Z1wsLPn6ENRpBpqAvjLJeMDf0B94wN8tQNouu7ZQfQqC99PJNtltgfmriF02bQtpgt4eQ2VoI2lQJtoLFIruCmJkRDiEDC54ZqkO2oA+fMO6dGmj2Kncwyle9JUKRI84TEVisSuuBARAphNcNz0DxT5g5l6CDVOqTuwtW/f4+t9blSvraCHSY9yZkY3eVg46VqKauYRUTiijO4gGo5JmJmmj6xFYnimVeV/Uat5QOYfQlGE1UIgTMmE7uD2Li7AB1VD2H/HXLjJbv9I8zMWVwSqf2/rkjpjWQ== 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=8qCAT+bk/uo+L87OpkKCwpf0m8+uheASAZ1Gm9UnUtk=; b=hFpXREI5vuQieGoCtJSRwxo3WyPHxD8opatkcAOSq8aIp7yuo2WGKzq+QUw6SH43ueZLZI8TpDOwWZ9re7/lGJgesQu93vBi1E5G0b7TJdszFn1HoTs+2eOa5joDdIjXazWgmfXpU4kTn96m7VAMI7iiJ4dn/b68EncZkrqwUOV6nNF7s9vBNPl+atM4/WZKXeZEmeVOEC6pc6CO1BoRJW3Dbr/fSn6Fmy4SCFDS13Orps1ZVTCURgARDY53MRgHKorMQheI9EJWrg26TDPWNnPAWp410cWsBTVz2yUzHEa4q+Lqe6cMSDpU6TebIWeU6mkoWT6c6h3LdMgoImi3gA== 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=8qCAT+bk/uo+L87OpkKCwpf0m8+uheASAZ1Gm9UnUtk=; b=PynLS/Q5a5Zl/eb1r1iLRlzrlr88qy6gYakOeqKudyz6l9DqPNGj9CUrole5/ugBfbKIYoBqtnCM4dRISleWQhMPW6Su1CgtOhUVFB66dfJkdNjfADVS0GgDtBOiKpJ3cYhU9lvn5l0csNFXlG8bpdi2EOhSrvorwUMQ5BkKpWM= 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 AM0PR04MB6834.eurprd04.prod.outlook.com (2603:10a6:208:17e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.43; Mon, 31 Jul 2023 06:43:02 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5d6a:ec53:f2a8:5b97]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5d6a:ec53:f2a8:5b97%6]) with mapi id 15.20.6631.042; Mon, 31 Jul 2023 06:43:02 +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 V3 0/8] genpd: imx: relocate scu-pd and misc update Date: Mon, 31 Jul 2023 14:47:38 +0800 Message-Id: <20230731064746.2717684-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SG2PR01CA0133.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::13) 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_|AM0PR04MB6834:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e648da4-ad98-4b34-6b9d-08db91916305 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: YaPqBwhVeinD5krplP68qFVFGy1EEmH4UfpuaJaboeERY4MDHnGtgP+PSm/m7MiHNIBWNB/FIpQbwcvl+drDkjzwsiV4fT8r8WYwhb2GpzuPBNa8SkrNDq6SpHLkBmOfHXNV2h3lrco7fGMCiUzZs2PrdeMw9zsRjYcD6mRRPCDctuAanTrk0qNpTcTvVOHYesNh7A7ukI5BePu84y+WiP7WZGVPR1fammd/3knJsZtIqpiVSfqFdEp1K1pCH++t/HwBDyAgCc2r6ypa98xq1v2XZMrvGdr2fdY7eJiGv5/x61/mV0FfOKkqNC/ZPfdjupsJIjWw/6flj36pU+PIhQQVL1WRXRBJlzOdVr4ERWiABcd1K6OdR/db50MrRScVKsk2uO/XrpJICEvPceRPpj07fp9FAgBMLj+tCtb3BM6Z7tA+xjfNaxofUTPpjqYNYgl0VYQjwSenipC4OlAGIUPN6YthIVv3ppxzCmmFaLfUe8y3hwS8Q++d5KtxCjXJKCmJiWWiHiNB83GYbTIYBNjuCTKsP6a4LmYfHjz68/EX4xrhvLUSYGiWpMcxlD1YYcloAyqKFcJPff1TAk/okvZSz+3yr/GvhJtgFy0nwCvj1n5g8BugJhii/mRNFaM2 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)(396003)(376002)(136003)(39860400002)(346002)(366004)(451199021)(6512007)(52116002)(6666004)(6486002)(186003)(83380400001)(2616005)(86362001)(38350700002)(38100700002)(26005)(6506007)(1076003)(5660300002)(15650500001)(41300700001)(8936002)(8676002)(66946007)(66556008)(66476007)(2906002)(316002)(478600001)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oPh+hMZhfCi/01T7m9SATkQx5vl+O7X2QzpCHEStBBB2bjFRfNMTYB8gZ86cf60bgd/xWzm1BJqg/MIIqRat4HhXl4DO7i0qOnca/pq0KHcHOczWXhfVgkjWq7YfdwLUQiWk79vXy2+Lh7JSU2yCWVG4LXX1uV0Qs8LOa+qo1Xr/5UsEO81r5IkmleCd4oC08GYnoRi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C1kASCTTRIQzMaStoqCi9M38+Glpb944bkPfOEtDo9bGrsyYJsnMTzTYHMhkU/G3cacG5SspZYVvsD+YJimNuk11S5VIA3t4U9MuOgajW1uzX/QV023LXp9ED4G4aEssc2gm5DK+bp2fDMKF0jzhGNqK5chzEuStohAPzpxd0OOH7F99kZ52drsSAfxMmzE19h0BLckzwZYzCkeGPo+i2ZzHYLPBKmeSp4U2KKDdRyH39KOkWlcfPejNoVyn2Vb0C4M8ri1JS07hxDDCoE5Dw8yLUkzQ+am20R1908iHgM3ZE8jnSnMLU0G X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e648da4-ad98-4b34-6b9d-08db91916305 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2023 06:43:02.2799 (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: BlawkfH8thtrhLSvmj+7MTDG1RYFI9Wtb3fI8E0qSr3Lo22pZ3zZ+1fF7CCT/no1SDR1BqX8hW3n2WXYqBKq1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6834 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan 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%)