[RFC PATCH 0/5] Convert some ARM platforms to basic-mmio-gpio
Linus Walleij
linus.walleij at linaro.org
Mon Apr 11 11:17:53 EDT 2011
2011/4/11 Jamie Iles <jamie at jamieiles.com>:
> The basic-mmio-gpio driver has been extended in
> <http://marc.info/?l=linux-kernel&m=130252092900804&w=2> to support a
> larger wider of controllers and this series converts the ARM platforms
> that do not implement I/O muxing in the GPIO driver or use the .to_irq
> method of gpio_chip to use the driver.
>
> Jamie Iles (5):
> gemini: convert to basic-mmio-gpio
> sa1100: convert to basic-mmio-gpio
> w90x900: convert to basic-mmio-gpio
> iop: convert to basic-mmio-gpio
> mxc: convert to basic-mmio-gpio
For all of these, maybe you can
select GPIO_BASIC_GPIO
In their mach-xxx/Kconfig so that the driver gets compiled-in by default?
Further the basic_mmio_gpio.c driver looks a bit dangerous: it only uses
__raw_* accessors for the GPIO registers, I'd very much like to replace that
with the non-__raw* versions if this is to have any generic impact.
The raw accessors can get stuck in things like write buffers and the like
IIRC, they usually won't so you don't notice first, then you start getting
all kind of real strange bugs.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list