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: 2451401 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id 5FAFFDF230 for ; Tue, 16 Apr 2013 22:44:05 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1USEba-0006g4-CD; Tue, 16 Apr 2013 22:44:02 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1USEbX-0000cl-Mk; Tue, 16 Apr 2013 22:43:59 +0000 Received: from mail-ee0-f45.google.com ([74.125.83.45]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1USEbU-0000cS-Is for linux-arm-kernel@lists.infradead.org; Tue, 16 Apr 2013 22:43:57 +0000 Received: by mail-ee0-f45.google.com with SMTP id c50so459424eek.4 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130416_184356_757355_B23EAD46 X-CRM114-Status: UNSURE ( 9.32 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (tomasz.figa[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.83.45 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Mark Rutland , kgene.kim@samsung.com, linux@arm.linux.org.uk, kwangwoo.lee@gmail.com, devicetree-discuss@lists.ozlabs.org, mcuelenaere@gmail.com, linux-samsung-soc@vger.kernel.org, augulis.darius@gmail.com, jacmet@sunsite.dk, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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));