Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1261692lqh; Mon, 6 May 2024 02:03:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYpzxUlM9Lff4lI0ljYDcOStWrfJ+U36ADzdD8eJIAqTnKiOBw6gSzmr24JPd5N1ZSka0xwgpAQHdrXh5jiIKrEgFjV6iON/9Dt1IbdA== X-Google-Smtp-Source: AGHT+IGNCtyksU0BJPE911nUGomIFQnNEzJaDITr600p9w0BRSVmpaFHUKX9JP4d8DeX+GOQFJgC X-Received: by 2002:a05:6358:2181:b0:183:7d27:c08d with SMTP id v1-20020a056358218100b001837d27c08dmr15057885rwb.32.1714986238345; Mon, 06 May 2024 02:03:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714986238; cv=pass; d=google.com; s=arc-20160816; b=yjgaR/rG4E+QAzwfC3weF7YHPYKDF1wd+wSJ0esp5SHX1g2O224oWUY9sRwvYf6JZZ WviRNGPj8G/F7vGH92WKWJbj347p3blEX/KkrYSlLQ6MPGES4xsJNPTUnLdxEyC8vBae BM4CWsx/A0m2olKQSS/BcEzgcx9atrX9bWOXlfVaHUklW3i5qLC6MVjAZ+RDSQe2+msB 5fnytbRooy0AB6rJRvcKlsxvopgIdZEyKMlwqoChxv4peDP25XQXMWlPA2s+2ef7kuui fNq0SpvB8fKoHrDlCXyJGIrBjrxqTdFxUJyaYKUTjvsU30eKUva/iYyoCxmldYBRBqOv 4chg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pNETSP+WAmxuOCthEUOE7DG51Zbv5+6qSx1EM2vIJuQ=; fh=HcX1n4tzsHteAwVhVicOPwi4q9nplfAmQrrv5GIdiKc=; b=fYe3PtbnVOkMF9zCTF3Ghv7LgS1rsZCZ8YLv0k8vWwRY21IlemCj983jfwivSmP3Qi Vg31LFRiijHd1K2VvzsHh+ZPnOKGKApi4yIHYGtbht5efnsvMorObob9/AlyCwUebqc/ PPI+yQ9vaLe9rSwZyV9Eh13CL88+PcMxn9A7CxS4uSR1VCycMtDnAE2Bg1dnqdFPOEZ/ Jfu84JNSfPsysupn/jvkuBtU5eFe1mhN9/7qFWoj7wmasmz24hN2fGK+m+f8QcCmPSHx X46pz/wo+v6STCXnrHrnd5FZ2IRp+3SlSJChAQ+rvPXJUnftH4C5fhxyUMGyCCjfwdH6 lGHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a5IX8YHr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169547-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169547-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w7-20020a655347000000b005e858e345dbsi7639277pgr.373.2024.05.06.02.03.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 02:03:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169547-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a5IX8YHr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169547-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169547-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E6187283215 for ; Mon, 6 May 2024 09:03:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A5151422BF; Mon, 6 May 2024 09:03:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="a5IX8YHr" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28F4E1420A5; Mon, 6 May 2024 09:03:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714986227; cv=none; b=NECro32HJD/COf9CWwRdUlU/qa5Z8CSzuccIt+FNJHBd6LdqX6ZcLtGPZcbhKS49RP6AtM/XCLPDRRCQyqpgJWW5WtG3nX9XD0CXor2Z9JulPLyReo71L/x6RIDczkQEXMv67nChQbPsWHUtvZws3E0V4s+10xjAc4fuMfoFyxM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714986227; c=relaxed/simple; bh=yGvwfqxOwDtZIpQ45MQz3mBo8YyJF34tK5vAm9AJIlI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=A2D+eyGN0+/+tf7wysnj/JdulUcRKMwqnTAMe/MFxWmcRml2Mc9z4xhW1uQnwW//kxPfjX6EMDBSQckviLfUTq347eRDgrxMqbFEwN+Sl9asa01s08pGD97UfDs/qrRO5PueTBAfBPXuGyBDlz/F/E6g/NVofgDR6GcznqPA3+E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=a5IX8YHr; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 383E7C116B1; Mon, 6 May 2024 09:03:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714986226; bh=yGvwfqxOwDtZIpQ45MQz3mBo8YyJF34tK5vAm9AJIlI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a5IX8YHrhAYtUZofX9g2jsWYgoGJ952Oyt4SgexdHc6vD3qfG+5XN9VhJtIhgOVpS S2OL3QYT2PyT/COSBAQjcrSbD/mTPTuXN9RQnRuV3ybpyma0ps0yQe6pz/ddVWQ7Es fLF6sybktOPCKIxCCUjzUEmmWLR7Zd3cPWo2lRyi0xmZn6DXHyG9+FvL9Cdee5Glf1 /JtS8OANkzrAcc0MbcjsTPWuui3Lb3CJPjKK42r22nGliL/ve4u70PNW7yw/HFbv6Y DIieJTyREACH2naFCAU3oasvH7NQmnCmYMK6VlYH3AXKyV59A3JTfs37b48WETnqwc w9R8D53FRp6jQ== Date: Mon, 6 May 2024 11:03:42 +0200 From: Andi Shyti To: Christophe JAILLET Cc: Ard Biesheuvel , Andy Shevchenko , Wolfram Sang , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-i2c@vger.kernel.org Subject: Re: [PATCH 1/2] i2c: synquacer: Fix an error handling path in synquacer_i2c_probe() Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Christophe, On Sat, Jan 06, 2024 at 01:48:24PM +0100, Christophe JAILLET wrote: > If an error occurs after the clk_prepare_enable() call, it should be undone > by a corresponding clk_disable_unprepare() call, as already done in the > remove() function. > > As devm_clk_get() is used, we can switch to devm_clk_get_enabled() to > handle it automatically and fix the probe. > > Update the remove() function accordingly and remove the now useless > clk_disable_unprepare() call. > > Fixes: 0d676a6c4390 ("i2c: add support for Socionext SynQuacer I2C controller") > Signed-off-by: Christophe JAILLET Applied to i2c/i2c-host-fixes. Thanks, Andi