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


Groups > linux.kernel > #1476993

Re: [RFC PATCH] pinctrl: Add SX150X GPIO Extender Pinctrl Driver

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [RFC PATCH] pinctrl: Add SX150X GPIO Extender Pinctrl Driver
Date 2016-09-06 00:50 +0200
Message-ID <seaSd-1HO-3@gated-at.bofh.it> (permalink)
References <sa2JA-1qu-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Aug 25, 2016 at 3:11 PM, Neil Armstrong <narmstrong@baylibre.com> wrote:

> Since the I2C sx150x GPIO expander driver uses platform_data to managed
> the pins configurations, rewrite the driver as a pinctrl driver using
> pinconf to get pin configurations from DT.
>
> The pinctrl driver is functionnally as the gpio-only driver equivalent
> and can use DT for pinconf.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>

Overall I'd say this is a nice rewrite. I'd like the following:

- Include Peter Rosin, Wei Chen, Roland Stigge and Vladimir
  Zapolskiy on subsequent posts
  (Added on To:) ideally I want Tested-by: tags from them
  to verify that it doesn't break their current set-ups
  (does it? Especially LPC32xx)

- We need a migration plan: everything that was selecting
  GPIO_SX150X before should now select this instead.
  Just let the Kconfig entry in the drivers/gpio/Kconfig select
  this new driver?

- Make sure it is a slot-in replacement. Else make sure it
  is.

- Delete the old sx150x driver from drivers/gpio in the same
  patch. I'd hate to maintain them side by side. If I apply this,
  the old one must go out at the same time. Conversely I can
  revert the patch and get the old driver back.

- Strangely I don't see refernces to this driver in any
  device tree. Are people not upstreaming their boards?

Yours,
Linus Walleij

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH] pinctrl: Add SX150X GPIO Extender Pinctrl Driver Neil Armstrong <narmstrong@baylibre.com> - 2016-08-25 15:20 +0200
  Re: [RFC PATCH] pinctrl: Add SX150X GPIO Extender Pinctrl Driver Linus Walleij <linus.walleij@linaro.org> - 2016-09-06 00:50 +0200
    Re: [RFC PATCH] pinctrl: Add SX150X GPIO Extender Pinctrl Driver Neil Armstrong <narmstrong@baylibre.com> - 2016-09-06 10:30 +0200
      Re: [RFC PATCH] pinctrl: Add SX150X GPIO Extender Pinctrl Driver Linus Walleij <linus.walleij@linaro.org> - 2016-09-08 00:20 +0200

csiph-web