Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1052006yba; Sun, 31 Mar 2019 21:19:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqw70/8p7BDXy0glxlxiQeaP0U94ww8XUxMUyhog8UjILnWGoXjFbOTvl1gFUQaxSTL8F92k X-Received: by 2002:a17:902:e382:: with SMTP id ch2mr37166418plb.94.1554092384891; Sun, 31 Mar 2019 21:19:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554092384; cv=none; d=google.com; s=arc-20160816; b=wT9Ok64hkAN4cQQyeiQxRoeT8bm050lGS6iXGrXrVndidZe5o6VsfRnyezkKB/l5jo 5Ec0Du749+yHD9jp9ki7xb0HXDYd1IK4f9T0oMKhzzYCf60NQwBJzqTVoKYZtudtiWJY TnjamELv//mB1+gWtlB2/acKXitBhkAVtd+cPGM2AioVBcqfjZh+qszEuUisZuU/Q84H ULi5m0M5G/ND31vKgoGv/6XeAY5y+clJhXLvHKwPcRd10XvYWhHninQxY5PosHWzMUQg 5MN+eiGZhODmBLbtq/ORpb4s+eTUMdZyE3MZgjG8QbajKHb791urMfqa03wJhFC6W5gW amHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:in-reply-to:cc:to:from :reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=98Tzj5VCFikTMgQSGuOBJI5ob8mqGz7TuhquX0sOYqE=; b=nP/SI79PwDeTNn6fXdbK2/vebzUWHP8yBXlqgnkQp7awH3CzqXnClkXLtxfO14/Luy g/DjpA/k53tuIsOQnREkhCOOni1rxY4F58eFsQcFtNiSsSBdqUhALQPiCNogIK0yLuYh gotmjBbRTDS5dRntGF1LoOV7T2jmqZfAMS9K5P/Jx3kdLsoRhrOwlVibi0b2j4zAbHLF yzjIKEhlYx/BFgYVrKV0Gn4ZEEjTqMLC55lEbk8BrAgpi9w5j+lc4NQucwBvmM5SVXl2 b5d/bfmo5BBhUjdp7w0ZX+bbIC0RYEsETLBmEC/13TIzy7t72TSuDrblse7fpbsrVA3t 0mUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=rY+N6Gg9; 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 s71si8050078pgs.561.2019.03.31.21.19.28; Sun, 31 Mar 2019 21:19:44 -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=rY+N6Gg9; 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 S1726451AbfDAESw (ORCPT + 99 others); Mon, 1 Apr 2019 00:18:52 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:35496 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725926AbfDAESv (ORCPT ); Mon, 1 Apr 2019 00:18:51 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20190401041848epoutp032e39be1c8fd807afac2704a449aa73d6~RPr0bgTVv0726707267epoutp03k for ; Mon, 1 Apr 2019 04:18:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20190401041848epoutp032e39be1c8fd807afac2704a449aa73d6~RPr0bgTVv0726707267epoutp03k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1554092328; bh=98Tzj5VCFikTMgQSGuOBJI5ob8mqGz7TuhquX0sOYqE=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=rY+N6Gg9Ccvt1ol/4ynukwV5oJK+UXOLc4HxtKZqVv7mYoWMBQkz1uZz3E65ODZ9u BG47oVNkKais4YJJGS7u1QoJwhfWbcas+abWJz8P5U6a1/STWGy+f9Y/KcKMDKQn0F 2eFOLvkbwIDPJke+0jfe/CgALiXw8yv/1uFtTHps= Received: from epsmges1p3.samsung.com (unknown [182.195.40.156]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20190401041843epcas1p27d3ac46c5e195227f2d1bb58ea952df9~RPrwXPQqT0253202532epcas1p2n; Mon, 1 Apr 2019 04:18:43 +0000 (GMT) X-AuditID: b6c32a37-f19ff7000000102f-c3-5ca19123ec77 Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id AF.D5.04143.32191AC5; Mon, 1 Apr 2019 13:18:43 +0900 (KST) Mime-Version: 1.0 Subject: RE: [PATCH v2 4/4] devfreq: add mediatek cci devfreq Reply-To: myungjoo.ham@samsung.com From: MyungJoo Ham To: Kyungmin Park , Chanwoo Choi , Rob Herring , Mark Rutland , Matthias Brugger , "Rafael J. Wysocki" , Viresh Kumar CC: "linux-pm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-mediatek@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "srv_heupstream@mediatek.com" , "fan.chen@mediatek.com" , "Andrew-sh.Cheng" X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <1553841972-19737-5-git-send-email-andrew-sh.cheng@mediatek.com> X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20190401041843epcms1p10a664023cf0556e42afe118a1d84daad@epcms1p1> Date: Mon, 01 Apr 2019 13:18:43 +0900 X-CMS-MailID: 20190401041843epcms1p10a664023cf0556e42afe118a1d84daad Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-CPGSPASS: Y X-CPGSPASS: Y CMS-TYPE: 101P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHJsWRmVeSWpSXmKPExsWy7bCmnq7yxIUxBvuuWVpsX/+C1eLlIU2L 61+es1rMP3KO1eLbnd9MFmeb3rBbbHp8jdXi8q45bBaXmy8yWnzuPcJosfT6RSaLphZjizOn L7FatO49wm4x/a6QxcavHg4CHmvmrWH02DnrLrvHplWdbB53ru1h89i8pN6j5eR+Fo8tV9tZ PPq2rGL0+LxJLoAzKtsmIzUxJbVIITUvOT8lMy/dVsk7ON453tTMwFDX0NLCXEkhLzE31VbJ xSdA1y0zB+gFJYWyxJxSoFBAYnGxkr6dTVF+aUmqQkZ+cYmtUmpBSk6BZYFecWJucWleul5y fq6VoYGBkSlQYUJ2xsb7FQXzOSpm/HjD1MB4ga2LkYNDQsBE4u0X0y5GLg4hgR2MEuu3bmcG ifMKCEr83SEMYgoL2Eo8mFvSxcgJVKIk0XBzHzOILSygL9HxYBsjiM0moCuxdcNdFpAxIgJz mCROHFoB5jAL/GaWaP9ygB2kSkKAV2JG+1MWCFtaYvvyrWDdnAK+EttnfWGCiItK3Fz9lh3G fn9sPiOELSLReu8sM4QtKPHg525GmDkzpvyHmlktcW36YnaQxRICLYwSvaunQBXpS5yZe5IN xOYFWjZtzXUWkM9YBFQlFjdYQZS4SCzd9QxsPrOAvMT2t3PA4cAsoCmxfpc+zPkNG3+zo7OZ Bfgk3n3tYYWJ75j3BOoVNYlDu5dA1ctInJ6+EOp8D4krb76xTGBUnIUI6VlIFs9CWLyAkXkV o1hqQXFuemqxYYExctRuYgSnZS3zHYwbzvkcYhTgYFTi4VVgWBgjxJpYVlyZe4hRgoNZSYT3 TP+CGCHelMTKqtSi/Pii0pzU4kOMpkDvT2SWEk3OB+aMvJJ4Q1MjY2NjCxNDM1NDQyVx3vUO zjFCAumJJanZqakFqUUwfUwcnFINjGVXxZ5yW2r8dr2X3y9pvuuZvURv50R17xnFL5pfGya+ ffYkQsbxpT83v8B9pbqMqvUzrl2wjJ/KHCS+ma3myLfTgnzf7nLMZNQ8b+37P2vhpO9P5VWU VvF/+7JqJvsbrwruSakPNLkY7mpsl2M9N+WxS+txgfXLpNdl6sqw7kjUmnD4r+zuxUosxRmJ hlrMRcWJAPk2vezhAwAA DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190329064636epcas1p13633ae078ef83ceda0b8189df1399753 References: <1553841972-19737-5-git-send-email-andrew-sh.cheng@mediatek.com> <1553841972-19737-1-git-send-email-andrew-sh.cheng@mediatek.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >This adds a devfreq driver for the Cache Coherent Interconnect (CCI) >of the Mediatek MT8183. > >On the MT8183 the CCI is supplied by the same regulator as the LITTLE >cores. The driver is notified when the regulator voltage changes >(driven by cpufreq) and adjusts the CCI frequency to the maximum >possible value. > >Signed-off-by: Andrew-sh.Cheng >--- > drivers/devfreq/Kconfig | 10 ++ > drivers/devfreq/Makefile | 1 + > drivers/devfreq/mt8183-cci-devfreq.c | 235 +++++++++++++++++++++++++++++++++++ > 3 files changed, 246 insertions(+) > create mode 100644 drivers/devfreq/mt8183-cci-devfreq.c > 1. It appears that proc_reg_uV might be used before initialization. It would be appropriate to initialize it at the probe function. 2. Because you are already using OPP, why don't you rely on OPP fully? (use OPP from CPUFreq drivers as well in order to get OPP events automatically.) Anyway, this is a minor item that does not need to be corrected. Cheers MyungJoo