Re: [PATCH] gpio: bcm281xx: Centralize register locking

From: Linus Walleij
Date: Thu Jan 23 2014 - 03:22:30 EST


On Wed, Jan 22, 2014 at 1:10 AM, Markus Mayer <markus.mayer@xxxxxxxxxx> wrote:

> Rather than unlock/re-lock for every write access, unlock a GPIO when
> it is requested and re-lock it when it is freed. As a result, the GPIO
> helper functions no longer have to deal with unlocking and re-locking
> the register.
>
> In addition, only unlock a specific GPIO rather than unlocking the
> entire GPIO bank as before.
>
> Signed-off-by: Markus Mayer <markus.mayer@xxxxxxxxxx>
> Reviewed-by: Tim Kryger <tim.kryger@xxxxxxxxxx>

Patch applied (for v3.15)

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/