[PATCH 04/12] mmci: allow the card detect status not to be inverted
Linus Walleij
linus.ml.walleij at gmail.com
Thu Jul 29 09:53:19 EDT 2010
2010/7/29 Russell King - ARM Linux <linux at arm.linux.org.uk>:
> What now needs to happen is the sense of the GPIOLIB support on platforms
> needs to be checked - eg, I suspect the card detect via the GPIO primecell
> is inverted on Realview - in which case we need a 'cd_invert' rather
> than the negative 'cd_noinvert'.
Doesn't seem so. I applied this patch and it works like a charm just
like before on PB1176. (PL061 is compiled in, so it's not that other
weird stuff being used.)
I hope I'm doing the right thing, boot with card inserted, this appears
in the bootlog:
mmc0: new SD card at address 80ca
mmcblk0: mmc0:80ca SU512 483 MiB
mmcblk0: p1
Remove card:
mmc0: card 80ca removed
Insert card:
mmc0: new SD card at address 80ca
mmcblk0: mmc0:80ca SU512 483 MiB
mmcblk0: p1
And so on.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list