Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1293789pxb; Fri, 20 Aug 2021 02:23:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6KIMqyQnG0LIiJFxqJ8x3adxqc6vckLRbiqIrj/ieCq1MAiYq49UpE4RBKb2KPQU8KQFv X-Received: by 2002:a17:906:6b0c:: with SMTP id q12mr20862122ejr.0.1629451385669; Fri, 20 Aug 2021 02:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629451385; cv=none; d=google.com; s=arc-20160816; b=tFEDdwcPmaJIt9mmcZIcOKZWDZVyju+K8V8eU5Ed6jvzSRCVBmA+1K46EQ8fNnP0kw jPqUc0UPsl7toP2AW4VXpM96m3eIwzbgj1PISwFz8piLACbap/2nLkikpUHoFEcsrusc VyvDZd0uVE4mLHErgxC6VFXa00VUcKR3UY0lcMxcFaJO07YRqE6RevtM4sKzWeruFRQR E9MK+5iZop7ad/ckqfPF9tGZ53KT68z4dJ8cAxrfJfNuEkLkzNDAMJ6ITQhjlmPGmw/S N9EPyFpiUCfUcdsDkFrZyLPX2GWYq+m/fHvez33o2uUdlRvMUx+4SABMaOOGbsNaSnNx C6Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qcKjNJ245vgXkYDCK3fscDqcfPmoCHJwUwzzjEOFm9w=; b=n982zEJuriygjCle+ELFMSXzSQ5z7HbNSnBSbH5DMBUbasTljIGA4Ugn8zTUhpq7eV THmOhUxnOcV5om9c1iJu3AR7gJTtlM3FXW0KtbM/PV4weJ4L+iWmhO4/TQsy1m+/OjZm y6sSuEXEUxrqooBPwDlkGc+NkfSKpfKuogo6Fw1108icCmQ+iuYBKbutECOVtvkvoPir hLaNnXBn10bKSwd3jcf5/CjK+xXOKTxDzxUokBK0iDGT7Iw9MTkPFeMkb4+wDE0tg3oM hu9EvbX+NtAueqSsOlfG5AFQpOtrEDpwRqy9v4aZZ0GalHfrBUfx9KyEaOnF11mEBDpg BeUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KldDjx+4; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p18si5976295ejb.559.2021.08.20.02.22.36; Fri, 20 Aug 2021 02:23:05 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KldDjx+4; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232991AbhHTJTE (ORCPT + 99 others); Fri, 20 Aug 2021 05:19:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235063AbhHTJTA (ORCPT ); Fri, 20 Aug 2021 05:19:00 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1569DC061575; Fri, 20 Aug 2021 02:18:23 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id k24so8540444pgh.8; Fri, 20 Aug 2021 02:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qcKjNJ245vgXkYDCK3fscDqcfPmoCHJwUwzzjEOFm9w=; b=KldDjx+4deNAq8RuCrxjwWAscLzgXpjMx+wScTUJ4b6oG0/t6Gvq7MLF/LK0SfjFa2 tlCffeCWYACzN8pKvFKyPiBgtp22zbU8U24sZdHFLCQmEuWcySyn87S14HZae6fT3HUO jALT21XG7OyIaRHAkmGoaP51Pynfned6wv0yG7AWbEJ61lOhd94GfC2pj1C+1WRf2tH6 +o7DvpdKiF9TtQyHNf7LSVQNO6mKEOl0D7A0f6RliwaSYXNHhgVDqhXxXBNUHrrgcxsi syyT3wFoigSScfR/l6F4OX98lUNfVV5WK8/Du6dgWMwsZo//JHNFv4tpnaHv3D3uGEXm f31w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qcKjNJ245vgXkYDCK3fscDqcfPmoCHJwUwzzjEOFm9w=; b=BenDHTBsTQ/s6jVupEGwjMMo7DWbbEuhP+xs89shdeLN9jSTifbo15w9XP3LkpppYt 3Id0u4cyKrdDyCR5aQuN/WQHQzl6UTRdeq+Im66GUG2QOES301DO0tIux0iV4RIGsXbo 05tUavicvh+6gC93CsMOZ6X6LyHllv3em8ELWO/ATjaRTATPnjwEJNP8GlfPaj5f5KI9 Oz+LP1N8MjHUNk/TIpZ0dvUHImFo91XSctkk4rmBOavW2mzAeOSElKb5f7k+D84QA+56 M+iLJv1GTR/zGa63t4lv9c98V/d60EAtTtcvdD13X+8YV7sR2mpGhmMv2Ixhx5JPBXU2 +OeQ== X-Gm-Message-State: AOAM531U13w1BJKjkKbes43P93l2D9AeRON6jdIMCqUp5NFnilECcPaW Ovfj0GESFMxRNEyRgxpBvV2NscHx1hXcWxdfADs= X-Received: by 2002:a05:6a00:d41:b0:3e1:3316:2ef with SMTP id n1-20020a056a000d4100b003e1331602efmr19029953pfv.40.1629451102470; Fri, 20 Aug 2021 02:18:22 -0700 (PDT) MIME-Version: 1.0 References: <20210819132416.175644-1-yangyingliang@huawei.com> <9b848f1c-9acd-243e-2c5b-d489d2427464@huawei.com> In-Reply-To: <9b848f1c-9acd-243e-2c5b-d489d2427464@huawei.com> From: Andy Shevchenko Date: Fri, 20 Aug 2021 12:17:46 +0300 Message-ID: Subject: Re: [PATCH -next] iio: adc: add missing clk_disable_unprepare() in rzg2l_adc_pm_runtime_resume() To: Yang Yingliang Cc: Linux Kernel Mailing List , linux-iio , Lad Prabhakar , Jonathan Cameron Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20, 2021 at 4:52 AM Yang Yingliang wrote: > On 2021/8/20 1:20, Andy Shevchenko wrote: > > On Thu, Aug 19, 2021 at 4:19 PM Yang Yingliang wrote: > >> Add clk_disable_unprepare() on error path in rzg2l_adc_pm_runtime_resume(). > > ... > > > >> ret = clk_prepare_enable(adc->adclk); > >> - if (ret) > >> + if (ret) { > >> + clk_disable_unprepare(adc->pclk); > >> return ret; > >> + } > > Huh?! > The pclk need be disabled, when enable adclk failed. > ^ ^^ Indeed. I'm wondering if those clocks behave like a bulk or any combination is possible on a working case? -- With Best Regards, Andy Shevchenko