From patchwork Mon Apr 29 13:24:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 16503 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E54E625E08 for ; Mon, 29 Apr 2013 13:25:35 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id hr11sf7304491vcb.6 for ; Mon, 29 Apr 2013 06:25:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references:x-gm-message-state :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe; bh=mEcyHRN6IGnUB0Fbzbs3lKAJuoZZPhksIWmIpONE7/U=; b=cnZFuoaNo81BsB4SFduhmp0HnBi2mT+RcTsX1uAe9i6wrAZFNaVnPWc/pz8hkBbS3O Ry1fBs34yo/FHb6oKODte3oACqyKyrzleFuVEhAZWe5SykFwZSNyp/Ilgi2RcQhaNfq4 NpbslyeJVbs2ty77GWPG183qDhEV2YwFkDbKMz0IQDicMsZuSVwVOlukQtMbVp6H3V10 ZTb08lxQmcVBHNGQzqzkcfjjXwuiznRRc6vsKYGKBEenyq4XvckcYIM73lIkf4O1vrky 71ls5EpG716lfo+jV/b2oDbD7adRC8t0og0xCVs0SMUrkVU8EfnjF92JjwkyK1rKssDq 0Cjw== X-Received: by 10.236.41.137 with SMTP id h9mr23604631yhb.43.1367241935362; Mon, 29 Apr 2013 06:25:35 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.47.78 with SMTP id b14ls2715737qen.4.gmail; Mon, 29 Apr 2013 06:25:35 -0700 (PDT) X-Received: by 10.220.223.202 with SMTP id il10mr33526745vcb.4.1367241935180; Mon, 29 Apr 2013 06:25:35 -0700 (PDT) Received: from mail-vb0-x232.google.com (mail-vb0-x232.google.com [2607:f8b0:400c:c02::232]) by mx.google.com with ESMTPS id b4si9791970vdw.70.2013.04.29.06.25.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Apr 2013 06:25:35 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::232 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::232; Received: by mail-vb0-f50.google.com with SMTP id w15so379408vbb.23 for ; Mon, 29 Apr 2013 06:25:35 -0700 (PDT) X-Received: by 10.52.71.4 with SMTP id q4mr28100102vdu.8.1367241935045; Mon, 29 Apr 2013 06:25:35 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp57474veb; Mon, 29 Apr 2013 06:25:34 -0700 (PDT) X-Received: by 10.68.170.228 with SMTP id ap4mr69929580pbc.209.1367241934175; Mon, 29 Apr 2013 06:25:34 -0700 (PDT) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by mx.google.com with ESMTPS id wu3si16937730pbc.220.2013.04.29.06.25.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Apr 2013 06:25:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.181 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.181; Received: by mail-pd0-f181.google.com with SMTP id q10so1260885pdj.26 for ; Mon, 29 Apr 2013 06:25:33 -0700 (PDT) X-Received: by 10.66.233.167 with SMTP id tx7mr42242316pac.110.1367241933794; Mon, 29 Apr 2013 06:25:33 -0700 (PDT) Received: from localhost ([122.172.192.131]) by mx.google.com with ESMTPSA id wl5sm25913294pac.18.2013.04.29.06.25.28 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 29 Apr 2013 06:25:33 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, robin.randhawa@arm.com, Steve.Bannister@arm.com, Liviu.Dudau@arm.com, charles.garcia-tobin@arm.com, arvind.chauhan@arm.com, linux-arm-kernel@lists.infradead.org, Viresh Kumar Subject: [PATCH 3/5] cpufreq: ARM big LITTLE DT: Return CPUFREQ_ETERNAL if clock-latency isn't found Date: Mon, 29 Apr 2013 18:54:46 +0530 Message-Id: <7103baee30f84c26eb6080e407a9f91d219a54c0.1367241503.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQkERl3+3+7ZzdjIgeZoGKKMH1pqfe76QGXsQxRcXNoc/lGXHEmFjdwLOlFEA39I57/Un9qk X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::232 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , If "/cpus" node isn't found or "clock-latency" isn't defined we are returning error currently. Lets return CPUFREQ_ETERNAL instead, so that we don't fail. Flag appropriate messages to user in such cases. Signed-off-by: Viresh Kumar --- drivers/cpufreq/arm_big_little_dt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/arm_big_little_dt.c b/drivers/cpufreq/arm_big_little_dt.c index d5ae4d2..173ed05 100644 --- a/drivers/cpufreq/arm_big_little_dt.c +++ b/drivers/cpufreq/arm_big_little_dt.c @@ -66,8 +66,8 @@ static int dt_get_transition_latency(struct device *cpu_dev) parent = of_find_node_by_path("/cpus"); if (!parent) { - pr_err("failed to find OF /cpus\n"); - return -ENOENT; + pr_info("Failed to find OF /cpus. Use CPUFREQ_ETERNAL transition latency\n"); + return CPUFREQ_ETERNAL; } for_each_child_of_node(parent, np) { @@ -81,7 +81,8 @@ static int dt_get_transition_latency(struct device *cpu_dev) return transition_latency; } - return -ENODEV; + pr_info("clock-latency isn't found, use CPUFREQ_ETERNAL transition latency\n"); + return CPUFREQ_ETERNAL; } static struct cpufreq_arm_bL_ops dt_bL_ops = {