Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1318992 > unrolled thread

Re: [PATCH v2] pinctrl: rockchip: add support for the rk3399

Started byLinus Walleij <linus.walleij@linaro.org>
First post2016-01-27 15:10 +0100
Last post2016-01-27 15:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2] pinctrl: rockchip: add support for the rk3399 Linus Walleij <linus.walleij@linaro.org> - 2016-01-27 15:10 +0100
    Re: [PATCH v2] pinctrl: rockchip: add support for the rk3399 Heiko Stübner <heiko@sntech.de> - 2016-01-27 15:20 +0100

#1318992 — Re: [PATCH v2] pinctrl: rockchip: add support for the rk3399

FromLinus Walleij <linus.walleij@linaro.org>
Date2016-01-27 15:10 +0100
SubjectRe: [PATCH v2] pinctrl: rockchip: add support for the rk3399
Message-ID<qVyXi-4EQ-37@gated-at.bofh.it>
On Thu, Jan 7, 2016 at 8:41 AM, David Wu <wdc@rock-chips.com> wrote:

> From: David Wu <david.wu@rock-chips.com>
>
> The pinctrl of rk3399 is much different from other's,
> especially the 3bits of drive strength.
>
> Signed-off-by: David Wu <david.wu@rock-chips.com>
> ---
> change from v1:
> - need spin_unlock_irqrestore for set drive default case

Heiko can you please look at this patch?

> +       { .compatible = "rockchip,rk3399-pinctrl",
> +               .data = (void *)&rk3399_pin_ctrl },

I guess this requires a small patch to some binding file.
It's OK to fold that into this patch.

Yours,
Linus Walleij

[toc] | [next] | [standalone]


#1319011

FromHeiko Stübner <heiko@sntech.de>
Date2016-01-27 15:20 +0100
Message-ID<qVz6X-4J4-45@gated-at.bofh.it>
In reply to#1318992
Am Mittwoch, 27. Januar 2016, 15:02:18 schrieb Linus Walleij:
> On Thu, Jan 7, 2016 at 8:41 AM, David Wu <wdc@rock-chips.com> wrote:
> > From: David Wu <david.wu@rock-chips.com>
> > 
> > The pinctrl of rk3399 is much different from other's,
> > especially the 3bits of drive strength.
> > 
> > Signed-off-by: David Wu <david.wu@rock-chips.com>
> > ---
> > change from v1:
> > - need spin_unlock_irqrestore for set drive default case
> 
> Heiko can you please look at this patch?

sorry, about that falling so far down my inbox. I'll try to look at it today 
or tomorrow.

But overall it looks good.

@David: if you wake up before I manage to review more in-depth, the
"reading register twice" (+writing counterpart)
+                       /* need to read regs twice */
+                       ret = regmap_read(regmap, reg, &temp);
+                       if (ret)
+                               return ret;

should definitly get more explanation on how that access scheme works. Seems to 
be some special register access method with the register returning different 
values each time? As I don't have a manual for the soc yet this is definitly 
curious for me :-)

> 
> > +       { .compatible = "rockchip,rk3399-pinctrl",
> > +               .data = (void *)&rk3399_pin_ctrl },
> 
> I guess this requires a small patch to some binding file.
> It's OK to fold that into this patch.

@David:
Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.txt

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web