All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
	"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
	<devicetree@vger.kernel.org>, Rabin Vincent <rabinv@axis.com>,
	Bartosz Golaszewski <brgl@bgdev.pl>,
	"open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Einar Vading <einar.vading@axis.com>,
	Sascha Hauer <kernel@pengutronix.de>
Subject: Re: SV: [PATCH RFC] gpio: new driver for a gpio simulator
Date: Sat, 3 Nov 2018 22:15:04 +0100	[thread overview]
Message-ID: <20181103211504.5vi5jnsus3sppm7s@pengutronix.de> (raw)
In-Reply-To: <CACRpkdbiSrpzhCwu6CdX9+_xqkELgG2HyJG0tmnCKEbwPPd2ng@mail.gmail.com>

On Tue, Oct 30, 2018 at 01:45:29PM +0100, Linus Walleij wrote:
> On Thu, Oct 18, 2018 at 9:16 PM Uwe Kleine-K�nig
> <u.kleine-koenig@pengutronix.de> wrote:
> > [Bartosz]
> > > I do believe that having a single driver will cause less confusion in
> > > the future and make it less likely that someone needing another
> > > testing future will try to get merged a third separate driver. Linus
> > > will have the last word of course but personally I'd like to work
> > > towards extending gpio-mockup.
> >
> > I won't argue here. Iff you think gpio-simulator is good to take without
> > merging with gpio-mockup I'm willing to work on the (other) identified
> > weaknesses.
> 
> We just don't want to have to maintain two synthetic drivers for this.
> 
> libgpiod has an extensive set of tests:
> https://github.com/brgl/libgpiod/tree/master/tests
> 
> If gpio-simulator should replace gpio-mockup, all it needs to do
> is pass all these tests without changes. That is the beauty of
> test driven development.

Just from a quick glance, it won't be able to pass without modifications
(which I think should be fine). The place that won't work is
event_worker() which hardcodes some things specific to the mockup
driver (i.e. the sysfs path).

> However I would have a serious allergic reaction to any
> "merge this now fix any tests later" or "not my problem to
> pass these tests" approach.

I agree here. gpio-mockup shouldn't be deleted if that breaks libgpiod.

> A slot-in replacement doing all that gpio-mockup does and then some
> would likely be accepted on the condition that gpio-mockup is deleted
> at the same time, as that would prove it is a bigger and better swiss
> army knife for GPIO simulation/mockuping.

Not sure I find the time to work on this in the near future.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-K�nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

      reply	other threads:[~2018-11-04  6:27 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-08 10:13 [PATCH RFC] gpio: new driver for a gpio simulator Uwe Kleine-König
2018-10-08 13:08 ` Uwe Kleine-König
2018-10-09 12:51 ` Linus Walleij
2018-10-09 19:11   ` Uwe Kleine-König
2018-10-10 11:47     ` Linus Walleij
2018-10-11  8:16       ` Uwe Kleine-König
2018-10-11  9:49         ` Vincent Whitchurch
2018-10-12  8:02           ` SV: " Einar Vading
2018-10-12  9:06             ` Uwe Kleine-König
2018-10-12  9:27               ` Einar Vading
2018-10-12  9:47                 ` Uwe Kleine-König
2018-10-15  9:54                   ` Bartosz Golaszewski
2018-10-15 20:03                     ` Uwe Kleine-König
2018-10-18 15:03                       ` Bartosz Golaszewski
2018-10-18 19:16                         ` Uwe Kleine-König
2018-10-30 12:45                           ` Linus Walleij
2018-11-03 21:15                             ` Uwe Kleine-König [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181103211504.5vi5jnsus3sppm7s@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=brgl@bgdev.pl \
    --cc=devicetree@vger.kernel.org \
    --cc=einar.vading@axis.com \
    --cc=kernel@pengutronix.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=rabinv@axis.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.