aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/patches-3.14/137-1-pinctrl-create-irq-pin-mapping.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-03-16 07:41:24 +0000
committerJohn Crispin <blogic@openwrt.org>2015-03-16 07:41:24 +0000
commitb34d1f6b435b05479c3ddee74be1ef428ae7455a (patch)
tree5517152c2f56e9778150440c47def9ed06b3eea2 /target/linux/sunxi/patches-3.14/137-1-pinctrl-create-irq-pin-mapping.patch
parentad966e5eaad945f22ffdfd404b58e0c3ef6cd9dc (diff)
downloadmaster-187ad058-b34d1f6b435b05479c3ddee74be1ef428ae7455a.tar.gz
master-187ad058-b34d1f6b435b05479c3ddee74be1ef428ae7455a.tar.bz2
master-187ad058-b34d1f6b435b05479c3ddee74be1ef428ae7455a.zip
sunxi: drop 3.14 support
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44824 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/sunxi/patches-3.14/137-1-pinctrl-create-irq-pin-mapping.patch')
-rw-r--r--target/linux/sunxi/patches-3.14/137-1-pinctrl-create-irq-pin-mapping.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/target/linux/sunxi/patches-3.14/137-1-pinctrl-create-irq-pin-mapping.patch b/target/linux/sunxi/patches-3.14/137-1-pinctrl-create-irq-pin-mapping.patch
deleted file mode 100644
index 1e4f1c79df..0000000000
--- a/target/linux/sunxi/patches-3.14/137-1-pinctrl-create-irq-pin-mapping.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 4c228d02d1339a286e259893062ea445be82b573 Mon Sep 17 00:00:00 2001
-From: Chen-Yu Tsai <wens@csie.org>
-Date: Tue, 7 Jan 2014 18:56:29 +0800
-Subject: [PATCH] pinctrl: sunxi: create irq/pin mapping during init
-
-The irq/pin mapping is used to lookup the pin to mux to the irq
-function when the irq is enabled. It is created when gpio_to_irq
-is called. Creating the mapping during init allows us to map the
-interrupts directly from the device tree.
-
-Signed-off-by: Chen-Yu Tsai <wens@csie.org>
----
- drivers/pinctrl/pinctrl-sunxi.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
---- a/drivers/pinctrl/pinctrl-sunxi.c
-+++ b/drivers/pinctrl/pinctrl-sunxi.c
-@@ -531,8 +531,6 @@ static int sunxi_pinctrl_gpio_to_irq(str
- if (!desc)
- return -EINVAL;
-
-- pctl->irq_array[desc->irqnum] = offset;
--
- dev_dbg(chip->dev, "%s: request IRQ for GPIO %d, return %d\n",
- chip->label, offset + chip->base, desc->irqnum);
-
-@@ -759,6 +757,9 @@ static int sunxi_pinctrl_build_state(str
- struct sunxi_desc_function *func = pin->functions;
-
- while (func->name) {
-+ /* Create interrupt mapping while we're at it */
-+ if (!strcmp(func->name, "irq"))
-+ pctl->irq_array[func->irqnum] = pin->pin.number;
- sunxi_pinctrl_add_function(pctl, func->name);
- func++;
- }