Message ID | 20191220002430.11995-9-cw00.choi@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=NtM1=2K=lists.infradead.org=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A138114B7 for <patchwork-linux-rockchip@patchwork.kernel.org>; Fri, 20 Dec 2019 00:18:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 649E224672 for <patchwork-linux-rockchip@patchwork.kernel.org>; Fri, 20 Dec 2019 00:18:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LdLMEaZp"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="hEJQxBmh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 649E224672 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=WsuCv7JxXiZeoX4lgBwVpFDgfK70iEZZ2HOcoSSb+ig=; b=LdLMEaZpJK79E+MUxpFER6viLq vKyNqZr0dDWktBmC/5qlSdLX9C5yNtuWKAbbsVOMCl4F6SHbwYSva4vdRLgrOfCA8trIIiaA3T3v2 3y5vwdwf5kbldQ72phZy/FEDGKb0QWx90+FD2FH9nHi0WnaxH/Wio5kiq52ahK5ujXhdtgGn1Eg/4 OSoQoYXC9hSMSSjT7WpXhU4vlSgHoTC63aHPBwIEhyXO4V9XvYpDruohkr2Qz9Pu9Y7HMOrLrjiJt ddPrHqeOZc+Dednu3zVJz8TGpk30tVQKV/sF/pvHHrq0AN/sCTTqJNmEj/Mta9vX8lrzbmrzQWUwE XU7HJh5g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ii5zh-0007RF-Be; Fri, 20 Dec 2019 00:18:13 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ii5zd-0007ON-Qu for linux-rockchip@lists.infradead.org; Fri, 20 Dec 2019 00:18:11 +0000 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20191220001804epoutp0389484dbc5867d723159c5db174cfa196~h7DtZRZ-V1346513465epoutp03w for <linux-rockchip@lists.infradead.org>; Fri, 20 Dec 2019 00:18:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20191220001804epoutp0389484dbc5867d723159c5db174cfa196~h7DtZRZ-V1346513465epoutp03w DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1576801084; bh=/s3dxL0leRBi85ExHunIXP3vYxsxh3UAXcd6sT3XK1M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hEJQxBmhkBxWkDyQmTusbBhBGf86AGt454siwSO9ydeyO9N3Xif/3detY6uQ8KRaF TeMq240PRzRtUykmkAI3o6dIw/vc0oNLLwtU7dPdFcM5PcPDcAVKQfIhkumWpnzm7Q Ik8wXaaIfg1Sksv9O6/I3MHCGAysmpYSrBpEgvbc= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20191220001803epcas1p32ebd9275f7e31e17632c68e25a75f0f7~h7DstLUIE1379413794epcas1p3T; Fri, 20 Dec 2019 00:18:03 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.40.153]) by epsnrtp1.localdomain (Postfix) with ESMTP id 47f8Th5SWQzMqYm6; Fri, 20 Dec 2019 00:18:00 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id E5.E5.57028.8331CFD5; Fri, 20 Dec 2019 09:18:00 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20191220001800epcas1p383927f73060e0e9aaad2fd9aaf881b6d~h7Dp1U7hT1359613596epcas1p3Z; Fri, 20 Dec 2019 00:18:00 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20191220001800epsmtrp119f7e7e296e4bd068e5def73fea14971~h7Dp0aekq1705617056epsmtrp1W; Fri, 20 Dec 2019 00:18:00 +0000 (GMT) X-AuditID: b6c32a35-50bff7000001dec4-17-5dfc13382638 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 02.CA.10238.8331CFD5; Fri, 20 Dec 2019 09:18:00 +0900 (KST) Received: from localhost.localdomain (unknown [10.113.221.102]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20191220001800epsmtip15529ed17bdc843f3aeac8dfa45c0bece~h7Dpi_L0H2050220502epsmtip1z; Fri, 20 Dec 2019 00:18:00 +0000 (GMT) From: Chanwoo Choi <cw00.choi@samsung.com> To: robh+dt@kernel.org, krzk@kernel.org, heiko@sntech.de, leonard.crestez@nxp.com, lukasz.luba@arm.com Subject: [PATCH v2 08/11] PM / devfreq: rk3399_dmc: Replace the deprecated 'devfreq-events' property Date: Fri, 20 Dec 2019 09:24:27 +0900 Message-Id: <20191220002430.11995-9-cw00.choi@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191220002430.11995-1-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFJsWRmVeSWpSXmKPExsWy7bCmga6F8J9Yg02HNC3uz2tltLj+5Tmr xfwj51gt/j96zWrR//g1s8X58xvYLc42vWG3WHH3I6vFpsfXWC0u75rDZvG59wijxacH/5kt Zpzfx2SxsKmF3WLtkbvsFkuvX2SyuN24gs2ide8RdgchjzXz1jB6bFrVyeaxeUm9x8Z3O5g8 +rasYvTYfm0es8fnTXIB7FHZNhmpiSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJ uam2Si4+AbpumTlAbygplCXmlAKFAhKLi5X07WyK8ktLUhUy8otLbJVSC1JyCiwL9IoTc4tL 89L1kvNzrQwNDIxMgQoTsjM+LD3GXHCOo+LYjrusDYxz2LsYOTkkBEwk9vQ1MncxcnEICexg lGja9ZgVwvnEKNG+7TArSJWQwDdGiavthjAdC3/PZIMo2sso8eH/Iaj2L4wSPQ/mMIFUsQlo Sex/cYMNxBYRyJCY+foy2FhmgY9MEl3b7oIlhAXSJL7e3wtkc3CwCKhKTO83AgnzClhJ/Gyf xQqxTV5i9YYDzCA2p4C1xJZnD9lB5kgI/GeT+NK8mA2iyEWi69JXJghbWOLV8S1Qz0lJvOxv g7KrJVaePMIG0dzBKLFl/wWoDcYS+5dOZgI5gllAU2L9Ln2IsKLEzt9zGUFsZgE+iXdfe1hB SiQEeCU62oQgSpQlLj+4C7VWUmJxeyfUOR4Sfzf/YoIESh+jxLxVBxgnMMrNQtiwgJFxFaNY akFxbnpqsWGBIXKU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Tm8r N79/+ZmBw/fPyY3+Ddznti7ayr/YvtX52YXNu50KV84o6m9XbPrzm61PgeEaZ3qQ+HyXUvv9 v3YYXNJYXp6U8zRBra+yUomlOCPRUIu5qDgRAJNV9QR2AgAA X-CMS-MailID: 20191220001800epcas1p383927f73060e0e9aaad2fd9aaf881b6d X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20191220001800epcas1p383927f73060e0e9aaad2fd9aaf881b6d References: <20191220002430.11995-1-cw00.choi@samsung.com> <CGME20191220001800epcas1p383927f73060e0e9aaad2fd9aaf881b6d@epcas1p3.samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191219_161810_217575_61349C27 X-CRM114-Status: GOOD ( 13.90 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [203.254.224.33 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [203.254.224.33 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms <linux-rockchip.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-rockchip/> List-Post: <mailto:linux-rockchip@lists.infradead.org> List-Help: <mailto:linux-rockchip-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=subscribe> Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, a.swigon@samsung.com, linux-kernel@vger.kernel.org, cw00.choi@samsung.com, kyungmin.park@samsung.com, myungjoo.ham@samsung.com, kgene@kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" <linux-rockchip-bounces@lists.infradead.org> Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org |
Series |
[v2,01/11] PM / devfreq: Add devfreq_get_devfreq_by_node function
|
expand
|
diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers/devfreq/rk3399_dmc.c index e712c8662d2f..2294de13a3dc 100644 --- a/drivers/devfreq/rk3399_dmc.c +++ b/drivers/devfreq/rk3399_dmc.c @@ -306,11 +306,14 @@ static int of_get_ddr_timings(struct dram_timing *timing, static struct devfreq_event_dev *of_get_edev(struct device_node *np, int index) { - struct device_node *node = of_parse_phandle(np, "devfreq-events", + struct device_node *node = of_parse_phandle(np, "rockchip,dfi-device", index); - if (!node) - return ERR_PTR(-ENODEV); + if (!node) { + node = of_parse_phandle(np, "devfreq-events", index); + if (!node) + return ERR_PTR(-ENODEV); + } return devfreq_event_get_edev_by_node(node); }
Replace the deprecated 'devfreq-events' property with 'rockchip,dfi-device' property. But, to guarantee the backward-compatibility, keep the support of 'devfreq-events' property. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> --- drivers/devfreq/rk3399_dmc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)