Re: [PATCH 4/4] pinctrl: rockchip: Protect read-modify-write with the spinlock

2014-10-20 Thread Doug Anderson
Hi, On Mon, Oct 20, 2014 at 4:27 PM, Doug Anderson wrote: > @@ -1464,15 +1474,20 @@ static int rockchip_irq_set_type(struct irq_data *d, > unsigned int type) > if (ret < 0) > return ret; > > + spin_lock_irqsave(&bank->slock, flags); > + > data = readl_relaxe

[PATCH 4/4] pinctrl: rockchip: Protect read-modify-write with the spinlock

2014-10-20 Thread Doug Anderson
There were a few instances where the rockchip pinctrl driver would do read-modify-write with no spinlock. Add a spinlock for these cases. Signed-off-by: Doug Anderson --- drivers/pinctrl/pinctrl-rockchip.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/pinctrl/pin