[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkda3EF8GDVE=9cCy2z+4on3kXN13Zs0RKSNqWbQi44BcYQ@mail.gmail.com>
Date: Tue, 15 Nov 2016 10:22:22 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Chen-Yu Tsai <wens@...e.org>
Cc: Maxime Ripard <maxime.ripard@...e-electrons.com>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
linux-sunxi <linux-sunxi@...glegroups.com>
Subject: Re: [PATCH v3 3/3] pinctrl: sunxi: Make sunxi_pconf_group_set use
sunxi_pconf_reg helper
On Fri, Nov 11, 2016 at 10:50 AM, Chen-Yu Tsai <wens@...e.org> wrote:
> The sunxi_pconf_reg helper introduced in the last patch gives us the
> chance to rework sunxi_pconf_group_set to have it match the structure
> of sunxi_pconf_(group_)get and make it easier to understand.
>
> For each config to set, it:
>
> 1. checks if the parameter is supported.
> 2. checks if the argument is within limits.
> 3. converts argument to the register value.
> 4. writes to the register with spinlock held.
>
> As a result the function now blocks unsupported config parameters,
> instead of silently ignoring them.
>
> Signed-off-by: Chen-Yu Tsai <wens@...e.org>
> Acked-by: Maxime Ripard <maxime.ripard@...e-electrons.com>
Patch applied.
Yours,
Linus Walleij
Powered by blists - more mailing lists