From patchwork Sat Aug 27 13:19:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Arnaud Patard (Rtp)" X-Patchwork-Id: 1103782 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7RDQn8K031227 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 27 Aug 2011 13:27:10 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QxIu7-0005Kv-S7; Sat, 27 Aug 2011 13:26:33 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QxIu7-0003yL-5q; Sat, 27 Aug 2011 13:26:31 +0000 Received: from lebrac.rtp-net.org ([88.191.135.105]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QxItw-0003wL-1S for linux-arm-kernel@lists.infradead.org; Sat, 27 Aug 2011 13:26:21 +0000 Received: by lebrac.rtp-net.org (Postfix, from userid 1000) id 3F6DE29264; Sat, 27 Aug 2011 15:25:43 +0200 (CEST) Message-Id: <20110827131911.571434313@rtp-net.org> User-Agent: quilt/0.48-1 Date: Sat, 27 Aug 2011 15:19:00 +0200 From: Arnaud Patard (Rtp) To: linux-arm-kernel@lists.infradead.org Subject: [patch 1/1] Fix pata imx resource Content-Disposition: inline; filename=pata_imx_resources.patch X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110827_092620_296009_A85DC604 X-CRM114-Status: UNSURE ( 8.64 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.5 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.5 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain Cc: kernel@pengutronix.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Sat, 27 Aug 2011 13:27:10 +0000 (UTC) Commit 236c4e8be436380b5354fe0d7facf94688e024ec "ARM: imx: Add PATA resources for other i.MX processors" has broken resource declaration of pata_imx device by using iobase instead of iosize. Signed-off-by: Arnaud Patard Index: linux-2.6-submit/arch/arm/plat-mxc/devices/platform-pata_imx.c =================================================================== --- linux-2.6-submit.orig/arch/arm/plat-mxc/devices/platform-pata_imx.c 2011-08-26 18:09:55.000000000 +0200 +++ linux-2.6-submit/arch/arm/plat-mxc/devices/platform-pata_imx.c 2011-08-27 00:18:09.000000000 +0200 @@ -44,7 +44,7 @@ struct platform_device *__init imx_add_p struct resource res[] = { { .start = data->iobase, - .end = data->iobase + data->iobase - 1, + .end = data->iobase + data->iosize - 1, .flags = IORESOURCE_MEM, }, {