Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9065723ybi; Wed, 10 Jul 2019 04:08:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqynDSJoVqrwzg7M/k9jVyce5ytCUnzQJv/raR5kP+o2UQXxIC1sJH6Cr5SaazHOkpaKnSLR X-Received: by 2002:a17:902:b944:: with SMTP id h4mr37521802pls.179.1562756900283; Wed, 10 Jul 2019 04:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562756900; cv=none; d=google.com; s=arc-20160816; b=qkEL5cb/cDtuV0WGu3P0rmBqogVUmkWh8vGYfo1NfS2Uyz83lMyrGEnn3oOrssahUk 2Hopoon5n70NY68GiVsyMgsRGyqagS5YRVzCcpycz9UR/VaBCIywYCywsbf0NdnywFKY wVYHwQ17hGy3HNRZ7s43bKpCpwqRvmwVkjwKtibM+Bez5wLQ7k4TvZ1aU00D/uuesrH5 D1hL8xI3/3TKag0kfps/xLTuVqWTnffI1KX20tKcwA7fubHtpnBXCbtBU0oq95bd0pBj 6wakW1RYWAmDhtqWE75UGr1EKL88p00cdfg68Xcw6EQQq1oqYYA1lqRjp+kS0En8N6wj 5U4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=DGGSStnE8hfpWYVCDu2TLFZ0Ng6S0e/fEz3/71WaMS4=; b=vrHABHEIOYSPI5tzep/bx+9YpsVaZk4zVt9ANwYUMqOAof5NXjtCI6l8H/Xkwwb3Gg 4o+crt27eNDCyLRMXFMJqctYvxGDLBDaTralT3WUM7Q9AMTYEjYlbL9bF6yjN3NJpeLk mBd1Fng3ta3Th4yb2ir/TK0/vF+7nsCy6snxUwqwNzXIzsz6l8p2/b7a0yOme9TWbSQR 6dANQ//01EsqfJtlEVarWe8Nb0GUrkkoFF7HqQxwln3drosM+4EsihPjW+L+Kg9O50W/ U7NEkPBOHMPRflSn7LeUAebU3OQlCfNadVLdDLrsIgqNt3IGFPG3YTc8RtxkWkyJk8Pl DZsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=PU3zUfUK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d62si1970509pga.447.2019.07.10.04.07.58; Wed, 10 Jul 2019 04:08:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=PU3zUfUK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727327AbfGJKnm (ORCPT + 99 others); Wed, 10 Jul 2019 06:43:42 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:59214 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727308AbfGJKnm (ORCPT ); Wed, 10 Jul 2019 06:43:42 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190710104340euoutp02024d85b5a95d675212d37bd575aa121a~wBcZqWgOw0808508085euoutp02O for ; Wed, 10 Jul 2019 10:43:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190710104340euoutp02024d85b5a95d675212d37bd575aa121a~wBcZqWgOw0808508085euoutp02O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1562755420; bh=DGGSStnE8hfpWYVCDu2TLFZ0Ng6S0e/fEz3/71WaMS4=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=PU3zUfUKbTxQGpP/eJNwFTYVWg9HGELEZYYT5xaLwXSXeS+iXV2Xsmrc4H2uW3M8z YzljColupHSUvCx0xto5+6flzm6Wng0nbJjGDv0Afrha2smRr25li6NbFW7RVi5Weh NPnAESVxcG7uCm7hSTzf04Cu7Rnjf6B5ar0fNy5E= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190710104339eucas1p2b87acc4b58219affc082fce7b280b574~wBcY8NakG2721527215eucas1p25; Wed, 10 Jul 2019 10:43:39 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id AB.33.04377.B51C52D5; Wed, 10 Jul 2019 11:43:39 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190710104338eucas1p1d2047febe63064b119636f3d3937813e~wBcYMPbxF2192621926eucas1p1v; Wed, 10 Jul 2019 10:43:38 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190710104338eusmtrp2a14ee9863a89120a79e4597f45456a13~wBcYJi2Ty1066010660eusmtrp2D; Wed, 10 Jul 2019 10:43:38 +0000 (GMT) X-AuditID: cbfec7f4-12dff70000001119-63-5d25c15b8a28 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 83.4B.04140.A51C52D5; Wed, 10 Jul 2019 11:43:38 +0100 (BST) Received: from [106.120.51.18] (unknown [106.120.51.18]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190710104338eusmtip23e52dc9119a4006f313b1f6cfaa72859~wBcXaYpTL2747527475eusmtip2h; Wed, 10 Jul 2019 10:43:37 +0000 (GMT) Subject: Re: [PATCH 1/3] opp: core: add regulators enable and disable To: Viresh Kumar Cc: Bartlomiej Zolnierkiewicz , Marek Szyprowski , Chanwoo Choi , Krzysztof Kozlowski , Kukjin Kim , Kyungmin Park , Mark Rutland , MyungJoo Ham , Nishanth Menon , Rob Herring , Stephen Boyd , Viresh Kumar , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org From: Kamil Konieczny Message-ID: <1795603c-686f-dfb5-5982-c836b36dca9c@partner.samsung.com> Date: Wed, 10 Jul 2019 12:43:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190709054014.o3g4e6gbovrq3vvn@vireshk-i7> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02SeUhUURjFu2+b59DIdVT80DamDCxNi5bbghS0zD9GRaAkU436MtExmefS AmVRlpPpmIE2hVNkqZNpLriVljppmktSaYvRoIYtaoZTJITW+JL878c55+OeA5enlUOsJx8V Gy/oY7UxKk7OVDZPdPqFNnhrAi52uZHSnBKW9NqHWGK2drIkY+ArTbq67stIx5lhGSkb6GHJ i9rrHBm/ZEUkp6ueIves72Xkdm83Rd6dLuDI8K8Oipyrs8rIZE8pQ0p/qEm5rZnbrFQX5RYh dZkllVP39Tzk1OV5p9TpFRakbnldRanHyxbsku2Tb4oQYqISBb1/4EH54Y6RFCrOLD/a2TfG JqNq3oCceMCrobiphDMgOa/EBQjumrNZh6HEdgTna/ZLxjiC/udp3MxF+61vtBTKRzCatVEK jSDorXsyHXLF2+CVOf9viOfd8DL4/EZwZGg8wcD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rYBMwlHm0/A9bMK+Am8ePiSrA4i4CqxJLp7xhBbFGBCIlJ13ayQNQI Spyc+QTM5hSwlHjX/Q3sOmYBdYk/8y4xQ9jiEreezGeCsOUltr+dwzyBUWgWkvZZSFpmIWmZ haRlASPLKkaR1NLi3PTcYiO94sTc4tK8dL3k/NxNjMCo33bs55YdjF3vgg8xCnAwKvHwSrSo xAqxJpYVV+YeYpTgYFYS4d3nrhwrxJuSWFmVWpQfX1Sak1p8iNEU6LmJzFKiyfnAhJRXEm9o amhuYWlobmxubGahJM7bIXAwRkggPbEkNTs1tSC1CKaPiYNTqoGx+rMsy2Qz1fxn99ncNxel vJxexMPtfOhiCfe3y1VPv2z/taMz7UH403N198sZWQ+WRXI0NkZ8aHep/n/jop97d/8vjh0p sV4lSjfZpFS6GDi/5iut8zvH9NqLv+7aj3SxI+Zv3wTvENmnkmbc/GzCdgXdO64WFmXTc2PU uVpEb2Rc/fF6gYoSS3FGoqEWc1FxIgDuwhf2EAMAAA== X-CMS-MailID: 20190710104338eucas1p1d2047febe63064b119636f3d3937813e X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190708141159eucas1p1751506975ff96a436e14940916623722 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190708141159eucas1p1751506975ff96a436e14940916623722 References: <20190708141140.24379-1-k.konieczny@partner.samsung.com> <20190708141140.24379-2-k.konieczny@partner.samsung.com> <20190709054014.o3g4e6gbovrq3vvn@vireshk-i7> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09.07.2019 07:40, Viresh Kumar wrote: > On 08-07-19, 16:11, k.konieczny@partner.samsung.com wrote: >> From: Kamil Konieczny >> >> Add enable regulators to dev_pm_opp_set_regulators() and disable >> regulators to dev_pm_opp_put_regulators(). This prepares for >> converting exynos-bus devfreq driver to use dev_pm_opp_set_rate(). >> >> Signed-off-by: Kamil Konieczny >> --- >> drivers/opp/core.c | 13 +++++++++++++ >> 1 file changed, 13 insertions(+) >> >> diff --git a/drivers/opp/core.c b/drivers/opp/core.c >> index 0e7703fe733f..947cac452854 100644 >> --- a/drivers/opp/core.c >> +++ b/drivers/opp/core.c >> @@ -1580,8 +1580,19 @@ struct opp_table *dev_pm_opp_set_regulators(struct device *dev, >> if (ret) >> goto free_regulators; >> >> + for (i = 0; i < opp_table->regulator_count; i++) { >> + ret = regulator_enable(opp_table->regulators[i]); >> + if (ret < 0) >> + goto disable; >> + } > > I am wondering on why is this really required as this isn't done for > any other platform, probably because the regulators are enabled by > bootloader and are always on. It is not ABI break, it should work with existing DTBs -- Best regards, Kamil Konieczny Samsung R&D Institute Poland