From patchwork Mon May 5 08:27:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 4112451 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7E80F9F334 for ; Mon, 5 May 2014 08:28:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8C01220398 for ; Mon, 5 May 2014 08:28:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A77A7203F4 for ; Mon, 5 May 2014 08:28:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755182AbaEEI2B (ORCPT ); Mon, 5 May 2014 04:28:01 -0400 Received: from mail-ie0-f176.google.com ([209.85.223.176]:43580 "EHLO mail-ie0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755135AbaEEI1z (ORCPT ); Mon, 5 May 2014 04:27:55 -0400 Received: by mail-ie0-f176.google.com with SMTP id rd18so7504234iec.7 for ; Mon, 05 May 2014 01:27:55 -0700 (PDT) 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=zpjLIX5DFmC7t9a8cC0q8z5ay/R36FfbuLd+D9aJQ0Y=; b=D1P+Oy5pyL8AoG9IjJvfy4iQ8Pjpk70jiwSjtxTRPPzHlsM4q6X2d/Jzw8oLKBvr0s 8MZsmLo73/Ny73quyYK1cES7Y2WNjdPcEryZzYuAM+1HvoizVlj2mlO2/p2AaBLpPfXW gE1e+uoepzDnh70CXly1PML27FvKjD8MYIO/3sI86wJIOFvfqMSSzYSypxeQzXBF6ybv 8bYQIofc4lg9d3nWRXFnLNEsdawEppH1yfB+vDVutpdVqgnq4bXcdOoo6t3UtCxiVW0a 0MCf4vEoXlv2cnsfNFdQ8jAKroOG5EbaTfDk9v4Oj7ssyBdjPaHXE2bf+8aiTvMI6nmK R+4g== X-Gm-Message-State: ALoCoQkh24ujC6s9ih9mj7xhjFY9VUpkfjx+i/PSzamA5BpKJ7QmqXStVClUtcfMJcqnv98rSiXv X-Received: by 10.42.92.82 with SMTP id s18mr1386151icm.64.1399278475532; Mon, 05 May 2014 01:27:55 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id d10sm25050399igc.8.2014.05.05.01.27.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 May 2014 01:27:55 -0700 (PDT) From: Chander Kashyap To: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: lorenzo.pieralisi@arm.com, daniel.lezcano@linaro.org, rjw@rjwysocki.net, kgene.kim@samsung.com, Chander Kashyap , Chander Kashyap Subject: [Patch v3 4/5] exynos: cpuidle: do not allow cpuidle registration for Exynos5420 Date: Mon, 5 May 2014 13:57:23 +0530 Message-Id: <1399278444-8312-5-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1399278444-8312-1-git-send-email-chander.kashyap@linaro.org> References: <1398245154-18771-1-git-send-email-chander.kashyap@linaro.org> <1399278444-8312-1-git-send-email-chander.kashyap@linaro.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 Exynos5420 is big.Little Soc. It uses cpuidle-big-litle generic cpuidle driver. Hence do not allow exynos cpuidle driver registration for Exynos5420. Signed-off-by: Chander Kashyap Signed-off-by: Chander Kashyap Acked-by: Daniel Lezcano --- arch/arm/mach-exynos/cpuidle.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index c57cae0..242f75d 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -219,6 +219,9 @@ static int exynos_cpuidle_probe(struct platform_device *pdev) int cpu_id, ret; struct cpuidle_device *device; + if (soc_is_exynos5420()) + return -ENODEV; + if (soc_is_exynos5250()) exynos5_core_down_clk();