Re: [patch 06/13] powerpc: cell interrupt controller updates
- From: Milton Miller <miltonm@xxxxxxx>
- Date: Fri, 24 Mar 2006 11:43:39 -0600
On Mar 22, 2006, at 5:00 PM, Arnd Bergmann wrote:
static void spider_enable_irq(unsigned int irq)
{
+ int nodeid = (irq / IIC_NODE_STRIDE) * 0x10;
void __iomem *cfg = spider_get_irq_config(irq);
irq = spider_get_nr(irq);
- out_be32(cfg, in_be32(cfg) | 0x3107000eu);
+ out_be32(cfg, in_be32(cfg) | 0x3107000eu | nodeid);
out_be32(cfg + 4, in_be32(cfg + 4) | 0x00020000u | irq);
}
I just did a quick read of the code, but my first thought is what if some other node id was previously set? Perhaps you should mask off some bits before or'ing in the node id?
milton
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch 06/13] powerpc: cell interrupt controller updates
- From: Arnd Bergmann
- Re: [patch 06/13] powerpc: cell interrupt controller updates
- References:
- [patch 00/13] Cell kernel updates
- From: Arnd Bergmann
- [patch 06/13] powerpc: cell interrupt controller updates
- From: Arnd Bergmann
- [patch 00/13] Cell kernel updates
- Prev by Date: Re: delay_tsc(): inefficient delay loop (2.6.16-mm1)
- Next by Date: Re: [KJ] Re: [PATCH] Clean up magic numbers in i2c_parport.h
- Previous by thread: [PATCH] powerpc: use guarded ioremap for on-chip mappings
- Next by thread: Re: [patch 06/13] powerpc: cell interrupt controller updates
- Index(es):
Relevant Pages
|