[RFC PATCH 5/5] gic: initialize interrupts as per argument
Russell King - ARM Linux
linux at arm.linux.org.uk
Wed Jan 27 18:29:55 EST 2010
On Wed, Jan 27, 2010 at 11:32:29AM -0800, adharmap at codeaurora.org wrote:
> From: Abhijeet Dharmapurikar <adharmap at quicinc.com>
>
> Initialize interrupts as per an argument passed instead of initializing
> them as active level low triggered interrupts.
>
> Signed-off-by: Abhijeet Dharmapurikar <adharmap at quicinc.com>
> ---
> Configuring level triggered interrupts as default may not be correct on
> some platforms, this changes the default behaviour of the gic_dist_init
> function and also adds a flag to indicate whether the default should be level
> or edge.
Changing the interrupt type for all interrupts is just wrong. For on-chip
peripherals, you generally want to use level based interrupts as they're
the most efficient and simplest way to signal interrupts.
It should be a per-interrupt thing, and we already have that through
request_irq() etc. Other platforms manage this just fine without having
to have special configuration like this.
More information about the linux-arm-kernel
mailing list