Re: [PATCH] pch_gpio: transform mutex into spinlock

From: Tomoya MORINAGA
Date: Mon Jun 27 2011 - 21:05:04 EST


(2011/06/28 7:47), Grant Likely wrote:
On Tue, Jun 21, 2011 at 04:17:27PM +0200, Alexander Stein wrote:
gpio_chip.can_sleep is 0, but gpio_set_value& friends lock a mutex. Thus
those functions are not callable from interrupt context.
Changing mutex into spinlock.

Signed-off-by: Alexander Stein<alexander.stein@xxxxxxxxxxxxxxxxxxxxx>

Tomoya, what do you think of this patch?


Seeing some upstreamed GPIO driver, Alexander's comment looks right.

Best Regards,

tomoya
OKI SEMICONDUCTOR CO., LTD.
--
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/