From patchwork Thu Jan 21 07:52:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 8079101 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2E2AFBEEE5 for ; Thu, 21 Jan 2016 07:53:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 46388205E5 for ; Thu, 21 Jan 2016 07:53:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 72070205CD for ; Thu, 21 Jan 2016 07:53:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752390AbcAUHxh (ORCPT ); Thu, 21 Jan 2016 02:53:37 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:37409 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492AbcAUHxf (ORCPT ); Thu, 21 Jan 2016 02:53:35 -0500 Received: by mail-wm0-f41.google.com with SMTP id n5so66443309wmn.0; Wed, 20 Jan 2016 23:53:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=ahFeysS2ExC7TuEBbfwVpHv9mJ4xc7rINvWPR6Htxus=; b=DL2WxXHAeDTxo0YOYrNpZW1iNQCh7a9v3S+Be+Ja2Za/r5EJzUekzQG6gMij2UEKqO MM9HLY2FgV6OJcmT3QyMEwWu2G64OP53vnwZbgrFZJm/4d6NPuVTFiy82nRANooHBNtK SX78Cn886l8SgwQ8TdT+cmiX3wvPer4xARlLFiDHZjl7KLBXlpFpLkdsDeJoDPl84eFN EV7uxnn8P6PeiRAMc5Q6j60SlfMMAEJCe4cMGsTiTkBrHjMwsOYoVK7bzUdefHDqa95r 7me8Zt91cAhXh+Obu0eygFABRKnLLGOkAzepPZVp8FOnLEQha/J7E87Fge0I18f41bwq Infg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=ahFeysS2ExC7TuEBbfwVpHv9mJ4xc7rINvWPR6Htxus=; b=Ynuoe6QSayX6/Xpl6ZyloV60hGKHED940yZ9GYGSsvNvmqWhpi7G8dcpwvh0QZMLGE pWdFIhsWa2gbAsEhMfk85290KECN220i6qVlYfGrrnwkqdpQaXqEAzm5JRdSAXKQ5TxJ oOKApWenzbHV5FqcshrZxCqHWUePGChfYvospFO8UQY3gCRqItlbJ7eNQNkCnZF1fj8J kxW1n09CbafpZ4e+S3+Ad0oskzv1pobHgYV9R8E0b7T7KbZ6dtyo0YVCij/eoosKnNj8 tFr8jEQW91RL1R1NXSFv6SCG6qrJeYf1JmRLDcVqHeqSZTYZdNFkvcm4odMGR+nine0S Q9HQ== X-Gm-Message-State: AG10YOQP25IRsmud2ZDN/Z2Z+Gx+iUIQ+31tInwBp/Hbq84COqG/QOr1hFfe9AO9Sds34w== X-Received: by 10.194.134.105 with SMTP id pj9mr3595145wjb.10.1453362814343; Wed, 20 Jan 2016 23:53:34 -0800 (PST) Received: from cizrna.lan ([109.72.12.154]) by smtp.gmail.com with ESMTPSA id u12sm28435735wmu.10.2016.01.20.23.53.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jan 2016 23:53:33 -0800 (PST) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Cc: Tyler Baker , Tomeu Vizoso , MyungJoo Ham , Kyungmin Park , Stephen Warren , Thierry Reding , Alexandre Courbot , linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH] PM / devfreq: tegra: Set freq in rate callback Date: Thu, 21 Jan 2016 08:52:26 +0100 Message-Id: <1453362746-9310-1-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.5.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP As per the documentation of the devfreq_dev_profile.target callback, set the freq argument to the new frequency before returning. This caused endless messages like this after recent changes in the core: devfreq 6000c800.actmon: Couldn't update frequency transition information. Signed-off-by: Tomeu Vizoso Reported-by: Tyler Baker Tested-by: Thierry Reding Acked-by: Thierry Reding --- drivers/devfreq/tegra-devfreq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/devfreq/tegra-devfreq.c b/drivers/devfreq/tegra-devfreq.c index 848b93ee930f..fe9dce0245bf 100644 --- a/drivers/devfreq/tegra-devfreq.c +++ b/drivers/devfreq/tegra-devfreq.c @@ -500,6 +500,8 @@ static int tegra_devfreq_target(struct device *dev, unsigned long *freq, clk_set_min_rate(tegra->emc_clock, rate); clk_set_rate(tegra->emc_clock, 0); + *freq = rate; + return 0; }