From patchwork Thu Sep 14 20:31:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 14033 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp882187vqi; Fri, 15 Sep 2023 01:08:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEssMXx3loFf+csV/CZYmcDTdCbfExK2K9uMnMyVyI9/xv7K6zc0kCxLwrwFm3IKplug8eS X-Received: by 2002:a17:903:2783:b0:1c4:1089:887d with SMTP id jw3-20020a170903278300b001c41089887dmr888481plb.3.1694765319530; Fri, 15 Sep 2023 01:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694765319; cv=none; d=google.com; s=arc-20160816; b=s4r/8iDS+hxdTfr+uLgtFdN91ydPFAZZhRN7UleRnlh9IRXItLxiW4vXxU8ZBjaVuu rjbY1v6KzC4NxrSNclNm4QOviIgvMaSDRjJrOkHvdLu5VZOUmUX83yjCNqMqNxgBl2Kg s4MFMi5SDmAdczlm/TLBd6bIIYuG/6oqOOUVBIGpa5ALNTAQQusW0iqxcvTnwJziRZhD ksE9rsLSwNVDz79t5HSxbQ7/pUaYcMxx4Z0bm95SfgL/Smyki0KjrtKtAryX8hAJXBcI p2entKnp4aYeLy2rs1wgmBATgg8TEdPI2PLDUYKR1PUCij+Swb3c75te61Daztlz0/7l p8LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Sb61MGbLqsf+CsIMkkDke3Cvm/shDI295oG39gW+CtY=; fh=uRtjX4tW/2u6hJ6MjD3hufbLT/8nXPchx+f+WmII/I4=; b=Lhr2gcNXB+ldv2eNeweZiDzblsadB3/ki4tXAKtnd6M2KZFE0XDcFKh8QL/wIGOap7 iO3TeAg+X1PsSXVRwXVPA5nzdrovvQt6YOPs3FhN2Ahnlko5sOTebgOq/5g0b046cb9t lsN9XcgRyxWEPMKRyy6LbTbLh4QqPtcR9EVB3mDicPv9RZjKny1dar2VjFuU6gUeSMn/ xsdtjbqXoYW1mM6LnG03bqbYuMXet9feRF2/jX580RBJrrQxn88aQPf10LB9PO5whdWg wPLXKy9aiTuznMR/QC5vbJr95k+C8pg4dXmU4qKaVfZAjvvRESiLuEzCYbZfDq0tPf9s sGxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=UwON7NmS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id d14-20020a170902cece00b001c432da203asi748749plg.270.2023.09.15.01.08.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 01:08:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=UwON7NmS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0BADF802391D; Thu, 14 Sep 2023 13:31:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229499AbjINUbT (ORCPT + 33 others); Thu, 14 Sep 2023 16:31:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229721AbjINUbP (ORCPT ); Thu, 14 Sep 2023 16:31:15 -0400 Received: from smtp.smtpout.orange.fr (smtp-16.smtpout.orange.fr [80.12.242.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A88732698 for ; Thu, 14 Sep 2023 13:31:11 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id gszUqMvFz7mcCgszUqSuhP; Thu, 14 Sep 2023 22:31:09 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1694723469; bh=Sb61MGbLqsf+CsIMkkDke3Cvm/shDI295oG39gW+CtY=; h=From:To:Cc:Subject:Date; b=UwON7NmSvg7mtEanY+4I6YQv7qqLAI1G+Uy0/Q/THiamTR7s3nbj+HcQ0M5V17DqS nZ+75/D30Rq03k2eDlNrK90bw2b8OGG7I9a/35Ot4rVad6FwXxNe1dVlquOZmdF/vP FaSPjlLYiceEv/qdn/Etd8FnJHWXpSarWzW8X8ov+QDxcu0Ach0bkowQ4juoDGzRi1 SLZHcYvX+PbIw3QZNIWD2CMaLeMbZWrU3g4cDzDCsVzalCU8Vh1o4LfmjRxcW+qQzI aHz+so4vGspS4P7bO9ENAqtd5zMYLgm8MdoZR18KZQSrtmWX6rtc2y6crgaPkDRTKk t79GaoGvxY6JQ== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Thu, 14 Sep 2023 22:31:09 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: 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, Christophe JAILLET Subject: [PATCH v2 0/5] clk: imx: imx8: Fix some error handling paths Date: Thu, 14 Sep 2023 22:31:01 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 13:31:23 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777019758739681154 X-GMAIL-MSGID: 1777090239383133619 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) Some of v1 patches had been incorrectly hand modified. There was a extra ')' in patch 3 and 4 that prevented the merge. This v2 is a cleanly regenarated serie, compile tested at each step. This time, git format-patch did all the work and the patches have NOT been hand modified afterwards. Some log messages have also been slightly tweaked. R-b tags have been added. v1: https://lore.kernel.org/all/cover.1693126687.git.christophe.jaillet@wanadoo.fr/ 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(-) Reviewed-by: Shengjiu Wang Tested-by: Shengjiu Wang