projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d8c707
)
pinctrl:fix irq operation bug
author
luowei
<lw@rock-chips.com>
Mon, 30 Dec 2013 01:39:15 +0000
(09:39 +0800)
committer
luowei
<lw@rock-chips.com>
Mon, 30 Dec 2013 01:39:15 +0000
(09:39 +0800)
drivers/pinctrl/pinctrl-rockchip.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-rockchip.c
b/drivers/pinctrl/pinctrl-rockchip.c
index fff102b4eb503ca78c57b4a301f9710bfc41bc68..7ce7a95a6198d1a9645d61ae03931cba4543e8d8 100755
(executable)
--- a/
drivers/pinctrl/pinctrl-rockchip.c
+++ b/
drivers/pinctrl/pinctrl-rockchip.c
@@
-1689,7
+1689,7
@@
static void rockchip_irq_demux(unsigned int irq, struct irq_desc *desc)
u32 pend;
bool edge_changed = false;
-
dev_dbg(bank->drvdata->dev, "got irq for bank %s\n"
, bank->name);
+
DBG_PINCTRL("%s:got irq for bank %s\n", __func__
, bank->name);
chained_irq_enter(chip, desc);
@@
-1830,9
+1830,11
@@
static inline void rockchip_gpio_bit_op(void __iomem *reg_base, unsigned int off
{
u32 val = __raw_readl(reg_base + offset);
if (flag)
- val |=
bit
;
+ val |=
BIT(bit)
;
else
- val &= ~bit;
+ val &= ~BIT(bit);
+
+
__raw_writel(val, reg_base + offset);
}