From patchwork Wed May 14 08:03:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 4173461 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B2057BFF02 for ; Wed, 14 May 2014 08:05:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BD98D2035C for ; Wed, 14 May 2014 08:05:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D8D732034E for ; Wed, 14 May 2014 08:05:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753251AbaENIFS (ORCPT ); Wed, 14 May 2014 04:05:18 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:63358 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753238AbaENIEi (ORCPT ); Wed, 14 May 2014 04:04:38 -0400 Received: by mail-pa0-f48.google.com with SMTP id rd3so1379003pab.35 for ; Wed, 14 May 2014 01:04:37 -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=ZJiVL5hG6oHHTBjbz6G9BqC48306w3ogBf3MaKKOuaI=; b=gB19GtM4xBZMXwiVfm5PrPPICtEbOVHjiqhLGpCNsLi6RkazI5XQH0uP9R9WcW1R6A isvgzxjk5njJdJIz8DqZ5dNTgmi20nMQWXj9oJT8cmgekPkgzSrgZAzyahNhpYqmSiu8 Fr8kw5l7N7XyVD4SqAcz9nUVQL7BdV1ADRDHMT6wpNQaLzpEFJ7mDEO2D1MRp+F1fh5Q MSROH6YFv2uMFRpYCLm5zhG3lztarFAcqkPVIW63yx24Y3tE29OvFoZU5FuQtDdcnCW7 R0EpGe7JJdVR1IvAwXQbwxZrXCiBTQZ1Mi/dhzQC8Aupa8WQKf0LzZEFSlXWYGgDhuPg 8MpA== X-Gm-Message-State: ALoCoQn86pQJfsM+PuoRx9qwSWNF5q3hK2uGrUMbRaRkzILfBlNcQuIedmbrd3za8DXzimscXxIQ X-Received: by 10.68.215.40 with SMTP id of8mr2488973pbc.15.1400054677753; Wed, 14 May 2014 01:04:37 -0700 (PDT) Received: from localhost.localdomain ([14.140.216.146]) by mx.google.com with ESMTPSA id as12sm4807422pac.43.2014.05.14.01.04.33 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 May 2014 01:04:37 -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: daniel.lezcano@linaro.org, lorenzo.pieralisi@arm.com, rjw@rjwysocki.net, kgene.kim@samsung.com, Chander Kashyap , Chander Kashyap Subject: [PATCH v5 5/6] exynos: cpuidle: do not allow cpuidle registration for Exynos5420 Date: Wed, 14 May 2014 13:33:56 +0530 Message-Id: <1400054637-21505-6-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1400054637-21505-1-git-send-email-chander.kashyap@linaro.org> References: <1400054637-21505-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 Reviewed-by: Tomasz Figa --- 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 3dd385e..807a386 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -218,6 +218,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();