From patchwork Tue Apr 16 22:43:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 2451391 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id DEBA33FD8C for ; Tue, 16 Apr 2013 22:43:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965545Ab3DPWn4 (ORCPT ); Tue, 16 Apr 2013 18:43:56 -0400 Received: from mail-ea0-f176.google.com ([209.85.215.176]:45407 "EHLO mail-ea0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965542Ab3DPWn4 (ORCPT ); Tue, 16 Apr 2013 18:43:56 -0400 Received: by mail-ea0-f176.google.com with SMTP id h10so451450eaj.7 for ; Tue, 16 Apr 2013 15:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=MkumSvQHyFP/k5kgQ4RkedZ/q7BJc4mYDqnHUlE69Ro=; b=a1cbpfMNuRF8FLk1+r2ok8g7FGon6D1G3qfD9rMyLZiVtTx/oTF+brO26re5jyZi0A yHQAeUbYpzXeEqWMjnEr9pdglhrunv68OshqLcgQvCzKOEFdgKeUqzM0T9XJnOaDofQl s6KCX/F2HWjwGgVlnlWdC/llQUgryRTN03gB6S7ZMq9ghPGesLk+OUL77erSa3vbYv2b 4l5ZOz5arwwvNS/+hqzmhsIQOySqvYuhm3yWsxQNUV7ysveY/N//5W2kbygAVzlFJl5S /PUfPYu4rFyXtKRz7/wggPKBbeRSHKkvg07vVytpswPNAVXuwh7UU5TwO6a92iXhNG4m b+hQ== X-Received: by 10.14.177.197 with SMTP id d45mr11349507eem.9.1366152234845; Tue, 16 Apr 2013 15:43:54 -0700 (PDT) Received: from flatron.localnet (87-207-52-162.dynamic.chello.pl. [87.207.52.162]) by mx.google.com with ESMTPS id a41sm5289991eei.4.2013.04.16.15.43.52 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Apr 2013 15:43:53 -0700 (PDT) From: Tomasz Figa To: Mark Brown Cc: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree-discuss@lists.ozlabs.org, kgene.kim@samsung.com, kwangwoo.lee@gmail.com, jacmet@sunsite.dk, augulis.darius@gmail.com, mcuelenaere@gmail.com, linux@arm.linux.org.uk, Rob Herring , Mark Rutland Subject: [PATCH v6 2/6] ARM: s3c64xx: Skip legacy EINT setup if pinctrl-s3c64xx driver is present Date: Wed, 17 Apr 2013 00:43:56 +0200 Message-ID: <5007310.KGcYpvCKGp@flatron> User-Agent: KMail/4.10.2 (Linux/3.8.7-gentoo; KDE/4.10.2; x86_64; ; ) In-Reply-To: <20130416162642.GN26958@opensource.wolfsonmicro.com> References: <1366060483-20342-1-git-send-email-tomasz.figa@gmail.com> <1366060483-20342-3-git-send-email-tomasz.figa@gmail.com> <20130416162642.GN26958@opensource.wolfsonmicro.com> MIME-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The new pinctrl-s3c64xx is responsible for EINT handling on DT-enabled platforms. Signed-off-by: Tomasz Figa --- arch/arm/mach-s3c64xx/common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-s3c64xx/common.c b/arch/arm/mach-s3c64xx/common.c index e79ca92..5053879 100644 --- a/arch/arm/mach-s3c64xx/common.c +++ b/arch/arm/mach-s3c64xx/common.c @@ -366,6 +366,10 @@ static int __init s3c64xx_init_irq_eint(void) { int irq; + /* On DT-enabled systems EINTs are handled by pinctrl-s3c64xx driver. */ + if (of_have_populated_dt()) + return -ENODEV; + for (irq = IRQ_EINT(0); irq <= IRQ_EINT(27); irq++) { irq_set_chip_and_handler(irq, &s3c_irq_eint, handle_level_irq); irq_set_chip_data(irq, (void *)eint_irq_to_bit(irq));