Message ID | 20210506010440.7016-2-peng.fan@oss.nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=qdH4=KB=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06BEFC433ED for <linux-arm-kernel@archiver.kernel.org>; Thu, 6 May 2021 00:35:22 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 735EA61185 for <linux-arm-kernel@archiver.kernel.org>; Thu, 6 May 2021 00:35:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 735EA61185 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=Bs2ZY70HI0tRXLHd3k5v93Fj7viOZ7quu6nLb9R412g=; b=oOMiCYu+uqFb8uVLsexO8GQmT m4iEzLS4iPbEHf9CzldojFr19VEaRb8jdO41HotZ3dgaahpFJuYV5CUu1a2xBD4B+2fScEbZWLYWl neDWhtxQ+YSs0eDH2eMp4wmsZ1c7P5ZpSrhs8Pj9h8H4h86U7fBRJ9BPyl7+tM/e+5hT+LFc6ow7D ZkR+RlZYYpVH1qNWADAReKJvYnfPfc/zC9nfgeeDghnSbiVD7wy+8ixlQnABG4qgWDW8xcIZh9OSG Yfj+j77yjtInn8IqYjefMYzK2MMcgI+eXETwSh1i/mnwCTvQwBl6Axa0u8hd7VEFv53HUG9aI8qQA NZyQUSyhw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leRwi-002hZR-Hq; Thu, 06 May 2021 00:32:52 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leRwU-002hYN-5B for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 00:32:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=2sU24wCij+bCWA90Y3hrt6CYeamERlm28szKtI5l3qg=; b=fiYpMF1hv4SSpnllrnilZxkbyI hDcdNr7E+nd8zPO9I/l/lHTQMc/S8YlmwajrG5lhJeUeYfPZRL36GvyYNa8HPl5oI8bAPSFYefiCW QjKPROk8q3p9I0Mmrn+6vlVnmidZRCvvs4gU5wwqi8mmVKQf0iOi2+zsciPAE8dw9uwKDZJEHQrpq QkdgoTXHgssMRFeTMckjKkAN3dDGi35IzseFXuww+NyYZNSNhiyog2yd/qHLW6oz2SzA5WgnYc2n9 h4p0ZbfUGnE3GgRkeO2a93NB+l/nzDj857QBHuZhjXb5roiCujJnN5SLVa6CXtt52rK3MoGQ1uEk/ CYRzSflw==; Received: from mail-eopbgr20047.outbound.protection.outlook.com ([40.107.2.47] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leRwR-005RBN-Mw for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 00:32:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c5o4+i3zxUvAMQqR5jaCCW14d5oHdu4ZZ/yfQEe7nXf5jsnqNKylWRV5Xsxl9fS3JlWcRAvgwjAqJdYGneaiGX9XyFv+PZd+AJ3R/Tw4ZXf8gBnBRyOuu0bjWt14iBFzt/0T6GcYZwmfFcoE4Yc659skEEBGTYNe4xlfb1vnPRrbDor6J6lNwZPZn4E1UHGvjINn4dOMTxs0FZIkFQwvCsEA+exGKgQUJ1LAdyLmgTMc92faVn2LbcEbTGdVAg/+dy3kz9QnRtiBetuw8Wr5zgpjo3QC3JcrPnlNIBSkQR9nQ+EjhXPm850j6liuC46bhlAGD1S22NTh22C6qqZG7A== 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-SenderADCheck; bh=2sU24wCij+bCWA90Y3hrt6CYeamERlm28szKtI5l3qg=; b=lfnSE19wmbF+uwUhtBnNaFQFdOejsoR3hHCzjZ2Ofgv3qkJAYsaU2ixeo8J2jd51+B7Vu53+d4M03+t0b2RvDjXi6t30hAynEYU6UGKbrNpnzZbF2qndUdHBBRui7jaEzKW8Zou6D1jYc+boVmhpEglAXytTRaXW0iwmm4pEh9Q5znvHJYKWe7RRygjd1U26yr3h9S2/nrJh4FV/bGUdsjMkBJPRmWIVULD61uXG/PPGGO+ZqjUGAMYMqnpQp3deVyaiC6ZauRLcguHwYlTm3NidwgsOGPdrxSa35eS06f+PGHJD2n6TliQ58epW/CILpGOuPzxjkQKQcp2XO/KdhQ== 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=2sU24wCij+bCWA90Y3hrt6CYeamERlm28szKtI5l3qg=; b=hGXtKpjXiW8jTZ7Twz+7UWLHdFqsfqarz9Q/OxSjN7FQzk86varIMqBv+CUs5zOP2N+80BeF7kEq6hHVinvKda3pm10rkD5pcrGBQIuriWUH9YOdfAcPmHhLNnJ1eH6Q+l/bVJHGDPrSb00j5+5FFTxRLVaLh4oslLMVD2Vlkv0= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB8PR04MB6714.eurprd04.prod.outlook.com (2603:10a6:10:10e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25; Thu, 6 May 2021 00:32:32 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4065.039; Thu, 6 May 2021 00:32:32 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, p.zabel@pengutronix.de, l.stach@pengutronix.de, krzk@kernel.org, agx@sigxcpu.org, marex@denx.de, andrew.smirnov@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ping.bai@nxp.com, frieder.schrempf@kontron.de, aford173@gmail.com, abel.vesa@nxp.com, Peng Fan <peng.fan@nxp.com> Subject: [PATCH V2 01/13] soc: imx: gpcv2: move to more ideomatic error handling in probe Date: Thu, 6 May 2021 09:04:28 +0800 Message-Id: <20210506010440.7016-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210506010440.7016-1-peng.fan@oss.nxp.com> References: <20210506010440.7016-1-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SGAP274CA0010.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::22) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SGAP274CA0010.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.24 via Frontend Transport; Thu, 6 May 2021 00:32:26 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fa1b76e4-455f-4456-64da-08d910266fac X-MS-TrafficTypeDiagnostic: DB8PR04MB6714: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DB8PR04MB6714412EE2822A18938EE691C9589@DB8PR04MB6714.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qEGDS01sxetlKHvgOK9VKO0Vex89pkefOBt63IflfFwwYUrm4myvfmqqVyJIbdh7I3hvf6gonOmqPZ3ZJmk/Y00eo8FNWURSZ8TbnkLnqas1yDNNQNZxs6x0WkvmQ+P6H26erK4P1vo8QZ4GV2wfCEgy2XX0hAN2I6CWc/+a1lp2PzQq7zkq8JQ3Q7FPQl71EikGYEPKC2rF5W7xnRGwzNbPqB2zQX0Aty6/sm8nfqma+/GsdobI+JvlaugCJ4WPd05I0npn3lygIg2bLOZCeviCHr+Q+I9PZ0PBr1FpH3SftuO+ipsTyy33eg2HnH9aqEIJNZMUPCgmdDRZ3Lg6St34beL0g+yjslqXz/aeOT0Q8tUm6mCA0jkoPRqH3Et/wWUUWX57gr9eZV4PLuOgbe/08ysv2gR6I4earSY2uPh7/CstR+D0I8mwlqcAzQhT/TPMKFYJBl2m0VXOYM9z/YZeSFx5DSWL2GHDerv5ycYErwpgmhpkUX5dt5lVRSJrXiAcNvdoLF3b+qm+wgTHKoAZjFvxKf/hYkd2+QABFyyx1ROxSksh/WR+qrz/8Ryd88elon6z+3dbB7Xo5/D+sPmwYl6PzO8SdE9JsajOH0AfOoftXpzQGh5o2FAuwmGom/jSR+zH02CGu/kfETCTAhfTEUICjJMGeKRgQoICBek= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(376002)(346002)(39860400002)(366004)(52116002)(86362001)(2616005)(16526019)(83380400001)(956004)(6506007)(8936002)(5660300002)(7416002)(6512007)(6486002)(316002)(186003)(4326008)(2906002)(478600001)(26005)(1076003)(38350700002)(38100700002)(8676002)(66946007)(66476007)(66556008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: X+sxRkR3/kmdhxg61nkyUf5OhprK8RXBMfWt11uZ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PbI5Hh66Sn9bLB/ZfHJqGSsrBp2WTJl3Y/FVxSjSa7F9OpfDPAE1dUE+riYk8YcgeA5P+m1bXzV2BLoFdKyY69UaYoPXN+/lNRCy3yA9XJPCrLVOavSSUo+0TDPSj5h0DRj5vnPL7n3HhA1ONAh0JUROTEYWMttu9nV80GVQAzdBe2YoiGZRKmt4+YMmWZJ0fKycLBX7rtbpohXOn9LyKqal7sp5JmPHBz6IIbm X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa1b76e4-455f-4456-64da-08d910266fac X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2021 00:32:32.1724 (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: q9wO72W6NQMrYeB9RMCBABeUE0WcRIkvoFOH9HqcPMp6c5fUCkGX81qIUOiqjuNTScmzXlkILXqbK4BB9dWScA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6714 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210505_173235_772632_AE9C5413 X-CRM114-Status: GOOD ( 10.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
soc: imx: gpcv2: support i.MX8MM
|
expand
|
diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c index db7e7fc321b1..512e6f4acafd 100644 --- a/drivers/soc/imx/gpcv2.c +++ b/drivers/soc/imx/gpcv2.c @@ -502,18 +502,23 @@ static int imx_pgc_domain_probe(struct platform_device *pdev) ret = pm_genpd_init(&domain->genpd, NULL, true); if (ret) { dev_err(domain->dev, "Failed to init power domain\n"); - imx_pgc_put_clocks(domain); - return ret; + goto out_put_clocks; } ret = of_genpd_add_provider_simple(domain->dev->of_node, &domain->genpd); if (ret) { dev_err(domain->dev, "Failed to add genpd provider\n"); - pm_genpd_remove(&domain->genpd); - imx_pgc_put_clocks(domain); + goto out_genpd_remove; } + return 0; + +out_genpd_remove: + pm_genpd_remove(&domain->genpd); +out_put_clocks: + imx_pgc_put_clocks(domain); + return ret; }