Re: [PATCH RFT 2/2] gpio: gpio-pch: Use spinlock for register access protection

From: Linus Walleij
Date: Mon Aug 13 2012 - 08:02:24 EST


On Sun, Jul 29, 2012 at 4:55 AM, Axel Lin <axel.lin@xxxxxxxxx> wrote:

> gpio_chip.can_sleep is 0, but current code uses mutex in pch_gpio_set
> pch_gpio_get and pch_gpio_direction_input functions.
> Thus those functions are not callable from interrupt context.
> This patch converts mutex into spinlock.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>

Same with this, yell or I'll apply.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/