[Top] [All Lists]

[RFC PATCH] Alchemy: IRQ code overhaul

Subject: [RFC PATCH] Alchemy: IRQ code overhaul
From: Manuel Lauss <>
Date: Wed, 12 Nov 2008 07:22:43 +0100
Original-recipient: rfc822;
User-agent: Mutt/1.5.16 (2007-06-09)

Starting with 2.6.28-rc, ethernet on one of my au1200 boards stopped working
due to the IRQ it was hooked up to not having a flow handler installed.

So I decided to take a look at the alchemy irq code and came up with the
patch below.

It adds struct irq_chip for IC0 and IC1, a set_type() callback to change
IRQ type at runtime (should be useful for GPIO too), a set_wake() callback
to enable GPIO-based wakeup, merge the cpu-fixed irqmap into irq.c file
(IIRC next-gen Alchemy SoC use a different IRQ controller, so this map
should not change much in the future anyway.  Also, I hate all those
extern declarations and try to get rid of them when possible).

Tested on the Db1200 and custom Au1200 platform, works very well so

The patch is against my code-consolidation changes.

Feedback very welcome!

        Manuel Lauss


<Prev in Thread] Current Thread [Next in Thread>
  • [RFC PATCH] Alchemy: IRQ code overhaul, Manuel Lauss <=