From patchwork Mon Apr 21 11:49:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 4023721 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 36A459F387 for ; Mon, 21 Apr 2014 11:50:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5FB302038D for ; Mon, 21 Apr 2014 11:50:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 735CA20395 for ; Mon, 21 Apr 2014 11:50:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752065AbaDULuH (ORCPT ); Mon, 21 Apr 2014 07:50:07 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:56509 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751737AbaDULto (ORCPT ); Mon, 21 Apr 2014 07:49:44 -0400 Received: by mail-pd0-f181.google.com with SMTP id p10so3608585pdj.12 for ; Mon, 21 Apr 2014 04:49:44 -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=GRvoFkGsZld45DceVRY0bzLafaSrcI9xrakEV80Zcy0=; b=QPaCv7t4TJ4WcXEP48ANSl5jyVuT5SyoZeksYAuZzhmt+1HkkbCXK6VysT0RJDKEAT h0CiEX4AQ82dPZXiadjM7lpKyJs3NHpshVZsU70laDGiETMZARjyA/tPZIDZy0jRaP/V UPgCKcl/58DAVrPpacZ/xmN3oC0J6kY8NUkiMxobWPaJWYHHzOoflpRDqvEoxWg6B8+i wSEQrA1rQ/ZFiYQbX/3vi0ki6IpW0nMDHdx/3UA+WDAPqgG2EN54xpNEeRecEHBJY+2l axqsFONjAIygdrwaaEr0pGHTP5sp9/KLYMeZzPuo8YH+rUNSpFvmGPeO7D7sdMj2NGgH xr6Q== X-Gm-Message-State: ALoCoQnbo63xzTPkg4su9Iq+4oPQ4uNumVEyV1pNyb8WNqJNlOwwczPq0DuosWNbSkzwLpQOhpIc X-Received: by 10.66.166.233 with SMTP id zj9mr9866944pab.75.1398080984426; Mon, 21 Apr 2014 04:49:44 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id ir10sm77592553pbc.59.2014.04.21.04.49.40 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 04:49:43 -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 3/4] exynos: cpuidle: do not allow cpuidle registration for Exynos5420 Date: Mon, 21 Apr 2014 17:19:17 +0530 Message-Id: <1398080958-21677-4-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398080958-21677-1-git-send-email-chander.kashyap@linaro.org> References: <1398080958-21677-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();