mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] Introduce deferred probing
@ 2015-04-10  1:02 Sebastian Hesselbarth
  2015-04-10  1:02 ` [PATCH 1/4] base: " Sebastian Hesselbarth
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Sebastian Hesselbarth @ 2015-04-10  1:02 UTC (permalink / raw)
  To: Sebastian Hesselbarth; +Cc: barebox

As expected, the Lenovo ix4 has an poor-man's GPIO expander (74x163)
connected by (guess what) GPIO bitbang SPI. This causes driver probing
to fail when the GPIO expander is probed before GPIO SPI driver.

This patch set introduces deferred probing support into base/driver.c
by moving drivers that request probe deferral to an extra device list
that will be reprobed later. As -EPROBE_DEFER is an error in general,
the rest of the patch set amends gpio and led parts to deal with this
special case.

The corresponding drivers and support for Lenovo ix4 will be added in
a third patch set.

Sebastian Hesselbarth (4):
  base: Introduce deferred probing
  gpio: Return -EPROBE_DEFER on gpio_get_num()
  OF: gpio: Silence error message on -EPROBE_DEFER
  led: gpio: Properly deal with deferred probing

 drivers/base/driver.c       | 42 +++++++++++++++++++++++++++++++++++++++---
 drivers/gpio/gpiolib.c      |  5 ++++-
 drivers/led/led-gpio.c      | 15 ++++++++++++++-
 drivers/of/of_gpio.c        |  5 +++--
 include/asm-generic/errno.h |  1 +
 5 files changed, 61 insertions(+), 7 deletions(-)

---
Cc: barebox@lists.infradead.org
-- 
2.1.0


_______________________________________________
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:[~2015-04-13 14:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-10  1:02 [PATCH 0/4] Introduce deferred probing Sebastian Hesselbarth
2015-04-10  1:02 ` [PATCH 1/4] base: " Sebastian Hesselbarth
2015-04-13  6:54   ` Sascha Hauer
2015-04-13 14:26     ` Sebastian Hesselbarth
2015-04-10  1:02 ` [PATCH 2/4] gpio: Return -EPROBE_DEFER on gpio_get_num() Sebastian Hesselbarth
2015-04-10  1:02 ` [PATCH 3/4] OF: gpio: Silence error message on -EPROBE_DEFER Sebastian Hesselbarth
2015-04-10  1:02 ` [PATCH 4/4] led: gpio: Properly deal with deferred probing Sebastian Hesselbarth
2015-04-13  8:14 ` [PATCH 0/4] Introduce " Sascha Hauer

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