linux-mips
[Top] [All Lists]

[RFC PATCH] Alchemy: IRQ code overhaul

To: linux-mips@linux-mips.org
Subject: [RFC PATCH] Alchemy: IRQ code overhaul
From: Manuel Lauss <mano@roarinelk.homelinux.net>
Date: Wed, 12 Nov 2008 07:22:43 +0100
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.16 (2007-06-09)
Hello,

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
far.

The patch is against my code-consolidation changes.

Feedback very welcome!

Thanks,
        Manuel Lauss

---

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