Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp289704imm; Tue, 3 Jul 2018 19:25:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe7CwlxavnSpckHYmlFySiUpZr0+fqcoxYX9O7lwDrijuLjU+EXV+V6JxjeSecCDtz0lRT6 X-Received: by 2002:a17:902:4203:: with SMTP id g3-v6mr151613pld.315.1530671147487; Tue, 03 Jul 2018 19:25:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530671147; cv=none; d=google.com; s=arc-20160816; b=qzFFywgrJphLEgxMgKe240olzAjgjgOagSNiv4ITw30h80LC0oBUWm/hdhWEkcz5Gv YpRs1C5OKQH6AbS/MIFoHr/KtbutZ5odWfP76kbP8IBxI9s41b340ho9GC8Lyoa32ChZ 1pihM/PmHqWxTmJJS6CBwNAdGL5dvpTfyPzX6wIKq0RlMnIdfwRhS+afhbaUvteHATwR wbbYNz+FOQJKX+cqypT1gUi4vhfv06wPJM37pfvJWndtcg+kEN4oFV4NzQsOqJ8pV/Vh fTAMbGzw/RO9p8VYr3CiJezeLtZQr6odukuuu76y/Y9tvdEUIuEMgg4QiFGGzq8JQDRq LMFQ== 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:from :reply-to:subject:mime-version:to:dkim-signature:dkim-filter :arc-authentication-results; bh=F7sHlurQLVuZ8u9+JCpT7c2pqM08siB2L28Nq9vpW4I=; b=DyMg21PLFLG1GR5AR1PPMVyyP/dmseoVIvv/AeqFMoscRdIlTdoFVDqq1ZwXFsQojD BTg7lcNIZapxiSvTdREsdAwj18cEO7utk3ri2SKwzqlWdrznSIsLH/E/l+8N+MZMMQ3D sgUtIW2WUYrg/IiNblgDpHPPJ8iO0VP95MmM1pSg53ic5sgBR2z6BQ8qUkmiQ7U9M30W JP3OH+tVDvbUOrJ86ACP9D1UgwwQIcuKDhrRsV0OEiVt0nOAnahuVmOKBN0IUzUyoTe3 NZw4dNyv/SGMTHr9sF3UMrJ7z2heZ1ZmAFWSm/dPgaaKr4cHB0o7MI+igrF2NPo8UbiO Qk7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="RDd/JM42"; 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 r14-v6si2304164pgl.490.2018.07.03.19.25.32; Tue, 03 Jul 2018 19:25:47 -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="RDd/JM42"; 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 S933026AbeGDCYJ (ORCPT + 99 others); Tue, 3 Jul 2018 22:24:09 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:62686 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932853AbeGDCYI (ORCPT ); Tue, 3 Jul 2018 22:24:08 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20180704022404epoutp02d2e5cb560ea8b20ea79751aa414bf135~_CTSJ8ARy1261312613epoutp02c for ; Wed, 4 Jul 2018 02:24:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20180704022404epoutp02d2e5cb560ea8b20ea79751aa414bf135~_CTSJ8ARy1261312613epoutp02c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1530671044; bh=F7sHlurQLVuZ8u9+JCpT7c2pqM08siB2L28Nq9vpW4I=; h=To:Subject:Reply-To:From:CC:In-Reply-To:Date:References:From; b=RDd/JM42NCf8mKXROQ7UHyzKwm82vyYyN2PXQvByiYvv8HQiVPzdtHyM1GhPFNqVh aeeyGSCoDvcrqAfa6yT6S1xuVGLlLM0yTFg3WKzj38qsAHO9rf4zQgSchLXAgY0jGg lseKaHnJHZUZGAnFrbLKa7Wkjf2FkfVLrU1+1BE0= Received: from epsmges1p2.samsung.com (unknown [182.195.40.156]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20180704022401epcas1p3834d64776cadd95a6bee662e78c68eb5~_CTPsTlw80191001910epcas1p3Z; Wed, 4 Jul 2018 02:24:01 +0000 (GMT) X-AuditID: b6c32a36-bd1ff70000000fe4-ef-5b3c2fc13738 Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id F0.38.04068.1CF2C3B5; Wed, 4 Jul 2018 11:24:01 +0900 (KST) To: undisclosed-recipients:; Mime-Version: 1.0 Subject: RE: [PATCH v5 01/12] PM / devfreq: Init user limits from OPP limits, not viceversa Reply-To: myungjoo.ham@samsung.com From: MyungJoo Ham CC: Kyungmin Park , Chanwoo Choi , Arnd Bergmann , Greg Kroah-Hartman , Rob Herring , Mark Rutland , "linux-pm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Brian Norris , Douglas Anderson , Enric Balletbo i Serra , "Rafael J . Wysocki" , Viresh Kumar , Lee Jones , Benson Leung , Olof Johansson , Matthias Kaehlcke X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <20180703234705.227473-2-mka@chromium.org> X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20180704022401epcms1p5859d1d7af6340deb531071faadc8f237@epcms1p5> Date: Wed, 04 Jul 2018 11:24:01 +0900 X-CMS-MailID: 20180704022401epcms1p5859d1d7af6340deb531071faadc8f237 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-CPGSPASS: Y X-CPGSPASS: Y CMS-TYPE: 101P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOJsWRmVeSWpSXmKPExsWy7bCmru5BfZtogw1XzS3+TjrGbjH9yWUW i00f37NavDykaXH9y3NWi/lHzrFanF12kM1ize1DjBbNi9ezWZxtesNucf/rUUaLy7vmsFl8 7j3CaLH0+kUmi88bHjNanLr+mc3izOlLrBate4+wW2z86uEg7LFm3hpGj9+/JjF6zG64yOKx 4+4SRo9NqzrZPO5c28PmsX/uGnaPKyeaWD22XG1n8ejbsorR4/MmuQDuqFSbjNTElNQihdS8 5PyUzLx0WyXv4HjneFMzA0NdQ0sLcyWFvMTcVFslF58AXbfMHKD3lBTKEnNKgUIBicXFSvp2 NkX5pSWpChn5xSW2StGGhkZ6hgbmekZGQNo41srIFKgkITVj9bm3jAWfuCpeXn/M1MA4hbOL kZNDQsBE4sHLS2xdjFwcQgI7GCUWXrzKApIQEZCRmDv7MWsXIwcHr4CgxN8dwiBhYYFYiXXn elhBbCEBJYmGm/uYIeL6Eh0PtjGC2GwCuhJbN9xlAZnJLDCLTaJzdg8zxDJeiRntT1kgbGmJ 7cu3gjVwCphLrN0wgRUiLipxc/Vbdhj7/bH5jBC2iETrvbNQcwQlHvzcDRWXknjydiFUfb3E 9c+LmEAWSwhMYJT4feM/VEJf4tGV2WwgNq+Ar0TXk0tMIDaLgKrE82mtbBA1LhKP1t4EW8As IC+x/e0cZpDnmQU0Jdbv0oe5v2Hjb3Z0NrMAn8S7rz2sMPEd854wQdhqEod2L4Gql5E4PX0h 1P0eElsWdzFNYFSchQjeWUgWz0JYvICReRWjWGpBcW56arFhgZFecWJucWleul5yfu4mRnAi 1zLbwbjonM8hRgEORiUe3hWl1tFCrIllxZW5hxglOJiVRHjv/QIK8aYkVlalFuXHF5XmpBYf YjQF+n8is5Rocj4wy+SVxBuaGhkbG1uYGJqZGhoqifNW3BSIFhJITyxJzU5NLUgtgulj4uCU amDsulrWeTJUYB+ne/8yu3Xfn6QXc1cW7639/3LalOpueZbj03+nbV0gerpfY9qWzR9OyBU6 TYss356T9ohD7nqt6XNO8Rklx5X5xXN/B+4q9rcJZxJrM8nJlPC00xM+vD411qAr5FjH3XqV 1BWXNs70qNf4dkkyTbriyxrH0OvMerUq716uuKnEUpyRaKjFXFScCAALkASV+gMAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20180703234727epcas3p1b9f4a41b1f1714c8c059100d46b816dd References: <20180703234705.227473-2-mka@chromium.org> <20180703234705.227473-1-mka@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >Commit ab8f58ad72c4 ("PM / devfreq: Set min/max_freq when adding >the devfreq device") introduced the initialization of the user >limits min/max_freq from the lowest/highest available OPPs. Later >commit f1d981eaecf8 ("PM / devfreq: Use the available min/max >frequency") added scaling_min/max_freq, which actually represent >the frequencies of the lowest/highest available OPP. scaling_min/ >max_freq are initialized with the values from min/max_freq, which >is totally correct in the context, but a bit awkward to read. > >Swap the initialization and assign scaling_min/max_freq with the >OPP freqs and then the user limts min/max_freq with scaling_min/ >max_freq. > >Needless to say that this change is a NOP, intended to improve >readability. > >Signed-off-by: Matthias Kaehlcke >Reviewed-by: Chanwoo Choi >Reviewed-by: Brian Norris >--- >Changes in v5: >- none > >Changes in v4: >- added 'Reviewed-by: Brian Norris ' tag > >Changes in v3: >- none > >Changes in v2: >- added 'Reviewed-by: Chanwoo Choi ' tag >--- > drivers/devfreq/devfreq.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) Acked-by: MyungJoo Ham This can be applied independently from other commits in this series.