linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: viresh.kumar@st.com (viresh kumar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 53/54] ARM: plat-spear: irq_data conversion.
Date: Wed, 1 Dec 2010 09:32:18 +0530	[thread overview]
Message-ID: <4CF5C8CA.9000804@st.com> (raw)
In-Reply-To: <20101130134125.GB15575@mail.wantstofly.org>

On 11/30/2010 07:11 PM, Lennert Buytenhek wrote:
> Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
> ---
>  arch/arm/plat-spear/shirq.c |   22 +++++++++++-----------
>  1 files changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/arch/arm/plat-spear/shirq.c b/arch/arm/plat-spear/shirq.c
> index 2172d69..7818903 100644
> --- a/arch/arm/plat-spear/shirq.c
> +++ b/arch/arm/plat-spear/shirq.c
> @@ -20,10 +20,10 @@
>  struct spear_shirq *shirq;
>  static DEFINE_SPINLOCK(lock);
>  
> -static void shirq_irq_mask(unsigned irq)
> +static void shirq_irq_mask(struct irq_data *d)
>  {
> -	struct spear_shirq *shirq = get_irq_chip_data(irq);
> -	u32 val, id = irq - shirq->dev_config[0].virq;
> +	struct spear_shirq *shirq = irq_data_get_irq_chip_data(d);
> +	u32 val, id = d->irq - shirq->dev_config[0].virq;
>  	unsigned long flags;
>  
>  	if ((shirq->regs.enb_reg == -1) || shirq->dev_config[id].enb_mask == -1)
> @@ -39,10 +39,10 @@ static void shirq_irq_mask(unsigned irq)
>  	spin_unlock_irqrestore(&lock, flags);
>  }
>  
> -static void shirq_irq_unmask(unsigned irq)
> +static void shirq_irq_unmask(struct irq_data *d)
>  {
> -	struct spear_shirq *shirq = get_irq_chip_data(irq);
> -	u32 val, id = irq - shirq->dev_config[0].virq;
> +	struct spear_shirq *shirq = irq_data_get_irq_chip_data(d);
> +	u32 val, id = d->irq - shirq->dev_config[0].virq;
>  	unsigned long flags;
>  
>  	if ((shirq->regs.enb_reg == -1) || shirq->dev_config[id].enb_mask == -1)
> @@ -60,9 +60,9 @@ static void shirq_irq_unmask(unsigned irq)
>  
>  static struct irq_chip shirq_chip = {
>  	.name		= "spear_shirq",
> -	.ack		= shirq_irq_mask,
> -	.mask		= shirq_irq_mask,
> -	.unmask		= shirq_irq_unmask,
> +	.irq_ack	= shirq_irq_mask,
> +	.irq_mask	= shirq_irq_mask,
> +	.irq_unmask	= shirq_irq_unmask,
>  };
>  
>  static void shirq_handler(unsigned irq, struct irq_desc *desc)
> @@ -70,7 +70,7 @@ static void shirq_handler(unsigned irq, struct irq_desc *desc)
>  	u32 i, val, mask;
>  	struct spear_shirq *shirq = get_irq_data(irq);
>  
> -	desc->chip->ack(irq);
> +	desc->irq_data.chip->irq_ack(&desc->irq_data);
>  	while ((val = readl(shirq->regs.base + shirq->regs.status_reg) &
>  				shirq->regs.status_reg_mask)) {
>  		for (i = 0; (i < shirq->dev_count) && val; i++) {
> @@ -92,7 +92,7 @@ static void shirq_handler(unsigned irq, struct irq_desc *desc)
>  			writel(mask, shirq->regs.base + shirq->regs.clear_reg);
>  		}
>  	}
> -	desc->chip->unmask(irq);
> +	desc->irq_data.chip->irq_unmask(&desc->irq_data);
>  }
>  
>  int spear_shirq_register(struct spear_shirq *shirq)

Acked-by: Viresh Kumar <viresh.kumar@st.com>

  reply	other threads:[~2010-12-01  4:02 UTC|newest]

Thread overview: 99+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1291118519.git.buytenh@wantstofly.org>
2010-11-30 13:25 ` [PATCH 01/54] ARM: core irq_data conversion Lennert Buytenhek
2011-01-14 16:24   ` Russell King - ARM Linux
2011-01-14 18:49     ` Lennert Buytenhek
2010-11-30 13:25 ` [PATCH 02/54] ARM: ecard: " Lennert Buytenhek
2010-12-03 17:23   ` Russell King - ARM Linux
2010-11-30 13:25 ` [PATCH 03/54] ARM: gic: " Lennert Buytenhek
2010-12-01  1:08   ` Abhijeet Dharmapurikar
2010-11-30 13:25 ` [PATCH 04/54] ARM: ITE 8152: " Lennert Buytenhek
2010-11-30 14:02   ` Mike Rapoport
2010-11-30 13:25 ` [PATCH 05/54] ARM: LoCoMo: " Lennert Buytenhek
2010-11-30 13:25 ` [PATCH 06/54] ARM: sa1111: " Lennert Buytenhek
2010-11-30 20:52   ` Kristoffer Ericson
2010-11-30 13:25 ` [PATCH 07/54] ARM: vic: " Lennert Buytenhek
2010-11-30 13:25 ` [PATCH 08/54] ARM: aaec2000: " Lennert Buytenhek
2010-12-06 11:27   ` Sergei Shtylyov
2010-12-06 11:45     ` Russell King - ARM Linux
2010-11-30 13:25 ` [PATCH 09/54] ARM: at91: " Lennert Buytenhek
2010-11-30 13:25 ` [PATCH 10/54] ARM: bcmring: " Lennert Buytenhek
2010-12-01  0:12   ` Scott Branden
2010-12-01  8:00     ` Uwe Kleine-König
2010-12-01 11:56       ` Lennert Buytenhek
2010-11-30 13:36 ` [PATCH 11/54] ARM: clps711x: " Lennert Buytenhek
2010-11-30 13:36 ` [PATCH 12/54] ARM: davinci: " Lennert Buytenhek
2010-12-06 11:34   ` Sergei Shtylyov
2010-11-30 13:36 ` [PATCH 13/54] ARM: dove: " Lennert Buytenhek
2010-12-01  0:55   ` Nicolas Pitre
2010-11-30 13:36 ` [PATCH 14/54] ARM: ebsa110: " Lennert Buytenhek
2010-12-03 17:22   ` Russell King - ARM Linux
2010-11-30 13:36 ` [PATCH 15/54] ARM: ep93xx: " Lennert Buytenhek
2010-11-30 19:33   ` Ryan Mallon
2010-12-01  0:19     ` Lennert Buytenhek
2010-12-01  0:26       ` Ryan Mallon
2010-12-14 19:28         ` Lennert Buytenhek
2010-12-14 19:52           ` Ryan Mallon
2010-11-30 13:36 ` [PATCH 16/54] ARM: footbridge: " Lennert Buytenhek
2010-12-03 17:24   ` Russell King - ARM Linux
2010-11-30 13:36 ` [PATCH 17/54] ARM: gemini: " Lennert Buytenhek
2010-11-30 14:38   ` Hans Ulli Kroll
2010-11-30 13:36 ` [PATCH 18/54] ARM: h720x: " Lennert Buytenhek
2010-11-30 13:36 ` [PATCH 19/54] ARM: integrator: " Lennert Buytenhek
2010-12-03 17:25   ` Russell King - ARM Linux
2010-11-30 13:36 ` [PATCH 20/54] ARM: iop13xx: " Lennert Buytenhek
2010-12-04  1:18   ` Dan Williams
2010-11-30 13:36 ` [PATCH 21/54] ARM: iop32x: " Lennert Buytenhek
2010-11-30 13:36 ` [PATCH 22/54] ARM: iop33x: " Lennert Buytenhek
2010-12-06 11:39   ` Sergei Shtylyov
2010-11-30 13:36 ` [PATCH 23/54] ARM: ixp2000: " Lennert Buytenhek
2010-11-30 13:36 ` [PATCH 24/54] ARM: ixp23xx: " Lennert Buytenhek
2010-11-30 13:36 ` [PATCH 25/54] ARM: ixp4xx: " Lennert Buytenhek
2010-11-30 13:36 ` [PATCH 26/54] ARM: ks8695: " Lennert Buytenhek
2010-11-30 13:36 ` [PATCH 27/54] ARM: lh7a40x: " Lennert Buytenhek
2010-11-30 13:36 ` [PATCH 28/54] ARM: lpc32xx: " Lennert Buytenhek
2010-11-30 13:36 ` [PATCH 29/54] ARM: mmp: " Lennert Buytenhek
2010-11-30 13:37 ` [PATCH 30/54] ARM: msm: " Lennert Buytenhek
2010-11-30 22:57   ` Daniel Walker
2010-12-01  0:10     ` Lennert Buytenhek
2010-12-01  0:15       ` Daniel Walker
2010-12-01 23:31   ` Gregory Bean
2010-11-30 13:40 ` [PATCH 31/54] ARM: mx3: " Lennert Buytenhek
2010-11-30 13:41 ` [PATCH 32/54] ARM: netx: " Lennert Buytenhek
2010-11-30 13:41 ` [PATCH 33/54] ARM: ns9xxx: " Lennert Buytenhek
2010-12-01  8:05   ` Uwe Kleine-König
2010-11-30 13:41 ` [PATCH 34/54] ARM: nuc93x: " Lennert Buytenhek
2010-12-01  1:47   ` Wan ZongShun
2010-11-30 13:41 ` [PATCH 35/54] ARM: omap1: " Lennert Buytenhek
2010-11-30 13:41 ` [PATCH 36/54] ARM: omap2: " Lennert Buytenhek
2010-11-30 13:41 ` [PATCH 37/54] ARM: pnx4008: " Lennert Buytenhek
2010-11-30 13:41 ` [PATCH 38/54] ARM: PXA SoCs: " Lennert Buytenhek
2010-11-30 13:41 ` [PATCH 39/54] ARM: rpc: " Lennert Buytenhek
2010-12-03 17:26   ` Russell King - ARM Linux
2010-11-30 13:41 ` [PATCH 40/54] ARM: Samsung SoCs: " Lennert Buytenhek
2010-12-03 11:56   ` Kukjin Kim
2010-12-14 19:43     ` 'Lennert Buytenhek'
2010-12-14 22:10     ` 'Lennert Buytenhek'
2010-12-17  5:40       ` Kukjin Kim
2010-12-21 10:03       ` Kukjin Kim
2010-12-21 10:24         ` 'Lennert Buytenhek'
2010-11-30 13:41 ` [PATCH 41/54] ARM: sa1100: " Lennert Buytenhek
2010-11-30 13:41 ` [PATCH 42/54] ARM: shark: " Lennert Buytenhek
2010-11-30 13:41 ` [PATCH 43/54] ARM: stmp378x: " Lennert Buytenhek
2010-11-30 13:41 ` [PATCH 44/54] ARM: stmp37xx: " Lennert Buytenhek
2010-11-30 13:41 ` [PATCH 45/54] ARM: tcc8k: " Lennert Buytenhek
2010-11-30 13:41 ` [PATCH 46/54] ARM: tegra: " Lennert Buytenhek
2010-11-30 13:41 ` [PATCH 47/54] ARM: versatile: " Lennert Buytenhek
2010-12-03 17:26   ` Russell King - ARM Linux
2010-12-06 12:10   ` Sergei Shtylyov
2010-12-06 12:58     ` Russell King - ARM Linux
2010-12-23 18:51       ` Sergei Shtylyov
2010-11-30 13:41 ` [PATCH 48/54] ARM: w90x900: " Lennert Buytenhek
2010-12-01  1:46   ` Wan ZongShun
2010-11-30 13:41 ` [PATCH 49/54] ARM: plat-mxc: " Lennert Buytenhek
2010-11-30 13:41 ` [PATCH 50/54] ARM: plat-nomadik: " Lennert Buytenhek
2010-12-13  3:43   ` Rabin Vincent
2010-11-30 13:41 ` [PATCH 51/54] ARM: plat-omap: " Lennert Buytenhek
2010-11-30 13:41 ` [PATCH 52/54] ARM: plat-orion: " Lennert Buytenhek
2010-12-01  0:54   ` Nicolas Pitre
2010-11-30 13:41 ` [PATCH 53/54] ARM: plat-spear: " Lennert Buytenhek
2010-12-01  4:02   ` viresh kumar [this message]
2010-11-30 13:41 ` [PATCH 54/54] ARM: plat-stmp3xxx: " Lennert Buytenhek

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=4CF5C8CA.9000804@st.com \
    --to=viresh.kumar@st.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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).