Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3499002pxb; Mon, 30 Aug 2021 03:58:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzr51aeQ5PDs+UXodsvWJlsPpqOSdBCTKRPdn9T5Ax2iM2AEEgP8FQB7jk1yfA8jrr+MVAY X-Received: by 2002:aa7:c64d:: with SMTP id z13mr23474520edr.349.1630321124909; Mon, 30 Aug 2021 03:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630321124; cv=none; d=google.com; s=arc-20160816; b=EIQ/p60Ksizvmr+q15bIqGBY8OAH0PfoQwQ0/xao4pxKjOkBQVvHmhzt/zXrV6tQBc y5CBVi0gnI1YShyv47UxBbAUCj3lfnAV4d7XdAZJUVhu94gnMs5FMUqIpr6iopBST+UV dUCWP0dlNyvgciMKyur8cQpcC2ve0l29CKi7ZMHyppBmvpLVKQffwgSIFRd650mPmv4p XjfInJ4Kfuyqq4TejdIl7PcxsWqHJ1XalFiULeWHPjcJ/vXx9LDyhdQn9yT9t/lxebx0 2kvcG1E0PxslNoa+VIbWD7pMy40ymkvOeA10AhVoH3MsprfOExtzc2F8c60b4BrVsRkN PmLQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=gnH5gKOEHjMV8E3Nfc5z/rxUJqsrXT+rHdZ8GfU1zXo=; b=zLbYvHTddFKv8xaaDXqJALYStIEyWbKeHSflYajV0odkDpMn3cO5KdAI0zleZEcd9/ Dq+85eHWlFdVwcW6M22d5HCIgy+L51TRMdxUGY8Ebu+kv6/nfkrtX+5XDXoRdPxJnnt0 Z6khAqkecCfeA/6fMMBLqD4hJF4ES+70f/ZmsPqAOycsScE+RvBdVn65SNU4OjUJB7Ng Du8jt1sP5g17hm6YxLD04fMZ92AECYQW0LoD6QIOLSzlX4k0gTGSM9ioOtedXKuoaQSp KynNdTUmb5tltpJxd37nCyHfHHDt3BSCuGokt4+TSzqD97d93QQam/zRb34v/chBAYra mChA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si17367311edv.565.2021.08.30.03.58.19; Mon, 30 Aug 2021 03:58:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236394AbhH3K5w (ORCPT + 99 others); Mon, 30 Aug 2021 06:57:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:47710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235818AbhH3K5v (ORCPT ); Mon, 30 Aug 2021 06:57:51 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5954C610FD; Mon, 30 Aug 2021 10:56:55 +0000 (UTC) Date: Mon, 30 Aug 2021 12:00:06 +0100 From: Jonathan Cameron To: Prabhakar Mahadev Lad Cc: Yang Yingliang , "linux-kernel@vger.kernel.org" , "linux-iio@vger.kernel.org" Subject: Re: [PATCH -next] iio: adc: add missing clk_disable_unprepare() in rzg2l_adc_pm_runtime_resume() Message-ID: <20210830115954.02fcca60@jic23-huawei> In-Reply-To: References: <20210819132416.175644-1-yangyingliang@huawei.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Aug 2021 14:04:15 +0000 Prabhakar Mahadev Lad wrote: > Hi Yang, > > Thank you for the patch. > > > -----Original Message----- > > From: Yang Yingliang > > Sent: 19 August 2021 14:24 > > To: linux-kernel@vger.kernel.org; linux-iio@vger.kernel.org > > Cc: Prabhakar Mahadev Lad ; jic23@kernel.org > > Subject: [PATCH -next] iio: adc: add missing clk_disable_unprepare() in rzg2l_adc_pm_runtime_resume() > > > > Add clk_disable_unprepare() on error path in rzg2l_adc_pm_runtime_resume(). > > > > Reported-by: Hulk Robot > > Signed-off-by: Yang Yingliang > > --- > > drivers/iio/adc/rzg2l_adc.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > With subject line changed to, iio: adc: rzg2l_adc: add missing clk_disable_unprepare() in rzg2l_adc_pm_runtime_resume() > > Reviewed-by: Lad Prabhakar Patch title updated as suggested and applied to the fixes-togreg branch of iio.git which will go upstream sometime after rc1. Thanks, Jonathan > > Cheers, > Prabhakar > > > diff --git a/drivers/iio/adc/rzg2l_adc.c b/drivers/iio/adc/rzg2l_adc.c index > > 9996d5eef289..c38f43ea624f 100644 > > --- a/drivers/iio/adc/rzg2l_adc.c > > +++ b/drivers/iio/adc/rzg2l_adc.c > > @@ -570,8 +570,10 @@ static int __maybe_unused rzg2l_adc_pm_runtime_resume(struct device *dev) > > return ret; > > > > ret = clk_prepare_enable(adc->adclk); > > - if (ret) > > + if (ret) { > > + clk_disable_unprepare(adc->pclk); > > return ret; > > + } > > > > rzg2l_adc_pwr(adc, true); > > > > -- > > 2.25.1 >