[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140411144431.04fb148d@xhacker>
Date: Fri, 11 Apr 2014 14:44:31 +0800
From: Jisheng Zhang <jszhang@...vell.com>
To: Antoine Ténart
<antoine.tenart@...e-electrons.com>,
"sebastian.hesselbarth@...il.com" <sebastian.hesselbarth@...il.com>,
"linus.walleij@...aro.org" <linus.walleij@...aro.org>
CC: "alexandre.belloni@...e-electrons.com"
<alexandre.belloni@...e-electrons.com>,
Jimmy Xu <zmxu@...vell.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH RESEND 2/5] pinctrl: berlin: add a pinctrl driver for
Marvell Berlin SoCs
Hi Antoine,
On Thu, 10 Apr 2014 06:07:51 -0700
Antoine Ténart <antoine.tenart@...e-electrons.com> wrote:
...
> +static int berlin_pinmux_enable(struct pinctrl_dev *pctrl_dev,
> + unsigned function,
> + unsigned group)
> +{
> + struct berlin_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrl_dev);
> + struct berlin_pinctrl_group *group_desc = pctrl->groups + group;
> + struct berlin_pinctrl_function *function_desc =
> + pctrl->functions + function;
> + unsigned long flags;
> + u32 regval;
> +
> + spin_lock_irqsave(&pctrl->lock, flags);
> +
> + regval = readl(group_desc->reg);
> + regval &= group_desc->mask;
> + regval |= function_desc->muxval << group_desc->lsb;
> + writel(regval, group_desc->reg);
Could we use relaxed version instead?
Thanks,
Jisheng
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists