mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] gpiolib debug and led trigger fixes
@ 2013-11-09 13:24 Sebastian Hesselbarth
  2013-11-09 13:24 ` [PATCH 1/4] led: trigger: disable LEDs with trigger before installing it Sebastian Hesselbarth
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Sebastian Hesselbarth @ 2013-11-09 13:24 UTC (permalink / raw)
  To: Sebastian Hesselbarth; +Cc: barebox

This small set of patches first fixes led triggers, where the led
should be disabled, before installing a trigger function. Otherwise,
the led may stay enabled from previous bootloaders messing with it.

The second part of the patches impoves gpiolib command verbosity by
first adding an (optional) callback to get_direction of a gpiochip
pin. Based on that new callback, it adds some more printf information
to reflect gpiochip/gpio pin relation and also print current pin
direction and value, if the corresponding callbacks are available.
Finally, the get_direction callback is added to the Synopsys DW gpio
driver.

Sebastian Hesselbarth (4):
  led: trigger: disable LEDs with trigger before installing it
  gpiolib: add get_direction callback
  gpiolib: make gpiolib command more verbose
  gpio: dw: add get_direction callback

 drivers/gpio/gpio-dw.c |  9 +++++++++
 drivers/gpio/gpiolib.c | 24 +++++++++++++++++++++---
 drivers/led/led-gpio.c |  4 +++-
 include/gpio.h         |  4 ++++
 4 files changed, 37 insertions(+), 4 deletions(-)

---
Cc: barebox@lists.infradead.org
-- 
1.8.4.rc3


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

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

end of thread, other threads:[~2013-11-11  8:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-09 13:24 [PATCH 0/4] gpiolib debug and led trigger fixes Sebastian Hesselbarth
2013-11-09 13:24 ` [PATCH 1/4] led: trigger: disable LEDs with trigger before installing it Sebastian Hesselbarth
2013-11-09 13:24 ` [PATCH 2/4] gpiolib: add get_direction callback Sebastian Hesselbarth
2013-11-09 13:24 ` [PATCH 3/4] gpiolib: make gpiolib command more verbose Sebastian Hesselbarth
2013-11-11  1:30   ` Alexander Aring
2013-11-11  8:07     ` Sascha Hauer
2013-11-11  8:12       ` Alexander Aring
2013-11-09 13:24 ` [PATCH 4/4] gpio: dw: add get_direction callback Sebastian Hesselbarth

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