linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: linuxppc-dev@lists.ozlabs.org
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Michael Ellerman <mpe@ellerman.id.au>,
	Russell King <rmk+kernel@arm.linux.org.uk>,
	Julia Lawall <Julia.Lawall@lip6.fr>
Subject: [patch 04/20] powerpc/axon_msi: Consolidate chained IRQ handler install/remove
Date: Mon, 13 Jul 2015 20:50:06 -0000	[thread overview]
Message-ID: <20150713135739.327873721@linutronix.de> (raw)
In-Reply-To: 20150713135648.540293392@linutronix.de

Chained irq handlers usually set up handler data as well. We now have
a function to set both under irq_desc->lock. Replace the two calls
with one.

Search and conversion was done with coccinelle.

Reported-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
---
 arch/powerpc/platforms/cell/axon_msi.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: tip/arch/powerpc/platforms/cell/axon_msi.c
===================================================================
--- tip.orig/arch/powerpc/platforms/cell/axon_msi.c
+++ tip/arch/powerpc/platforms/cell/axon_msi.c
@@ -390,8 +390,7 @@ static int axon_msi_probe(struct platfor
 		goto out_free_fifo;
 	}
 
-	irq_set_handler_data(virq, msic);
-	irq_set_chained_handler(virq, axon_msi_cascade);
+	irq_set_chained_handler_and_data(virq, axon_msi_cascade, msic);
 	pr_devel("axon_msi: irq 0x%x setup for axon_msi\n", virq);
 
 	/* Enable the MSIC hardware */

  parent reply	other threads:[~2015-07-13 20:50 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-13 20:50 [patch 00/20] powerpc: Interrupt cleanups and API change preparation Thomas Gleixner
2015-07-13 20:50 ` [patch 01/20] powerpc/media5200: Consolidate chained IRQ handler install/remove Thomas Gleixner
2015-07-13 20:50 ` [patch 02/20] powerpc/52xx: " Thomas Gleixner
2015-07-13 20:50 ` [patch 03/20] powerpc/pq2ads: " Thomas Gleixner
2015-07-13 20:50 ` Thomas Gleixner [this message]
2015-07-13 20:50 ` [patch 05/20] powerpc/cell: " Thomas Gleixner
2015-07-13 20:50 ` [patch 06/20] powerpc/spider-pic: " Thomas Gleixner
2015-07-13 20:50 ` [patch 07/20] powerpc/hlwd-pic: " Thomas Gleixner
2015-07-13 20:50 ` [patch 08/20] powerpc/holly: " Thomas Gleixner
2015-07-13 20:50 ` [patch 09/20] powerpc/mpc7448: " Thomas Gleixner
2015-07-13 20:50 ` [patch 10/20] powerpc/mpic: " Thomas Gleixner
2015-07-13 20:50 ` [patch 11/20] powerpc/qe_ic: " Thomas Gleixner
2015-07-13 20:50 ` [patch 12/20] powerpc/uic: " Thomas Gleixner
2015-07-13 20:50 ` [patch 13/20] powerpc/irq: Use access helper irq_data_get_affinity_mask() Thomas Gleixner
2015-07-13 20:50 ` [patch 14/20] powerpc/mpc52xx: Use irq_set_handler_locked() Thomas Gleixner
2015-07-13 20:50 ` [patch 15/20] powerpc/cpm2: " Thomas Gleixner
2015-07-13 20:50 ` [patch 16/20] powerpc/ipic: " Thomas Gleixner
2015-07-13 20:50 ` [patch 17/20] powerpc/mpc8xx: " Thomas Gleixner
2015-07-13 20:50 ` [patch 18/20] powerpc/mpc5121: Prepare cpld_pic_cascade for irq argument removal Thomas Gleixner
2015-07-13 20:50 ` [patch 19/20] powerpc/85xx: Prepare cascade handlers " Thomas Gleixner
2015-07-13 20:50 ` [patch 20/20] powerpc/cell: Prepare iic_ioexc_cascade " Thomas Gleixner
2015-07-16  4:37 ` [patch 00/20] powerpc: Interrupt cleanups and API change preparation Michael Ellerman
2015-07-31 21:47   ` Thomas Gleixner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150713135739.327873721@linutronix.de \
    --to=tglx@linutronix.de \
    --cc=Julia.Lawall@lip6.fr \
    --cc=benh@kernel.crashing.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mpe@ellerman.id.au \
    --cc=rmk+kernel@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).