lkml.org 
[lkml]   [2012]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] gpiolib: Add support for Wolfson Microelectronics Arizona class devices
From
On Sat, Jun 23, 2012 at 8:29 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:

I'm uncertain when it comes to the semantics of these babies,
and can't really tell what's going on:

> +       return regmap_update_bits(arizona->regmap, ARIZONA_GPIO1_CTRL + offset,
> +                                 ARIZONA_GPN_DIR, ARIZONA_GPN_DIR);
(...)
> +       return regmap_update_bits(arizona->regmap, ARIZONA_GPIO1_CTRL + offset,
> +                                 ARIZONA_GPN_DIR | ARIZONA_GPN_LVL, value);
(...)
> +       regmap_update_bits(arizona->regmap, ARIZONA_GPIO1_CTRL + offset,
> +                          ARIZONA_GPN_LVL, value);

I'm guessing that regmap is caching, selectively updating volatile
regs and marshalling the writes in the background.

The rest looks simple and flawless, and of course I trust that you're
doing the right thing with regmap anyway so:
Acked-by: Linus Walleij <linus.walleij@linaro.org>

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

\
 
 \ /
  Last update: 2012-06-25 22:01    [W:0.145 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site