From: Sascha Hauer <s.hauer@pengutronix.de>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>, barebox@lists.infradead.org
Subject: Re: [PATCH 00/11] Allow GPIOs to be referenced by label
Date: Mon, 29 Oct 2018 12:17:13 +0100 [thread overview]
Message-ID: <20181029111713.ni3nnzpi24xyyyi7@pengutronix.de> (raw)
In-Reply-To: <20181027084235.GD28052@ravnborg.org>
On Sat, Oct 27, 2018 at 10:42:35AM +0200, Sam Ravnborg wrote:
> Hi Andrey.
>
> > This patch series is the result of my work on extending various gpio_*
> > commands in Barebox CLI to allow referencing GPIOs by a label assigned
> > to them via Device Tree or in any other way.
>
> Thanks, I have missed this in the past.
>
> I browsed the patches.
> There are a few that is missing a newline, that you may fix if you post a v2.
> But other than that everything looked good to me.
>
> > AFAICT majority of callers of simple_strto*() functions don't really
> > do very strict error checking which seems really undesirable. With
> > kstrto*() functions in place, and assuming there's no objections to
> > that, what do you think about a separate patch series to replace all
> > of the uses of simple_strto*() with kstrto*() and eventually drop
> > majority of simple_strto*() implementation code?
>
> There should be only one implmentation, and the more strict
> variant makes good sense.
The kstrtox functions epect a terminating 0 or a newline at the end of
the string. strtoull_suffix() is at least one place that cannot directly
be implemented with the kernel functions.
Otherwise yes, I am also in favour to be more strict with the string
checking.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2018-10-29 11:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-27 1:31 Andrey Smirnov
2018-10-27 1:31 ` [PATCH 01/11] gpio: VF610: Propagate error code of gpiochip_add() up Andrey Smirnov
2018-10-27 1:31 ` [PATCH 02/11] VF610: Initialize pinctrl driver before gpio Andrey Smirnov
2018-10-27 1:31 ` [PATCH 03/11] linux/ctype.h: Port _tolower() Andrey Smirnov
2018-10-27 1:31 ` [PATCH 04/11] lib: Port kstrtox.c from Linux kernel Andrey Smirnov
2018-10-27 1:31 ` [PATCH 05/11] commands: gpio: Move argument parsing into a shared function Andrey Smirnov
2018-10-27 1:31 ` [PATCH 06/11] commands: gpio: Use kstrtoint() instead of simple_strtoul() Andrey Smirnov
2018-10-27 1:31 ` [PATCH 07/11] gpiolib: Introduce gpio_find_by_label() Andrey Smirnov
2018-10-27 1:31 ` [PATCH 08/11] commands: gpio: Allow GPIOs to be specified by label Andrey Smirnov
2018-10-27 1:31 ` [PATCH 09/11] VF610: zii-vf610-dev: Drop switch reset GPIO configuration Andrey Smirnov
2018-10-27 1:31 ` [PATCH 10/11] VF610: zii-vf610-dev: Replace board code with gpio-hog nodes Andrey Smirnov
2018-10-29 11:13 ` Sascha Hauer
2018-10-29 17:14 ` Andrey Smirnov
2018-10-27 1:31 ` [PATCH 11/11] ARM: rdu2: " Andrey Smirnov
2018-11-05 16:25 ` Andrey Smirnov
2018-11-06 8:25 ` Sascha Hauer
2018-10-27 8:42 ` [PATCH 00/11] Allow GPIOs to be referenced by label Sam Ravnborg
2018-10-29 11:17 ` Sascha Hauer [this message]
2018-10-29 11:14 ` Sascha Hauer
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=20181029111713.ni3nnzpi24xyyyi7@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=andrew.smirnov@gmail.com \
--cc=barebox@lists.infradead.org \
--cc=sam@ravnborg.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox