From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Thu, 29 Jul 2010 14:55:11 +0100 Subject: [PATCH 02/12] mmci: fix multi block transfers In-Reply-To: <000101cb2f23$e97d1280$bc773780$@tuckley@arm.com> References: <1277198267-10860-1-git-send-email-rabin.vincent@stericsson.com> <1277198267-10860-2-git-send-email-rabin.vincent@stericsson.com> <20100729131858.GB18923@n2100.arm.linux.org.uk> <000001cb2f22$65576150$300623f0$@tuckley@arm.com> <20100729133646.GC18923@n2100.arm.linux.org.uk> <000101cb2f23$e97d1280$bc773780$@tuckley@arm.com> Message-ID: <20100729135511.GD18923@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Jul 29, 2010 at 02:42:39PM +0100, Colin Tuckley wrote: > > However, I think this will make GPIO on Realview wrong - iirc, the card > > detection bits from PL061 are inverted. > > See above. I've no idea what the right thing on Realview is because the documentation is too poor in this area. Although the Realview EB user manual gives you the GPIO block signals, it doesn't say what sense they are. It looks to me from the hardware description diagrams, that the GPIO block is fed with an inverted signal from the socket card detect pin - which itself is active low. That means the GPIO signal is in a positive logic state. So I don't think that the "return !status;" is right even for the GPIO case.