mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 00/11] Allow GPIOs to be referenced by label
@ 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
                   ` (12 more replies)
  0 siblings, 13 replies; 19+ messages in thread
From: Andrey Smirnov @ 2018-10-27  1:31 UTC (permalink / raw)
  To: barebox; +Cc: Andrey Smirnov

Everyone:

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.

Sascha:

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?

Thanks,
Andrey Smirnov

Andrey Smirnov (11):
  gpio: VF610: Propagate error code of gpiochip_add() up
  VF610: Initialize pinctrl driver before gpio
  linux/ctype.h: Port _tolower()
  lib: Port kstrtox.c from Linux kernel
  commands: gpio: Move argument parsing into a shared function
  commands: gpio: Use kstrtoint() instead of simple_strtoul()
  gpiolib: Introduce gpio_find_by_label()
  commands: gpio: Allow GPIOs to be specified by label
  VF610: zii-vf610-dev: Drop switch reset GPIO configuration
  VF610: zii-vf610-dev: Replace board code with gpio-hog nodes
  ARM: rdu2: Replace board code with gpio-hog nodes

 arch/arm/boards/zii-imx6q-rdu2/board.c |  38 ---
 arch/arm/boards/zii-vf610-dev/board.c  |  61 -----
 arch/arm/dts/imx6qdl-zii-rdu2.dtsi     |  36 +++
 arch/arm/dts/vf610-zii-cfu1.dts        |  25 ++
 arch/arm/dts/vf610-zii-ssmb-spu3.dts   |   9 +
 commands/gpio.c                        |  54 ++--
 drivers/gpio/gpio-vf610.c              |   5 +-
 drivers/gpio/gpiolib.c                 |  17 ++
 drivers/pinctrl/pinctrl-vf610.c        |   2 +-
 include/gpio.h                         |   6 +
 include/linux/ctype.h                  |   9 +
 include/linux/kernel.h                 |  95 +++++++
 include/linux/string.h                 |   2 +
 lib/Makefile                           |   1 +
 lib/kstrtox.c                          | 366 +++++++++++++++++++++++++
 lib/kstrtox.h                          |   9 +
 16 files changed, 613 insertions(+), 122 deletions(-)
 create mode 100644 lib/kstrtox.c
 create mode 100644 lib/kstrtox.h

-- 
2.17.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2018-11-06  8:25 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-27  1:31 [PATCH 00/11] Allow GPIOs to be referenced by label 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
2018-10-29 11:14 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox