Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3498301pxb; Mon, 30 Aug 2021 03:57:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzzJT2NVrdN5P0zwF/1aCO5kJ/vb2XcoeofQ2FM6aYgPM9T/et+TSz3W123G+UrgGmDzID X-Received: by 2002:a05:6602:d9:: with SMTP id z25mr17670579ioe.154.1630321031457; Mon, 30 Aug 2021 03:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630321031; cv=none; d=google.com; s=arc-20160816; b=iahLgSy6gDjPdcBDhfuN5xbDvbKJFiUuVfcYtKFTqnRb5DOaZFmhsgRvHG2lbWQ1Sd Y+M0zZr5D9bXc12EkHLghToC3R+1ZFV0GTjFcItESpalCv2mbF//E2Wv7SwbklDZzQzG 6qGRwfYWuJHzx/W9jIBy6+LYaawZd6nV8XwDJtpFDoEXm1momu+O0saor01mycJPXb3H V6Lbhwq4IL7AYsdPxdtfm4OmK+bOfBXnT6V2KcKfeEQh4KaKe6kmEZ8L1kCudFGk/tkV +JoLhVfyQ8B8VAWMeRq4SOuAgDSmyyCeZ4KQSjN7pOSo9O23KTEnvyBb5/hUAwlVEx+L Kv9A== 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=g2NwzIHnRC/ew490DD5kEMSTDjK1yiWpDJ4dRMAMU/4=; b=eYcVtx4sPErhoIJeifl8D5O8mfITA4VkRvh5GWHKp3s0hBgtupjUeB7Otj2HzUyvYA YIHSss3VOTKaIFRkk0eJhBq5GEI7bAhPJZkjFrE6cNpLZFhzmB4R9/wD0RLwnF2MoPDt UwtlXyat52WpUUWCJGB8qC4bUnBIZbHizR148uedwi08L5/HU1GgUuPHchDhHnFc7cJh Ef1qEv/NZ0jB5JKhG8w1QWEgazo3hy/66bo8wqZh7TP8tSGlqZyBj2vADfF1QyCs75Ta 5HZdxeHvKAvRJiuBY8iAt/K/JaC98NF/cx/tEQVplpEP5DnQnSM5DE17xbP75fYdyKAI 4X/w== 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 m9si14371605jap.72.2021.08.30.03.56.59; Mon, 30 Aug 2021 03:57:11 -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 S236373AbhH3K4J (ORCPT + 99 others); Mon, 30 Aug 2021 06:56:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:47216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235818AbhH3K4I (ORCPT ); Mon, 30 Aug 2021 06:56:08 -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 09C6B610FD; Mon, 30 Aug 2021 10:55:12 +0000 (UTC) Date: Mon, 30 Aug 2021 11:58:22 +0100 From: Jonathan Cameron To: Andy Shevchenko Cc: Yang Yingliang , Linux Kernel Mailing List , linux-iio , Lad Prabhakar Subject: Re: [PATCH -next] iio: adc: add missing clk_disable_unprepare() in rzg2l_adc_pm_runtime_resume() Message-ID: <20210830115822.759f4bba@jic23-huawei> In-Reply-To: References: <20210819132416.175644-1-yangyingliang@huawei.com> <9b848f1c-9acd-243e-2c5b-d489d2427464@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 12:17:46 +0300 Andy Shevchenko wrote: > 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? They are handled independently in other parts of the driver, so bulk setting is going to be a mess. >