Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2390292rwd; Sun, 28 May 2023 14:51:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6EKXYZU6zYdNs2BMtgySRGbuZhJDdX6wT/MlqLhZKUYJu4Ppj+obzQwMeiRsBlXFRp4Z3J X-Received: by 2002:a17:903:1251:b0:1af:a4f0:bce2 with SMTP id u17-20020a170903125100b001afa4f0bce2mr10973832plh.20.1685310711318; Sun, 28 May 2023 14:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685310711; cv=none; d=google.com; s=arc-20160816; b=X/kiheldnF6DPB95XLQSLSHCgEnjxz6xd2DVvx3u65LdAPoxEYmzCf7B+r1WxtqIZ1 HzPvni5ebEYxVpUUGt+5yY1Htl3c8uwAyNKY6NaAOM8WL/YFHffYYsLppUQtpQZhg+Aa u0pscBtY5GXjCP8WaLhymDDTQ0LnPgh1Noqp4cyQ66SUPvKcTn80z414yIBj9zsFxVKy aROw5xDnrk6WzMUYD/rQtkSEoXKARcYRJG1Eigt3wtPc/9M234RxiD75YOSFgseXFpD3 RWHa7/Oq8m5oCw31h3bKgk5tX+j/eoUJL5Q/vuWN311QnukCmUgKia0clZFHO8wgKVme dcPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=0J/vYpNIVWo74BVxynGNhA4kjoHBlKhbitf1A0WxeoQ=; b=u+KdLledC2ouMGmibPKhQrqKHKsTbvyT9iklpBfGAjMshqzt6Dqc+m/xb9xGqc+Qr3 zew3nVfnWU5DwiCtzb2aPFwDKRg8p+8YMQV2Oc7JlyKd80xxs0r9itMvXOK8TClbL5wK nN4ZmAxW6OrIx8alSQqpgLVZUSagxeuW+WMl69BI89f0suGlCfDqF836CCW7KaTblFac lkTzpQFm7M6hbrgRUnUIHEHvtUNivyErbDXydxHb81iKp3g206lAw2LrXzqN0iplhV46 MGtKsgyLZpMQM2NMrgnCXH6FWs6v8+nTPgnZ6GIH7pOFC+bRqVd94JPhT8OcvggJ1NgF t9Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kWKimZgJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p14-20020a170902b08e00b001b02a9bb4casi1335206plr.443.2023.05.28.14.51.36; Sun, 28 May 2023 14:51:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kWKimZgJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229807AbjE1VWi (ORCPT + 99 others); Sun, 28 May 2023 17:22:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbjE1VWh (ORCPT ); Sun, 28 May 2023 17:22:37 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34BFFB8; Sun, 28 May 2023 14:22:36 -0700 (PDT) Received: from [IPV6:2405:201:0:21ea:e49:10dd:40c0:e842] (unknown [IPv6:2405:201:0:21ea:e49:10dd:40c0:e842]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: shreeya) by madras.collabora.co.uk (Postfix) with ESMTPSA id B151E66028F5; Sun, 28 May 2023 22:22:30 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1685308953; bh=1lLaRddepgjlJW8m/FCwzogjASyCbCW3Pl3FgHcbwsk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=kWKimZgJE/wgD8bXw+oYGRrist/CQD8pLhPTL34wR5pIowb42+UgENaXifYNLnz5x XNOO/B/8TsxzEgVK9pKN4WawB0HKt+P+bGhGJzWCEj+if6nFTzf1YnQJ0dzrY5n7Ak JbOVvy+MZFQZii4dKeorqq26GKww80mQijQAlVqsXwsRQHgqVsHP3CbQ13FE1oedH9 o817Lpoaes2eO+AZNYP3zIbQ4Hpbzjg6uIiD8brnzxOm8wL3EqReBkuPIjlYy+rcGn +djyMiHUswW8nN2fxIj5P7zy1xy7xC5FPJdI2gp9dw/frgPDn9bpl9t5Ev1qwvc0uA BdPzrn7uoPPig== Message-ID: <196486e3-a6e4-d330-6193-6eff248bdefb@collabora.com> Date: Mon, 29 May 2023 02:52:26 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v2 3/8] iio: adc: rockchip_saradc: Make use of devm_clk_get_enabled Content-Language: en-US To: Dmitry Osipenko , jic23@kernel.org, heiko@sntech.de, sebastian.reichel@collabora.com Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, lars@metafoo.de, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com, gustavo.padovan@collabora.com, serge.broslavsky@collabora.com References: <20230525212712.255406-1-shreeya.patel@collabora.com> <20230525212712.255406-4-shreeya.patel@collabora.com> From: Shreeya Patel In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry, On 26/05/23 06:12, Dmitry Osipenko wrote: > On 5/26/23 00:27, Shreeya Patel wrote: >> @@ -600,8 +560,6 @@ static int rockchip_saradc_suspend(struct device *dev) >> struct iio_dev *indio_dev = dev_get_drvdata(dev); >> struct rockchip_saradc *info = iio_priv(indio_dev); >> >> - clk_disable_unprepare(info->clk); >> - clk_disable_unprepare(info->pclk); >> regulator_disable(info->vref); > Why clocks need to be enabled during suspend? They don't need to be enabled during suspend. Thanks for pointing it out, I'll add them again in v3. Thanks, Shreeya Patel