Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1051849pxb; Thu, 19 Aug 2021 18:54:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiBaEu5EodPbEpwcVQ3WL1+WxgpX65QsRbVkxANWDLMGX4P98qBmnC5mmMRlLyB0xbmF9x X-Received: by 2002:a05:6e02:ee1:: with SMTP id j1mr10961354ilk.61.1629424460721; Thu, 19 Aug 2021 18:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629424460; cv=none; d=google.com; s=arc-20160816; b=ZbFfipgPNufyMqJaE49eqi7bh/PTR0BrO+gceKyEeH8MOol4QUP4cTr+fenQt4eg8Y CtDXaWY1/fLaydVHGW+7p8PCP13oef2lxHTe/EqkAiNcSrR7EODl5aIBSG8reMTzuatu bKw67IZ/oxEn17hYtivt6HaUlQ3xsKrPB/tUxMEoZ+R4pI9k5ToPEUmSALxostcb18rI U5IdmnfmGdw2FvkQcHU+t/Ifb3OpovDOG7uIPw2OW0zDKKd3tUpAXtEl42O9Hya83u0/ oJSbWDISO7Q8djgbwL6B4SFEsJ6Zycvw5VLR1sRWMa0nWdVzDd37YR86ajkyqdqWpGpr o8bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=bgmq9IAhmkGUs6pwjY8fu8c86oSWJhdRV67NZOlwtkk=; b=BlKftxkyhVXaan7HRrs/FPqFqZ9088hRorbDzSQ78StP+E3zowbpTkYIvhy8n/fTkc Mgs7/i9AhPOjGAtqAknRm8MH685wC6T7ouqEE0Cy07b2I3NX+NKHcgSEG4Ays6f45V69 dbptspUYAurK7U1n6Dzg2vM9i0nBineEGA9w7lOY/iJVy+I8a3FQBnaLc0W06vDJ7Kto ++4r0ZirgOTzuOWnXLK5H/dFvEGPEb29hjYQvIFBu07EURR7TsbNOW2/7LgRAMxrSiha vu9U7eva1bklF9tedcHP+FR3QIp9y3guTgItK53Apb41MRlM/K8jzJpAzHNU92HcfhUY a/jg== 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x5si4366491ior.24.2021.08.19.18.54.08; Thu, 19 Aug 2021 18:54:20 -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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235974AbhHTBxO (ORCPT + 99 others); Thu, 19 Aug 2021 21:53:14 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:14247 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234428AbhHTBxN (ORCPT ); Thu, 19 Aug 2021 21:53:13 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4GrPlD4dxLz1CYPF; Fri, 20 Aug 2021 09:52:08 +0800 (CST) Received: from dggpeml500017.china.huawei.com (7.185.36.243) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 20 Aug 2021 09:52:34 +0800 Received: from [10.174.178.174] (10.174.178.174) by dggpeml500017.china.huawei.com (7.185.36.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 20 Aug 2021 09:52:34 +0800 Subject: Re: [PATCH -next] iio: adc: add missing clk_disable_unprepare() in rzg2l_adc_pm_runtime_resume() To: Andy Shevchenko CC: , , , References: <20210819132416.175644-1-yangyingliang@huawei.com> From: Yang Yingliang Message-ID: <9b848f1c-9acd-243e-2c5b-d489d2427464@huawei.com> Date: Fri, 20 Aug 2021 09:52:33 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.174.178.174] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500017.china.huawei.com (7.185.36.243) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 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.       ^                                                         ^^ >