PLEA: Please fix mach/gpio.h includes (was: Re: [RFC PATCH 2/2] GPIO: add gpiolib and irqchip for CSR SiRFprimaII GPIO controller)
From: Barry Song <hidden>
Date: 2011-07-27 02:08:41
From: Barry Song <hidden>
Date: 2011-07-27 02:08:41
2011/7/27 Nicolas Pitre [off-list ref]:
On Tue, 26 Jul 2011, Russell King - ARM Linux wrote:quoted
I don't think there's any plans to break the: linux/gpio.h -> asm/gpio.h -> mach/gpio.h include path at the moment, as platforms do define ARCH_NR_GPIO, which has to be done before asm-generic/gpiolib.h is included.Well, this GPIO business is the biggest hurdle towards a single kernel image that can support multiple SOCs at the moment, and the only one for which I have no solution yet. ?Anything that could help removing mach/gpio.h from asm/gpio.h would be welcome.
After reading all the following patches, 1. use CONFIG_PHYS_OFFSET to prepare for removal of a bunch of <mach/memory.h> files 2. move from ARM_DMA_ZONE_SIZE to mdesc->dma_zone_size 3. convert boot_params to atag_offset Have i lost anything for the work on 1 and 2? considering some platforms need CONSISTENT_DMA_SIZE more than the default 2MB in arch/arm/include/asm/memory.h, we can't remove all memory.h only by defining CONFIG_PHYS_OFFSET and moving ARM_DMA_ZONE_SIZE to mdesc->dma_zone_size. So CONSISTENT_DMA_SIZE should also be a left issue except gpio.h.
Nicolas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel