* [PATCH] ARM: msm: gpio-v2 irq_data conversion.
@ 2011-01-21 11:02 Lennert Buytenhek
2011-01-21 11:11 ` Russell King - ARM Linux
0 siblings, 1 reply; 3+ messages in thread
From: Lennert Buytenhek @ 2011-01-21 11:02 UTC (permalink / raw)
To: linux-arm-kernel
Convert gpio-v2.c to the new irq_data methods. This was overlooked
in the first pass as there is currently no defconfig in the tree that
builds this file.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
diff --git a/arch/arm/mach-msm/gpio-v2.c b/arch/arm/mach-msm/gpio-v2.c
index 0de19ec..b2a0113 100644
--- a/arch/arm/mach-msm/gpio-v2.c
+++ b/arch/arm/mach-msm/gpio-v2.c
@@ -230,18 +230,18 @@ static void msm_gpio_update_dual_edge_pos(unsigned gpio)
val, val2);
}
-static void msm_gpio_irq_ack(unsigned int irq)
+static void msm_gpio_irq_ack(struct irq_data *d)
{
- int gpio = msm_irq_to_gpio(&msm_gpio.gpio_chip, irq);
+ int gpio = msm_irq_to_gpio(&msm_gpio.gpio_chip, d->irq);
writel(BIT(INTR_STATUS), GPIO_INTR_STATUS(gpio));
if (test_bit(gpio, msm_gpio.dual_edge_irqs))
msm_gpio_update_dual_edge_pos(gpio);
}
-static void msm_gpio_irq_mask(unsigned int irq)
+static void msm_gpio_irq_mask(struct irq_data *d)
{
- int gpio = msm_irq_to_gpio(&msm_gpio.gpio_chip, irq);
+ int gpio = msm_irq_to_gpio(&msm_gpio.gpio_chip, d->irq);
unsigned long irq_flags;
spin_lock_irqsave(&tlmm_lock, irq_flags);
@@ -251,9 +251,9 @@ static void msm_gpio_irq_mask(unsigned int irq)
spin_unlock_irqrestore(&tlmm_lock, irq_flags);
}
-static void msm_gpio_irq_unmask(unsigned int irq)
+static void msm_gpio_irq_unmask(struct irq_data *d)
{
- int gpio = msm_irq_to_gpio(&msm_gpio.gpio_chip, irq);
+ int gpio = msm_irq_to_gpio(&msm_gpio.gpio_chip, d->irq);
unsigned long irq_flags;
spin_lock_irqsave(&tlmm_lock, irq_flags);
@@ -263,9 +263,9 @@ static void msm_gpio_irq_unmask(unsigned int irq)
spin_unlock_irqrestore(&tlmm_lock, irq_flags);
}
-static int msm_gpio_irq_set_type(unsigned int irq, unsigned int flow_type)
+static int msm_gpio_irq_set_type(struct irq_data *d, unsigned int flow_type)
{
- int gpio = msm_irq_to_gpio(&msm_gpio.gpio_chip, irq);
+ int gpio = msm_irq_to_gpio(&msm_gpio.gpio_chip, d->irq);
unsigned long irq_flags;
uint32_t bits;
@@ -275,14 +275,14 @@ static int msm_gpio_irq_set_type(unsigned int irq, unsigned int flow_type)
if (flow_type & IRQ_TYPE_EDGE_BOTH) {
bits |= BIT(INTR_DECT_CTL);
- irq_desc[irq].handle_irq = handle_edge_irq;
+ irq_desc[d->irq].handle_irq = handle_edge_irq;
if ((flow_type & IRQ_TYPE_EDGE_BOTH) == IRQ_TYPE_EDGE_BOTH)
__set_bit(gpio, msm_gpio.dual_edge_irqs);
else
__clear_bit(gpio, msm_gpio.dual_edge_irqs);
} else {
bits &= ~BIT(INTR_DECT_CTL);
- irq_desc[irq].handle_irq = handle_level_irq;
+ irq_desc[d->irq].handle_irq = handle_level_irq;
__clear_bit(gpio, msm_gpio.dual_edge_irqs);
}
@@ -321,9 +321,9 @@ static void msm_summary_irq_handler(unsigned int irq, struct irq_desc *desc)
desc->chip->ack(irq);
}
-static int msm_gpio_irq_set_wake(unsigned int irq, unsigned int on)
+static int msm_gpio_irq_set_wake(struct irq_data *d, unsigned int on)
{
- int gpio = msm_irq_to_gpio(&msm_gpio.gpio_chip, irq);
+ int gpio = msm_irq_to_gpio(&msm_gpio.gpio_chip, d->irq);
if (on) {
if (bitmap_empty(msm_gpio.wake_irqs, NR_GPIO_IRQS))
@@ -340,11 +340,11 @@ static int msm_gpio_irq_set_wake(unsigned int irq, unsigned int on)
static struct irq_chip msm_gpio_irq_chip = {
.name = "msmgpio",
- .mask = msm_gpio_irq_mask,
- .unmask = msm_gpio_irq_unmask,
- .ack = msm_gpio_irq_ack,
- .set_type = msm_gpio_irq_set_type,
- .set_wake = msm_gpio_irq_set_wake,
+ .irq_mask = msm_gpio_irq_mask,
+ .irq_unmask = msm_gpio_irq_unmask,
+ .irq_ack = msm_gpio_irq_ack,
+ .irq_set_type = msm_gpio_irq_set_type,
+ .irq_set_wake = msm_gpio_irq_set_wake,
};
static int __devinit msm_gpio_probe(struct platform_device *dev)
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH] ARM: msm: gpio-v2 irq_data conversion.
2011-01-21 11:02 [PATCH] ARM: msm: gpio-v2 irq_data conversion Lennert Buytenhek
@ 2011-01-21 11:11 ` Russell King - ARM Linux
2011-01-21 22:47 ` David Brown
0 siblings, 1 reply; 3+ messages in thread
From: Russell King - ARM Linux @ 2011-01-21 11:11 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Jan 21, 2011 at 12:02:19PM +0100, Lennert Buytenhek wrote:
> Convert gpio-v2.c to the new irq_data methods. This was overlooked
> in the first pass as there is currently no defconfig in the tree that
> builds this file.
>
> Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Rather than merging this into the MSM git tree, please let me have your
acks so that it can be packaged up with the addition of adding
select GENERIC_HARDIRQS_NO_DEPRECATED
to the ARM architecture (otherwise MSM will break.)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] ARM: msm: gpio-v2 irq_data conversion.
2011-01-21 11:11 ` Russell King - ARM Linux
@ 2011-01-21 22:47 ` David Brown
0 siblings, 0 replies; 3+ messages in thread
From: David Brown @ 2011-01-21 22:47 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Jan 21 2011, Russell King - ARM Linux wrote:
> On Fri, Jan 21, 2011 at 12:02:19PM +0100, Lennert Buytenhek wrote:
>> Convert gpio-v2.c to the new irq_data methods. This was overlooked
>> in the first pass as there is currently no defconfig in the tree that
>> builds this file.
>>
>> Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
>
> Rather than merging this into the MSM git tree, please let me have your
> acks so that it can be packaged up with the addition of adding
> select GENERIC_HARDIRQS_NO_DEPRECATED
> to the ARM architecture (otherwise MSM will break.)
Acked-by: David Brown <davidb@codeaurora.org>
I'm also working on getting some defconfigs for these targets into
linux-next.
David
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-21 22:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-21 11:02 [PATCH] ARM: msm: gpio-v2 irq_data conversion Lennert Buytenhek
2011-01-21 11:11 ` Russell King - ARM Linux
2011-01-21 22:47 ` David Brown
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).