From patchwork Tue Sep 18 22:52:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 1475001 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 8F0E8DF24C for ; Tue, 18 Sep 2012 22:52:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932191Ab2IRWwl (ORCPT ); Tue, 18 Sep 2012 18:52:41 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:62134 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755776Ab2IRWwk (ORCPT ); Tue, 18 Sep 2012 18:52:40 -0400 Received: from axis700.grange (dslb-094-221-112-134.pools.arcor-ip.net [94.221.112.134]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LrqLm-1TdhyP1SIg-013pin; Wed, 19 Sep 2012 00:52:27 +0200 Received: by axis700.grange (Postfix, from userid 1000) id AB0D0189B0D; Wed, 19 Sep 2012 00:52:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id 9C966189AF7; Wed, 19 Sep 2012 00:52:26 +0200 (CEST) Date: Wed, 19 Sep 2012 00:52:26 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: linux-mmc@vger.kernel.org cc: Tetsuyuki Kobayashi , yusuke.goda.sx@renesas.com, Kuninori Morimoto , Paul Mundt , Magnus Damm , linux-sh@vger.kernel.org, Kuninori Morimoto , Simon Horman Subject: [PATCH] ARM: shmobile: fix MMCIF IRQ assignment on kzm9g Message-ID: MIME-Version: 1.0 X-Provags-ID: V02:K0:13U3DlEDSuFsQvUm6SsioxgNsyGe3qj6ecO/QwNqt2L JO4it043n12N55ejoSbqBdSzcCBPE6iGQkn3XRnrvsBgzDZuiR 6K/ao4y7wlXCOnoitvoB0BRyUXk6glRMfyTM3WRgugDO6pW3Hi lUc3YuLt4UIzfLvpWvIjlu1ma683jTa2Wi3vC0+nmunvWK4RBk HCO9RH+0ZHQnPZIJH9T/xwPxmEiD3oY63dvFer/DAJJKp4i73X 32dhDYeQzuw6a+HqJ3R0sINmqvrOdvag3lg27ewmk5JGnhaanr 03dR5l9Q2pYL3tkTEGnuyQpglqfQBFCMMywp/NemRYv0V/ZaIW w8/TOi0mTUm1en85j7vLCyKxHWYhrDrnc1/UjJxirpl/eK3QTj m5B5yXWNHdqIQ== Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Error and operation IRQs are swapped in kzm9g platform data, this patch fixes their order. The only problem this bug causes is the confusing IRQ count in /proc/interrupts output, otherwise functionality is unaffected, since the driver doesn't really differentiate between the two IRQs. Signed-off-by: Guennadi Liakhovetski --- The error is easy to see in /proc/interrupts output, kota2 has the correct IRQ assignment, ag5evm has the same problem, as kzm9g, so, it might need fixing too. I certainly could cook up a similar trivial patch for it, but someone will have to test it. arch/arm/mach-shmobile/board-kzm9g.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c index 29cca80..21c90c4 100644 --- a/arch/arm/mach-shmobile/board-kzm9g.c +++ b/arch/arm/mach-shmobile/board-kzm9g.c @@ -346,11 +346,11 @@ static struct resource sh_mmcif_resources[] = { .flags = IORESOURCE_MEM, }, [1] = { - .start = gic_spi(141), + .start = gic_spi(140), .flags = IORESOURCE_IRQ, }, [2] = { - .start = gic_spi(140), + .start = gic_spi(141), .flags = IORESOURCE_IRQ, }, };