All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bartosz Gołaszewski" <bartekgola@gmail.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>,
	Bartosz Golaszewski <brgl@bgdev.pl>,
	Kent Gibson <warthog618@gmail.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	linux-gpio <linux-gpio@vger.kernel.org>
Subject: Re: [PATCH v1] core: Relax gpiod_chip_open() for symbolic links
Date: Fri, 7 Feb 2020 13:05:00 +0100	[thread overview]
Message-ID: <CAFdkumjmz3pC0p5ei9Cmf79RB-kMB8050VMCFi2soa5ALs71PQ@mail.gmail.com> (raw)
In-Reply-To: <20200207112816.GK10400@smile.fi.intel.com>

pt., 7 lut 2020 o 12:28 Andy Shevchenko
<andriy.shevchenko@linux.intel.com> napisał(a):
>
> On Fri, Feb 07, 2020 at 12:01:46PM +0100, Bartosz Golaszewski wrote:
> > pt., 7 lut 2020 o 11:30 Andy Shevchenko
> > <andriy.shevchenko@linux.intel.com> napisał(a):
> > > On Fri, Feb 07, 2020 at 11:13:43AM +0100, Bartosz Golaszewski wrote:
> > > > czw., 6 lut 2020 o 19:14 Andy Shevchenko
> > > > <andriy.shevchenko@linux.intel.com> napisał(a):
>
> ...
>
> > > > thanks for this - it makes perfect sense. One nit though: could you
> > > > keep the includes ordered alphabetically?
> > >
> > > Probably not. The user space relies a lot on header ordering. And limits.h
> > > sounds like one needed to be included first in many cases. That's why I moved
> > > it to the top. I can do it if you insist, but I consider it wrong approach for
> > > the record.
> >
> > Nah, if anything headers may rely on some preprocessor defines coming
> > before them, but the ordering should be of no importance.
>
> Okay, in any case, if you think it's better to be sorted, can you change it
> when applying? (I don't think we need another version simple for that)
>

Sure.

> > > > Also: it would be great if
> > > > you could add a test case for this to tests/tests-chip.c.
> > >
> > > I will look at it if I can do quickly something.
>
> > If not, don't worry - I can add it later myself.
>
> I briefly looked at this, but it seems not feasible to me in reasonable time,
> sorry.
>
> The problems I encountered are, but not limited to:
> - creating a symlink in a test case folder
> - understanding how to handle interrupt of the test case (we have to remove
>   link ourselves or framework does it for us?)
> - where to put the symbolic link creation: I think it might be a (boolean)
>   parameter to gpio-mockup testing API when we "make a chip" (when device node
>   should appear) to enable symlink with a predefined name (like
>   $testpath/gpiochipX-link)
> - last time I did something (simple!) with GLib was several years ago
>

Sure, I can do it myself - it will probably take me much less time.

Bart

  reply	other threads:[~2020-02-07 12:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-06 18:13 [PATCH v1] core: Relax gpiod_chip_open() for symbolic links Andy Shevchenko
2020-02-07 10:13 ` Bartosz Golaszewski
2020-02-07 10:30   ` Andy Shevchenko
2020-02-07 11:01     ` Bartosz Golaszewski
2020-02-07 11:28       ` Andy Shevchenko
2020-02-07 12:05         ` Bartosz Gołaszewski [this message]
2020-02-07 13:00 ` Bartosz Golaszewski

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=CAFdkumjmz3pC0p5ei9Cmf79RB-kMB8050VMCFi2soa5ALs71PQ@mail.gmail.com \
    --to=bartekgola@gmail.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=bgolaszewski@baylibre.com \
    --cc=brgl@bgdev.pl \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=warthog618@gmail.com \
    /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.