diff options
author | Paul Mackerras <paulus@samba.org> | 2007-11-20 11:39:26 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-11-20 11:39:26 +1100 |
commit | b22da92f2cf52b3c51dd9a45abb658b1414b0784 (patch) | |
tree | 7c602fb1b2d1de588fbfde6bb53662b3a1f8cb8a /arch/powerpc/sysdev | |
parent | 52142e756e9bf6485d3d53596e8aff2e816a7253 (diff) | |
parent | 3d1d662ef423adf6947a37e230f4d7e8ed7c9544 (diff) | |
download | talos-op-linux-b22da92f2cf52b3c51dd9a45abb658b1414b0784.tar.gz talos-op-linux-b22da92f2cf52b3c51dd9a45abb658b1414b0784.zip |
Merge branch 'for-2.6.24' of master.kernel.org:/pub/scm/linux/kernel/git/jwboyer/powerpc-4xx into merge
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r-- | arch/powerpc/sysdev/uic.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/uic.c b/arch/powerpc/sysdev/uic.c index 5149716c734d..847a5496b869 100644 --- a/arch/powerpc/sysdev/uic.c +++ b/arch/powerpc/sysdev/uic.c @@ -97,6 +97,22 @@ static void uic_ack_irq(unsigned int virq) spin_unlock_irqrestore(&uic->lock, flags); } +static void uic_mask_ack_irq(unsigned int virq) +{ + struct uic *uic = get_irq_chip_data(virq); + unsigned int src = uic_irq_to_hw(virq); + unsigned long flags; + u32 er, sr; + + sr = 1 << (31-src); + spin_lock_irqsave(&uic->lock, flags); + er = mfdcr(uic->dcrbase + UIC_ER); + er &= ~sr; + mtdcr(uic->dcrbase + UIC_ER, er); + mtdcr(uic->dcrbase + UIC_SR, sr); + spin_unlock_irqrestore(&uic->lock, flags); +} + static int uic_set_irq_type(unsigned int virq, unsigned int flow_type) { struct uic *uic = get_irq_chip_data(virq); @@ -152,7 +168,7 @@ static struct irq_chip uic_irq_chip = { .typename = " UIC ", .unmask = uic_unmask_irq, .mask = uic_mask_irq, -/* .mask_ack = uic_mask_irq_and_ack, */ + .mask_ack = uic_mask_ack_irq, .ack = uic_ack_irq, .set_type = uic_set_irq_type, }; |