Re: [PATCHv2 02/10] ARM: vic: MULTI_IRQ_HANDLER handler

2011-11-03 Thread Linus Walleij
On Wed, Nov 2, 2011 at 3:08 PM, Jamie Iles ja...@jamieiles.com wrote: On Wed, Nov 02, 2011 at 01:40:24PM +, Russell King - ARM Linux wrote: And if we receive another interrupt after the read of the register, we'll have to exit all the way back (possibly to userspace) before re-entering

Re: [PATCHv2 02/10] ARM: vic: MULTI_IRQ_HANDLER handler

2011-11-03 Thread Russell King - ARM Linux
On Thu, Nov 03, 2011 at 01:29:08PM +0100, Linus Walleij wrote: No, if we receive another IRQ *after* the read of the register was the question, right? Just replace stat = ~(1 irq); with a second stat = readl_relaxed(vic-base + VIC_IRQ_STATUS); It'll work just fine, the IRQ line

Re: [PATCHv2 02/10] ARM: vic: MULTI_IRQ_HANDLER handler

2011-11-03 Thread Linus Walleij
On Thu, Nov 3, 2011 at 1:51 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote:        stat = readl_relaxed(vic-base + VIC_IRQ_STATUS);        while (stat) {                while (stat) {                        irq = ffs(stat) - 1;                        stat = ~(1 irq);            

Re: [PATCHv2 02/10] ARM: vic: MULTI_IRQ_HANDLER handler

2011-11-03 Thread Jamie Iles
On Thu, Nov 03, 2011 at 02:00:15PM +0100, Linus Walleij wrote: On Thu, Nov 3, 2011 at 1:51 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote:        stat = readl_relaxed(vic-base + VIC_IRQ_STATUS);        while (stat) {                while (stat) {                        irq =

Re: [PATCH] ahci: add DT binding for Calxeda AHCI controller

2011-11-03 Thread Rob Herring
On 10/24/2011 09:20 AM, Rob Herring wrote: Jeff, On 10/03/2011 09:30 PM, Rob Herring wrote: On 09/02/2011 10:10 AM, Rob Herring wrote: From: Rob Herring rob.herr...@calxeda.com Add devicetree match table to ahci platform driver for Calxeda Highbank AHCI controller. Signed-off-by: Rob

Re: [PATCHv2 02/10] ARM: vic: MULTI_IRQ_HANDLER handler

2011-11-03 Thread Russell King - ARM Linux
On Thu, Nov 03, 2011 at 02:00:15PM +0100, Linus Walleij wrote: On Thu, Nov 3, 2011 at 1:51 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote:        stat = readl_relaxed(vic-base + VIC_IRQ_STATUS);        while (stat) {                while (stat) {                        irq =

Re: [PATCH] dt/platform: minor cleanup

2011-11-03 Thread Rob Herring
On 11/03/2011 12:07 AM, Olof Johansson wrote: * Correct description of of_platform_bus_create to match implementation * Remove a level of indentation in of_dev_lookup Signed-off-by: Olof Johansson o...@lixom.net --- Applied. Rob drivers/of/platform.c | 28

Re: [PATCHv2 02/10] ARM: vic: MULTI_IRQ_HANDLER handler

2011-11-03 Thread Nicolas Pitre
On Thu, 3 Nov 2011, Russell King - ARM Linux wrote: stat = readl_relaxed(vic-base + VIC_IRQ_STATUS); while (stat) { while (stat) { irq = ffs(stat) - 1; stat = ~(1 irq); handle_irq(irq);

Re: [PATCHv2 02/10] ARM: vic: MULTI_IRQ_HANDLER handler

2011-11-03 Thread Jamie Iles
On Thu, Nov 03, 2011 at 01:31:02PM +, Russell King - ARM Linux wrote: On Thu, Nov 03, 2011 at 02:00:15PM +0100, Linus Walleij wrote: On Thu, Nov 3, 2011 at 1:51 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote:        stat = readl_relaxed(vic-base + VIC_IRQ_STATUS);      

Re: [PATCHv2 02/10] ARM: vic: MULTI_IRQ_HANDLER handler

2011-11-03 Thread Russell King - ARM Linux
On Thu, Nov 03, 2011 at 03:03:37PM +, Jamie Iles wrote: On Thu, Nov 03, 2011 at 01:31:02PM +, Russell King - ARM Linux wrote: On Thu, Nov 03, 2011 at 02:00:15PM +0100, Linus Walleij wrote: On Thu, Nov 3, 2011 at 1:51 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote:

RE: fpga driver on custom PPC target platform (P4080) ...

2011-11-03 Thread Robert Sciuk
-Original Message- From: Segher Boessenkool [mailto:seg...@kernel.crashing.org] Sent: Thursday, November 03, 2011 5:22 PM To: Robert Sciuk Cc: devicetree-discuss@lists.ozlabs.org; linuxppc-...@lists.ozlabs.org Subject: Re: fpga driver on custom PPC target platform (P4080) ...

[PATCHv4 00/13] VIC DT binding and MULTI_IRQ_HANDLER

2011-11-03 Thread Jamie Iles
Since the last revision I've updated the handling loop as suggested by Linus and Russell, added a patch for picoxcell and added a final patch to remove the non MULTI_IRQ_HANDLER support for VIC. The final patch assumes that all VIC users will be converted to MULTI_IRQ_HANDLER which I would hope

[PATCHv4 01/13] ARM: Make global handler and CONFIG_MULTI_IRQ_HANDLER mutually exclusive

2011-11-03 Thread Jamie Iles
From: Marc Zyngier marc.zyng...@arm.com Even when CONFIG_MULTI_IRQ_HANDLER is selected, the core code requires the arch_irq_handler_default macro to be defined as a fallback. It turns out nobody is using that particular feature as both PXA and shmobile have all their machine descriptors

[PATCHv4 02/13] ARM: vic: device tree binding

2011-11-03 Thread Jamie Iles
This adds a device tree binding for the VIC based on the of_irq_init() support. This adds an irqdomain to the vic and always registers all vics in the static vic array rather than for pm only to keep track of the irq domain. struct irq_data::hwirq is used where appropriate rather than runtime

[PATCHv4 04/13] ARM: ep93xx: convert to MULTI_IRQ_HANDLER

2011-11-03 Thread Jamie Iles
Now that there is a generic IRQ handler for multiple VIC devices use it for ep93xx to help building multi platform kernels. Cc: Hartley Sweeten hswee...@visionengravers.com Cc: Ryan Mallon rmal...@gmail.com Signed-off-by: Jamie Iles ja...@jamieiles.com --- arch/arm/Kconfig

[PATCHv4 05/13] ARM: netx: convert to MULTI_IRQ_HANDLER

2011-11-03 Thread Jamie Iles
Now that there is a generic IRQ handler for multiple VIC devices use it for netx to help building multi platform kernels. Signed-off-by: Jamie Iles ja...@jamieiles.com --- arch/arm/Kconfig |1 + arch/arm/mach-netx/include/mach/entry-macro.S | 13 -

[PATCHv4 07/13] ARM: s3c64xx: convert to MULTI_IRQ_HANDLER

2011-11-03 Thread Jamie Iles
Now that there is a generic IRQ handler for multiple VIC devices use it for s3c64xx to help building multi platform kernels. Cc: Ben Dooks ben-li...@fluff.org Signed-off-by: Jamie Iles ja...@jamieiles.com --- arch/arm/Kconfig |1 +

[PATCHv4 06/13] ARM: nomadik: convert to MULTI_IRQ_HANDLER

2011-11-03 Thread Jamie Iles
Now that there is a generic IRQ handler for multiple VIC devices use it for nomadik to help building multi platform kernels. Cc: Alessandro Rubini rub...@unipv.it Cc: Linus Walleij linus.wall...@stericsson.com Cc: STEricsson stericsson_nomadik_li...@list.st.com Signed-off-by: Jamie Iles

[PATCHv4 10/13] ARM: versatile: convert to MULTI_IRQ_HANDLER

2011-11-03 Thread Jamie Iles
Now that there is a generic IRQ handler for multiple VIC devices use it for versatile to help building multi platform kernels. Cc: Russell King li...@arm.linux.org.uk Signed-off-by: Jamie Iles ja...@jamieiles.com --- arch/arm/Kconfig |1 +