From patchwork Mon Nov 7 06:33:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: huang lin X-Patchwork-Id: 9414303 Return-Path: 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 A4FF96022E for ; Mon, 7 Nov 2016 06:36:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98B9F28BB0 for ; Mon, 7 Nov 2016 06:36:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D57328CE6; Mon, 7 Nov 2016 06:36:23 +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=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5A16528BB0 for ; Mon, 7 Nov 2016 06:36:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c3dVs-0000Xk-0a; Mon, 07 Nov 2016 06:34:36 +0000 Received: from mail-pf0-f193.google.com ([209.85.192.193]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c3dVW-0000Oi-5z; Mon, 07 Nov 2016 06:34:15 +0000 Received: by mail-pf0-f193.google.com with SMTP id y68so15286809pfb.1; Sun, 06 Nov 2016 22:33:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=unimu1CJ0lBeT2Z+zopYpM0fNDfJqLuXJb153RUxato=; b=QVD0LqzpGPvzyRJeNJ3gmjXSfgrRzRo8CC6+3leJVhUEKS8uOaLzieKVifpEivfhs/ 637llfEekTHit/aN0ZvNgV2yJbM7zljJxpjbTNP1nNnAyJvIYDVDNcmmanj7tYmFwgKD youQUl0GQY8IQBHvpIrkgYWiLqPdbSpCfUYwPN/06xInmduX3wHiPEqTiDDqmAgC9W8j Rxa3koyJjcBfdL1Xr12f0tQ/iuaZL5iVLhXcDjjT6uBYP/hEp3wIxuEnC9kZdfZlHar8 3CNa8fM9zvy8VJHVHqdicprxqSBOhF79GIXQ30HBkUQZRqEWKgtliakchsX4BWHppT4D v1AA== X-Gm-Message-State: ABUngvfYg/4Zf0wZDtcNp+JMNPTXRQIYbUfgdwoodBFe0LgpW+LhIQpj4a6MZkac+fKk4g== X-Received: by 10.98.75.157 with SMTP id d29mr10657253pfj.14.1478500435352; Sun, 06 Nov 2016 22:33:55 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id k89sm37070811pfg.6.2016.11.06.22.33.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Nov 2016 22:33:54 -0800 (PST) From: Lin Huang To: myungjoo.ham@samsung.com Subject: [RESEND PATCH v3 2/2] PM/devfreq: rk3399: get devfreq suspend frequency Date: Mon, 7 Nov 2016 14:33:40 +0800 Message-Id: <1478500420-22045-3-git-send-email-hl@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1478500420-22045-1-git-send-email-hl@rock-chips.com> References: <1478500420-22045-1-git-send-email-hl@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161106_223414_385178_009ED634 X-CRM114-Status: UNSURE ( 8.27 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lin Huang , linux-pm@vger.kernel.org, dbasehore@chromium.org, dianders@chromium.org, linux-kernel@vger.kernel.org, cw00.choi@samsung.com, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP We need ddr run a specific frequency when ddr dvfs stop working. For example: if we enable two monitor, then we will stop ddr dvfs, but we hope ddr can run in highest frequency obviously. Signed-off-by: Lin Huang --- Changes in v2: - None Changes in v3: - None drivers/devfreq/rk3399_dmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers/devfreq/rk3399_dmc.c index 5a2da95..39f8e27 100644 --- a/drivers/devfreq/rk3399_dmc.c +++ b/drivers/devfreq/rk3399_dmc.c @@ -329,7 +329,7 @@ static int rk3399_dmcfreq_probe(struct platform_device *pdev) if (IS_ERR(data->devfreq)) return PTR_ERR(data->devfreq); devm_devfreq_register_opp_notifier(dev, data->devfreq); - + devfreq_opp_get_suspend_opp(dev, data->devfreq); data->dev = dev; platform_set_drvdata(pdev, data); pd_register_notify_to_dmc(data->devfreq);