projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec879f1
)
pinctrl: sunxi: Fix irq_of_xlate for the r_pio pinctrl block
author
Hans de Goede
<
[email protected]
>
Fri, 16 Oct 2015 07:46:11 +0000
(09:46 +0200)
committer
Linus Walleij
<
[email protected]
>
Fri, 23 Oct 2015 08:11:34 +0000
(10:11 +0200)
The r_pio gpio / pin controller has a pin_base of non 0, we need to
adjust for this before calling sunxi_pinctrl_desc_find_function_by_pin.
Signed-off-by: Hans de Goede <
[email protected]
>
Acked-by: Chen-Yu Tsai <
[email protected]
>
Acked-by: Maxime Ripard <
[email protected]
>
Signed-off-by: Linus Walleij <
[email protected]
>
drivers/pinctrl/sunxi/pinctrl-sunxi.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
index fe2c74a10245d72318352544223bece01d8355ba..21fd638171f92d7070cb9dc724e2b2b9bbc1e651 100644
(file)
--- a/
drivers/pinctrl/sunxi/pinctrl-sunxi.c
+++ b/
drivers/pinctrl/sunxi/pinctrl-sunxi.c
@@
-716,6
+716,7
@@
static int sunxi_pinctrl_irq_of_xlate(struct irq_domain *d,
unsigned long *out_hwirq,
unsigned int *out_type)
{
+ struct sunxi_pinctrl *pctl = d->host_data;
struct sunxi_desc_function *desc;
int pin, base;
@@
-723,10
+724,9
@@
static int sunxi_pinctrl_irq_of_xlate(struct irq_domain *d,
return -EINVAL;
base = PINS_PER_BANK * intspec[0];
- pin = base + intspec[1];
+ pin =
pctl->desc->pin_base +
base + intspec[1];
- desc = sunxi_pinctrl_desc_find_function_by_pin(d->host_data,
- pin, "irq");
+ desc = sunxi_pinctrl_desc_find_function_by_pin(pctl, pin, "irq");
if (!desc)
return -EINVAL;