Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2910995rdb; Tue, 12 Sep 2023 16:44:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQE8Wk+2HMxwyavHjlC6sVB8ZG0hTkXI28pyCpRhid9j5i4DrCT5CCiLXecFqCe7QTjoSd X-Received: by 2002:a05:6a20:8e19:b0:111:a0e5:d2b7 with SMTP id y25-20020a056a208e1900b00111a0e5d2b7mr721710pzj.4.1694562269246; Tue, 12 Sep 2023 16:44:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694562269; cv=pass; d=google.com; s=arc-20160816; b=u/6wUhIu6RRPi4JqfrOkHuSN6fnvVPddd28KLX9virBA7+BqoWf4Wc03tUrmTUKXFi s1HAJD5u7mA37H9ZUcWRG4UwvmJx9IXaa35vvtZPFu5MDw92xEuXTaSwJULie+EaWcrK 58CULsC9d37YoqTkW63g4/tWQGKwCX9dkNozz3tBC2VObEH/1d3mwpsT4OBC5+9Rudcc 7JuRybzYovESAqK6t387LCPH5rtM7Us/R1dn5TnEClNY72kuq6vuk3Bn6/PBFOcd6hFn r1b3y6t3HmNgR87FPhPvIRSekA3jP3p4rBovGqbtKa3drInQdj9U5+HZS9Kguw/NiZeM N4mQ== 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 :in-reply-to:from:references:cc:to:subject:user-agent:date :message-id:dkim-signature; bh=q8/7TbSDxd8+YZDnc6cKxAqjNxGRCAWQoKRxG/Ixvo8=; fh=eDAenR5NpgllhEoElF/inaQTtw3G0QGhpt44M3n7iUk=; b=SmgTYHOe95KA3mgD2G5jShmoM/0vcVZ3sgcuPd30G748kn2rWaek8sw3lX1e0fp1Tw HIve7fFxq7cwADqo+QMBArjafoZnJTFW7tIFFzqT0F1i4DxvIbx7VQJRWXXNXkZ8URaJ xyhXl4pu+XdOxWxsf0s+nnMRn/ukZBWPhj6VYQlEV59X/NjKTiILfdQLouaSGE59b5bj K6vjavAA5kX9QwBfurnBF6KNDtikp6XyxJU4aDIyPvTpZiMty3basSw5xONaanlE9AqS AhkBFmkRAREEKFcQQWZrS+FGXJGLWABpqfjPTGetIIXZk5kIVdazOq4uSqEVf5zmMyQF S56A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=F+e8JwCC; 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::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id kk4-20020a170903070400b001b8b7460620si8705245plb.181.2023.09.12.16.44.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 16:44:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=F+e8JwCC; 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::3:7 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A92AE801D48B; Mon, 11 Sep 2023 23:32:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229984AbjILGcy (ORCPT + 99 others); Tue, 12 Sep 2023 02:32:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229956AbjILGcw (ORCPT ); Tue, 12 Sep 2023 02:32:52 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2085.outbound.protection.outlook.com [40.107.21.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65A6CAF; Mon, 11 Sep 2023 23:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dtYGKtx34gS04wU0ffWX3ZFbTce0cEvHGck/Ces7BDUKE9XHU3cCvEPikBWKzBY7R4XgbJ0WOAfyg/BauhpXTWqj/hL9yxAhE5IVRyP9xupfwBHgQW5Nx8qnSAQfbMu5ct5i0ruUoRfIjYZcTtPbvEuvh6mm/qrMNM9khi1nrddem6Zr60gM//Qws3Axv/rI8fNxHydMAIWKTQ5jF4N6orlTkjvaRwGz5/a2OjelErX6ioSJAFVWL2c/c2DD0JvPTC7XR61dsHisHaNzCdPh3BI2eQdHWjXZtFrhM2QfpPs/I7DgnvjReBMiALf5g1VLMLSPrTZx05zVmQOy9dVgMA== 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=q8/7TbSDxd8+YZDnc6cKxAqjNxGRCAWQoKRxG/Ixvo8=; b=hYKmjFb0VpR5bfgl1T6D4VFkhZaJSVePARYVYXnDSR2q5aD440cSQ4uKWAcYL++2ioT6U/yFwYxoP1I3swa082AoikoS4xOvjy6oPYP4WT3z9WPJvCbM9diWDq6+v4B0+5jq/hqJV5fJ09V+kyOcckGGFGQAzw8czWw2WV5NmaAkLa+1MjjV8UiM9bifSUy8+9ceg9S6v0TrNQYoFF2ZwTVYy/IBjAprtMZNfzEC0fidGyvMVc8OV9gW6cSY7QznYGoCBadR1mxrrajIpa6DX2hkVWusyvde+gt9bX8NJV1+Rp7vdvkarfmwJd9qdmChFi1/x56R0IeQ1faSC9N1cg== 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=q8/7TbSDxd8+YZDnc6cKxAqjNxGRCAWQoKRxG/Ixvo8=; b=F+e8JwCC4rlQrpaO9nvdPgrZw+ryMPD3YpYun53IUSzEhsSw3kCmv9T8mlGwyK0aUBzNWoTIUILHBkf+LcwJ+ygFv5+F2aFe4oe99brYpkG4FWkWqQVro6AOdVFeAptda94gY2thPQMLXz8B8nxuqOE6UpVcMovw9fRlhJeVy80= 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 AM9PR04MB8521.eurprd04.prod.outlook.com (2603:10a6:20b:430::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.35; Tue, 12 Sep 2023 06:32:45 +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.6768.029; Tue, 12 Sep 2023 06:32:45 +0000 Message-ID: <2059cb67-241b-e236-9a97-195a327828d6@oss.nxp.com> Date: Tue, 12 Sep 2023 14:32:24 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH 0/5] clk: imx: imx8: Fix some error handling paths To: Christophe JAILLET , abelvesa@kernel.org, peng.fan@nxp.com, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, shengjiu.wang@nxp.com Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: From: Peng Fan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SG2PR02CA0021.apcprd02.prod.outlook.com (2603:1096:3:17::33) 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_|AM9PR04MB8521:EE_ X-MS-Office365-Filtering-Correlation-Id: 43a9b1b4-d08d-4518-da8c-08dbb35a12a5 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: dQ2qRddylfLmazD+uHWqUIrSbIzwKhlFjXjUt7NWz9obb7elGiv9p5OVFldlphsF7MGrttrv/IP8GEOMTTY1mHFJUjVJoLWDyWRVxap1YOzztnIzo9DcKzfJ/SHkSCXAd1HcJLe6hzEu236GzZG+BLGFOLTyS0h/EL8301g/pzC5pvPDLqwvLsLz4CoeHYR97h8F4V18GQjb0HoJUgJO0cJPswv2IPPpDftXRXtcPRHa8O6saWCG6mqABxTsserOCP40YlT37IuLdfZAIbWsHINgUCNP3v53GfoMtBEEBVRodZ0EiukzJylVu/HSyLp5bnnZtQH+isWky/2ZqtgR19S/is7YqB/me+6Duz7rUelQhAf1rW3hvRUGMt2PBPAkgWeR5bXy6WhAoQymFroqKuzAbv9AJYaJYrAjDfWcvFHsW+Jcj7SG6wCQ4rRA0pdRReZabZ/GgdH8l07fCN2WbmeCbgz0QLXhS+3T0ZyJDp8X3SdySoajq0CNntcgXpsZvSs0/mhrTwuHPSmWMJXNhrMZOqFbR9ly0oHsY8aFEeGZGh/hR84tqoggyofGAeiJx8DidxTww90KQkqpUrEXAVxtp6trgs05/+OaPh/mzjWpMmzllV3deLy7cup3mMETlY5D+8K69PoRZPK7OwlhLD7Hr6yhHCXZ8rMBC0taJ74= 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:(13230031)(136003)(396003)(376002)(39860400002)(346002)(366004)(186009)(1800799009)(451199024)(53546011)(6506007)(6486002)(6512007)(6666004)(83380400001)(921005)(38100700002)(31696002)(86362001)(2616005)(26005)(66476007)(2906002)(66556008)(7416002)(66946007)(316002)(41300700001)(44832011)(5660300002)(8936002)(4326008)(8676002)(31686004)(478600001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cXdZYlIwK0loMDFQQkVrU2dkR1RhNTA3VmVoNW04VU00Tk13cVNQRVRsaVh5?= =?utf-8?B?RXdTcmVVZkZZNG1RTWJBd3UvazVML1pOQXlMUnhYQkc0cFR3UHdYeERxY0hQ?= =?utf-8?B?TDYyN2ZCZkRLRTNLMnJWVWVtMktlZFk1bVI3OG9BRlc4bGd5dlluOVVCSkR6?= =?utf-8?B?S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82RlhyYlJwcGQ5UTcwaG4reEUzSVhEenJOdzda?= =?utf-8?B?emlsSXZ2bVh4cVBIOFYxVXIxQzJhZFNHeFQ5TWFmRW9qRllKV3k5bjlTNU15?= =?utf-8?B?ZmN2VDh5YjRqaEpSNHN3ejhCbUZyV3ZwdGhXa2VTcjAzeUZEcldEbmxtbUMx?= =?utf-8?Q?gw9Sl2tDdE0S1YJV7EqtCQQno?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 43a9b1b4-d08d-4518-da8c-08dbb35a12a5 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2023 06:32:44.9468 (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: v1Cfq9Oxi9MHj7Tv9h3OqG6Wg3kCVCXXKtZd3dB/zfqL2OYshtj/isazkR81MyEGIPy6oz6D1kysbzhMlR37Rg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8521 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 11 Sep 2023 23:32:57 -0700 (PDT) On 8/27/2023 5:37 PM, Christophe JAILLET wrote: > This serie fix some error handling paths. It is split in different patches to > ease review because the issues are unrelated and the proposed fixes are maybe > wrong (I don't have the hardware to test anything) > > Patch 2 and 3 are more speculative than the 3 oher ones. Review with care. > > > Finally, I got some problem when generating the serie, and some patches have > been hand-modified afterwards. > They look good to me, but I hope have not screwed up things... > > Christophe JAILLET (5): > clk: imx: imx8: Fix an error handling path in > clk_imx_acm_attach_pm_domains() > clk: imx: imx8: Fix an error handling path if > devm_clk_hw_register_mux_parent_data_table() fails > clk: imx: imx8: Fix an error handling path in imx8_acm_clk_probe() > clk: imx: imx8: Add a message in case of > devm_clk_hw_register_mux_parent_data_table() error > clk: imx: imx8: Simplify clk_imx_acm_detach_pm_domains() > > drivers/clk/imx/clk-imx8-acm.c | 27 +++++++++++++++------------ > 1 file changed, 15 insertions(+), 12 deletions(-) > LGTM, for the patchset Reviewed-by: Peng Fan