aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-3.14/999-gpi_irq.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-03-16 07:39:46 +0000
committerJohn Crispin <blogic@openwrt.org>2015-03-16 07:39:46 +0000
commitc59b0d680a93e745d8606dbd69843137e51d12c6 (patch)
treec729676e07553dc7ca781b086c34a92c99a0d341 /target/linux/ramips/patches-3.14/999-gpi_irq.patch
parent7507c287206d512689e89c9cb1c6188851f901fd (diff)
downloadmaster-187ad058-c59b0d680a93e745d8606dbd69843137e51d12c6.tar.gz
master-187ad058-c59b0d680a93e745d8606dbd69843137e51d12c6.tar.bz2
master-187ad058-c59b0d680a93e745d8606dbd69843137e51d12c6.zip
ralink: drop 3.14 support
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44811 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/patches-3.14/999-gpi_irq.patch')
-rw-r--r--target/linux/ramips/patches-3.14/999-gpi_irq.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/target/linux/ramips/patches-3.14/999-gpi_irq.patch b/target/linux/ramips/patches-3.14/999-gpi_irq.patch
deleted file mode 100644
index 698aff97ee..0000000000
--- a/target/linux/ramips/patches-3.14/999-gpi_irq.patch
+++ /dev/null
@@ -1,42 +0,0 @@
---- a/drivers/gpio/gpio-ralink.c
-+++ b/drivers/gpio/gpio-ralink.c
-@@ -148,14 +148,15 @@ static void ralink_gpio_irq_unmask(struc
- {
- struct ralink_gpio_chip *rg;
- unsigned long flags;
-- u32 val;
-+ u32 rise, fall;
-
- rg = (struct ralink_gpio_chip *) d->domain->host_data;
-- val = rt_gpio_r32(rg, GPIO_REG_RENA);
-+ rise = rt_gpio_r32(rg, GPIO_REG_RENA);
-+ fall = rt_gpio_r32(rg, GPIO_REG_FENA);
-
- spin_lock_irqsave(&rg->lock, flags);
-- rt_gpio_w32(rg, GPIO_REG_RENA, val | (BIT(d->hwirq) & rg->rising));
-- rt_gpio_w32(rg, GPIO_REG_FENA, val | (BIT(d->hwirq) & rg->falling));
-+ rt_gpio_w32(rg, GPIO_REG_RENA, rise | (BIT(d->hwirq) & rg->rising));
-+ rt_gpio_w32(rg, GPIO_REG_FENA, fall | (BIT(d->hwirq) & rg->falling));
- spin_unlock_irqrestore(&rg->lock, flags);
- }
-
-@@ -163,14 +164,15 @@ static void ralink_gpio_irq_mask(struct
- {
- struct ralink_gpio_chip *rg;
- unsigned long flags;
-- u32 val;
-+ u32 rise, fall;
-
- rg = (struct ralink_gpio_chip *) d->domain->host_data;
-- val = rt_gpio_r32(rg, GPIO_REG_RENA);
-+ rise = rt_gpio_r32(rg, GPIO_REG_RENA);
-+ fall = rt_gpio_r32(rg, GPIO_REG_FENA);
-
- spin_lock_irqsave(&rg->lock, flags);
-- rt_gpio_w32(rg, GPIO_REG_FENA, val & ~BIT(d->hwirq));
-- rt_gpio_w32(rg, GPIO_REG_RENA, val & ~BIT(d->hwirq));
-+ rt_gpio_w32(rg, GPIO_REG_FENA, fall & ~BIT(d->hwirq));
-+ rt_gpio_w32(rg, GPIO_REG_RENA, rise & ~BIT(d->hwirq));
- spin_unlock_irqrestore(&rg->lock, flags);
- }
-