Message ID | 576B390A.3050905@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9BBB46075F for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 23 Jun 2016 08:15:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89D4C1FFC9 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 23 Jun 2016 08:15:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79A7F2842D; Thu, 23 Jun 2016 08:15:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C38D91FFC9 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 23 Jun 2016 08:15:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 42CBF6E8B9; Thu, 23 Jun 2016 08:15:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTPS id BCCAB6E885 for <dri-devel@lists.freedesktop.org>; Thu, 23 Jun 2016 01:19:11 +0000 (UTC) MIME-version: 1.0 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O97002BNABV87D0@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 23 Jun 2016 10:19:07 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.113]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 35.A7.05161.B093B675; Thu, 23 Jun 2016 10:19:07 +0900 (KST) X-AuditID: cbfee68f-f79476d000001429-f7-576b390b046d Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 8E.BE.04429.B093B675; Wed, 22 Jun 2016 18:19:07 -0700 (MST) Received: from [10.113.62.212] by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O9700H18ABUMP70@mmp2.samsung.com>; Thu, 23 Jun 2016 10:19:07 +0900 (KST) Message-id: <576B390A.3050905@samsung.com> Date: Thu, 23 Jun 2016 10:19:06 +0900 From: Chanwoo Choi <cw00.choi@samsung.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 To: hl <hl@rock-chips.com>, heiko@sntech.de, mark.yao@rock-chips.com, myungjoo.ham@samsung.com Subject: Re: [RFC PATCH v2 6/6] drm/rockchip: Add dmc notifier in vop driver References: <1465207986-17888-1-git-send-email-hl@rock-chips.com> <CGME20160606101348epcas1p468b2019b1d69887a154b60c3afa2edce@epcas1p4.samsung.com> <1465207986-17888-7-git-send-email-hl@rock-chips.com> <576A3A38.3000306@samsung.com> <576A83A0.3080908@rock-chips.com> In-reply-to: <576A83A0.3080908@rock-chips.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDIsWRmVeSWpSXmKPExsWyRsSkUJfbMjvcYMpnRYvecyeZLF5t3sNm cXbZQTaLK1/fs1n8f/Sa1eLHhlPMFmeb3rBbbHp8jdXiY889VovLu+awWXx68J/ZYseUA0wW F0+5WtxuXMFm8eNMN4sDv8f7G63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bmSQl5i bqqtkotPgK5bZg7QG0oKZYk5pUChgMTiYiV9O0wTQkPcdC1gGiN0fUOC4HqMDNBAwhrGjN0n 1rEWNOhXXNs7h7WB8YhqFyMnh4SAicSWKVdYIWwxiQv31rOB2EICsxglPrWB2bwCghI/Jt9j 6WLk4GAWkJc4cikbwlSXmDIlt4uRC6j6AaPEqRvnocq1JM5tWgk2kkVAVeLhqmYWEJsNKL7/ xQ02kF5RgQiJ7hOVIGERgQSJqf3fwcqZBXYySXz+Kw9iCwv4SHy4+Z8ZYv4EJonFE+YzgfRy CuhJHFxiOYER6ESE42YhHDcL4bgFjMyrGCVSC5ILipPSc43yUsv1ihNzi0vz0vWS83M3MYLT yTPpHYyHd7kfYhTgYFTi4T0gnB0uxJpYVlyZe4hRgoNZSYR3pTlQiDclsbIqtSg/vqg0J7X4 EKMp0HcTmaVEk/OBqS6vJN7Q2MTMyNLI3NDCyNhcSZz38f91YUIC6YklqdmpqQWpRTB9TByc Ug2MVctDHtiUaof133rMnNFltszOzTCaZ+3Kc4Xv3qtd+6zxda1vwRX7onMe/jUZzu8XLDHc HVfV4H1Ns3CvnkyqZr9L4zVvh+NGG9zOm07SfRWZ9y0sYP5jsdgKzeeHL0kcXLW88RbDum3T 5v79+fbkroDbzpvF5WKezWa6yPPm8Y8F7pE7Pm2er8RSnJFoqMVcVJwIAH+fT/w9AwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Mailman-Approved-At: Thu, 23 Jun 2016 08:15:36 +0000 Cc: mturquette@baylibre.com, dbasehore@chromium.org, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, dianders@chromium.org, linux-rockchip@lists.infradead.org, kyungmin.park@samsung.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 1d6c803804d5..2bd9d4228b7b 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -268,8 +268,10 @@ int update_devfreq(struct devfreq *devfreq) devfreq_notify_transition(devfreq, &freqs, DEVFREQ_PRECHANGE); err = devfreq->profile->target(devfreq->dev.parent, &freq, flags); - if (err) + if (err) { + freqs.new = cur_freq; + devfreq_notify_transition(devfreq, &freqs, DEVFREQ_POSTCHANGE); return err; + } freqs.new = freq; devfreq_notify_transition(devfreq, &freqs, DEVFREQ_POSTCHANGE);