Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1076126pxb; Thu, 5 Nov 2020 23:37:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3rrCjgYPUi1S4y77+U8+eI5mb0wN6T4YnyIjkjp0HeA+MqUBmULOtzUdZ1lHIVthR1Pio X-Received: by 2002:a17:906:2558:: with SMTP id j24mr739619ejb.329.1604648239989; Thu, 05 Nov 2020 23:37:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604648239; cv=none; d=google.com; s=arc-20160816; b=YDa3i0geYOCF5qt96wz2KZ8M0iAeihHKUbrF1cUa4QKXfCv1Ta9x+5Q+CJxVWYOVx4 ZGujCy9aAJvX6/6kXDw5tQlrtViDvPVaWmYUITOf3XnB+hxOAUwmDgqOENtrBqyngy/C oNaBI/1GarXLNhCUYPN2cYYQ9pAiZNBelywGYRNULvE9aH02TIFKG2h3FCeOwcBldqYK 7ySDV8M3cKS5Pu6ZxQ1it89zfD9udwIYpKSe7YPkq42W8VSsx3zpBZ8ZFShrx+rsUG7/ z4xXZG+w1oTTL8VS+QumHQa9plVDdHIKEVoYqGwpIDx/a1Uu1sVTRQqVO2LmnvmFzRJk HPtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:cc:to:from:subject :dkim-signature:dkim-filter; bh=q970vv8s62XPkoucluNk/h+Bajm6Y938td+8aJMMAw4=; b=b3KiTojWF6h5HXV0BaBPOYjD2UTiWh2O4Qb7NuFFhKhzZ5tUNGtCrGonDHWqLQbIgc Mq0aXJgGtVpohy07hzllPnBh6TCUdWlD2OS4PSCwfFmQzX3cZnWWjrG0h23nTDKr3/Hx WrJkmvpNY3Lw8IA2XVCNU+cxqd+408c3RAauSUXFa24yhVMXcS5Ej4uYME/jziGxRASu 2jThi+qwDo4pOZDsB6j+Yq3nCBj2RwTUGdE25QFDBuA5FmwrA5xhSJaeS/eXfdrIC6kd sIYrwji/N7iw/0KoA9GTAQw1JCUlngJ6X3833d5eoO+g2kWONDfMVAjH0EwO4Wuo9kK2 HKhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=eq3kAYeO; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n9si269876ejz.693.2020.11.05.23.36.57; Thu, 05 Nov 2020 23:37:19 -0800 (PST) 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=@samsung.com header.s=mail20170921 header.b=eq3kAYeO; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726530AbgKFHek (ORCPT + 99 others); Fri, 6 Nov 2020 02:34:40 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:15131 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726527AbgKFHej (ORCPT ); Fri, 6 Nov 2020 02:34:39 -0500 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20201106073435epoutp01ff04415751f14c80e9c2b7c93b70ca50~E2uxPdY-z2685626856epoutp01E for ; Fri, 6 Nov 2020 07:34:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20201106073435epoutp01ff04415751f14c80e9c2b7c93b70ca50~E2uxPdY-z2685626856epoutp01E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1604648075; bh=q970vv8s62XPkoucluNk/h+Bajm6Y938td+8aJMMAw4=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=eq3kAYeOVZEkw3hlpWCYmUbJ7IMRsMlju7vx6JmQu20UqtupxqljcyrxY/RJ+3FGI 4Ml8f8ZUYesV+UCDBTJbCylsVuqzSwARvFqZVXUWhWWnOsICj7ggqEOCHsPKQw0dF7 7SoxtKlIMaXrH06WYb+ugRFNK1YqmZSZ3ktZETHg= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20201106073435epcas1p125afa6d21d5ae454f02de15ffce340ad~E2uwwi4-p2629926299epcas1p1D; Fri, 6 Nov 2020 07:34:35 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.40.152]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4CSBwm25H5zMqYkV; Fri, 6 Nov 2020 07:34:32 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 37.F2.09582.88CF4AF5; Fri, 6 Nov 2020 16:34:32 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20201106073431epcas1p2993319f4ff36cfb3b3d5ed0291ffd492~E2utsIQpD1083410834epcas1p2N; Fri, 6 Nov 2020 07:34:31 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201106073431epsmtrp1b3cd262c18b472e9559413e04dba4e32~E2utrMe2i0289402894epsmtrp1P; Fri, 6 Nov 2020 07:34:31 +0000 (GMT) X-AuditID: b6c32a37-8afff7000000256e-d3-5fa4fc88bdff Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 6E.03.13470.78CF4AF5; Fri, 6 Nov 2020 16:34:31 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201106073431epsmtip299c4225a08abf332bb859f8b498f4a32~E2utZU25v2894528945epsmtip2a; Fri, 6 Nov 2020 07:34:31 +0000 (GMT) Subject: Re: [PATCH 4/7] devfreq: exynos: dev_pm_opp_put_*() accepts NULL argument From: Chanwoo Choi To: Viresh Kumar , MyungJoo Ham , Kyungmin Park , Kukjin Kim , Krzysztof Kozlowski Cc: linux-pm@vger.kernel.org, Vincent Guittot , Rafael Wysocki , Stephen Boyd , Nishanth Menon , digetx@gmail.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Organization: Samsung Electronics Message-ID: <5a9625bc-9e40-fb18-b111-9cd797943af3@samsung.com> Date: Fri, 6 Nov 2020 16:48:26 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <4b13f82c-fa2a-939f-e26f-e8fc4d34d567@samsung.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFJsWRmVeSWpSXmKPExsWy7bCmrm7HnyXxBmdv8lis/viY0aL/8Wtm i/PnN7BbnG16w26x6fE1VovLu+awWXzuPcJoMeP8PiaL240r2Cze/DjLZHHm9CVWi3/XNrJY dBz5xmyx8auHA5/Hzll32T02repk87hzbQ+bx+Yl9R5brrazePRtWcXocfzGdiaPz5vkAjii sm0yUhNTUosUUvOS81My89JtlbyD453jTc0MDHUNLS3MlRTyEnNTbZVcfAJ03TJzgM5WUihL zCkFCgUkFhcr6dvZFOWXlqQqZOQXl9gqpRak5BRYFugVJ+YWl+al6yXn51oZGhgYmQIVJmRn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9gtzja9YbfY9Pgaq8XlXXPYLD73HmG0mHF+H5PF7cYVbBZvfpxlsjhz+hKrxb9rG1ks Oo58Y7bY+NXDgc9j56y77B6bVnWyedy5tofNY/OSeo8tV9tZPPq2rGL0OH5jO5PH501yARxR XDYpqTmZZalF+nYJXBlTf/5iLrjNX/HkxjTWBsbPPF2MnBwSAiYSV+atZ+xi5OIQEtjNKLFv y3dWiISkxLSLR5m7GDmAbGGJw4eLIWreMkrc6XvMBFIjLBAi0fD+KAuIzSagJbH/xQ02kCIR gVOMEjdf9LODOMwCa5gkrpxawAbRfoZJ4tukp+wgLfwCihJXfzxmBLF5Bewkmg41gNksAioS /5ZuALNFBcIkdi6BWMcrIChxcuYTsHWcAvYSr19/YgOxmQXUJf7Mu8QMYYtL3HoynwnClpfY /nYO8wRG4VlI2mchaZmFpGUWkpYFjCyrGCVTC4pz03OLDQsM81LL9YoTc4tL89L1kvNzNzGC Y1ZLcwfj9lUf9A4xMnEwHmKU4GBWEuG94LcoXog3JbGyKrUoP76oNCe1+BCjNAeLkjjvjcKF cUIC6YklqdmpqQWpRTBZJg5OqQam82tnWKptkJi7dl1vm0K7x2atfyX5CRdW8UaV8HRsOT7n huSaxT0PH2UVXz3613At/3K/L7y7Erek194yu9DfYu8pv11HLmKz1v3Ve6teGu+9cdW7acO7 8uK2Kp4bR39O+3bshdxJ/oQP59Ja15YVXJsu8Lbz8EfzfQkb3v8Wb83eecReqe/p/0SpU2tc Sh+7ceeWP3q3LT3ov7zVRdvqox52p4VruYvOsa3l5He3X8HE7HHWTPiX8pQVx8oOZK+0esm9 VU0/N3TNzD12m6KOdV06s/appH6p+OlLqVu3L027tOkkc4ZocOnkxSb/73L/3vhv1hRtWY3b T6NPqsw3DG15zb41+Mjndys0lxvJ1yixFGckGmoxFxUnAgDfXt+1SAMAAA== X-CMS-MailID: 20201106073431epcas1p2993319f4ff36cfb3b3d5ed0291ffd492 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20201106070533epcas1p480406659e38528d1263641612fcff8bb References: <4b13f82c-fa2a-939f-e26f-e8fc4d34d567@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/6/20 4:46 PM, Chanwoo Choi wrote: > On 11/6/20 4:42 PM, Chanwoo Choi wrote: >> Hi Viresh, >> >> On 11/6/20 4:03 PM, Viresh Kumar wrote: >>> The dev_pm_opp_put_*() APIs now accepts a NULL opp_table pointer and so >>> there is no need for us to carry the extra check. Drop them. >>> >>> Signed-off-by: Viresh Kumar >>> --- >>> drivers/devfreq/exynos-bus.c | 12 ++++-------- >>> 1 file changed, 4 insertions(+), 8 deletions(-) >>> >>> diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c >>> index 1e684a448c9e..143fd58ec3dc 100644 >>> --- a/drivers/devfreq/exynos-bus.c >>> +++ b/drivers/devfreq/exynos-bus.c >>> @@ -158,10 +158,8 @@ static void exynos_bus_exit(struct device *dev) >>> >>> dev_pm_opp_of_remove_table(dev); >>> clk_disable_unprepare(bus->clk); >>> - if (bus->opp_table) { >>> - dev_pm_opp_put_regulators(bus->opp_table); >>> - bus->opp_table = NULL; >>> - } >>> + dev_pm_opp_put_regulators(bus->opp_table); >>> + bus->opp_table = NULL; >>> } >>> >>> static void exynos_bus_passive_exit(struct device *dev) >>> @@ -444,10 +442,8 @@ static int exynos_bus_probe(struct platform_device *pdev) >>> dev_pm_opp_of_remove_table(dev); >>> clk_disable_unprepare(bus->clk); >>> err_reg: >>> - if (!passive) { >>> - dev_pm_opp_put_regulators(bus->opp_table); >>> - bus->opp_table = NULL; >>> - } >>> + dev_pm_opp_put_regulators(bus->opp_table); >>> + bus->opp_table = NULL; >>> >>> return ret; >>> } >>> >> >> Applied it. Thanks. >> > > It seems that this patch depends on first patch. > So, need to be merged to one git repository. > > Instead of applying it to devfreq.git, > Acked-by: Chanwoo Choi > Also, need to add 'PM /' prefix to patch title in order to keep the same format with already merged devfreq patches. - 'PM / devfreq: exynos: dev_pm_opp_put_*() accepts NULL argument' -- Best Regards, Chanwoo Choi Samsung Electronics