All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v3 0/2] fdt: Deal correctly with alias nodes
@ 2012-01-17 18:20 Simon Glass
  2012-01-17 18:20   ` [U-Boot] " Simon Glass
       [not found] ` <1326824452-14786-1-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
  0 siblings, 2 replies; 11+ messages in thread
From: Simon Glass @ 2012-01-17 18:20 UTC (permalink / raw)
  To: u-boot

This series proposes a new way to deal with alias nodes and introduces a
function to take care of it.

Drivers can now request an ordered list of compatible nodes in a single
step. This simplifies node discovery for drivers (and keeps this nasty
code in a common place).

If DEBUG is defined the alias function will print messages in the event
of a warning/error.

Changes in v2:
- Add test_fdtdec command to test fdtdec_find_aliases_for_id()
- Allow gaps in the list returned to the caller
- Improve alias checking algorithm to reduce run time
- Rename function to fdtdec_find_aliases_for_id()
- Skip nodes marked as disabled

Changes in v3:
- Change 'continue' to 'break' in last loop, since we are done anyway
- Change fdtdec-test.c to fdtdec_test.c to fit better with U-Boot conventions
- Fix typos and add two assert() checks
- Remove varargs declaration (hang-over from previous implementation)
- Use COMPAT_UNKNOWN instead of COMPAT_NVIDIA_TEGRA20_I2C for test

Simon Glass (2):
  fdt: Add fdtdec_find_aliases() to deal with alias nodes
  fdt: Add tests for fdtdec

 include/fdtdec.h  |   47 +++++++++++
 lib/Makefile      |    1 +
 lib/fdtdec.c      |  116 +++++++++++++++++++++++++++
 lib/fdtdec_test.c |  226 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 390 insertions(+), 0 deletions(-)
 create mode 100644 lib/fdtdec_test.c

-- 
1.7.7.3

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

end of thread, other threads:[~2012-01-23  4:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-17 18:20 [U-Boot] [PATCH v3 0/2] fdt: Deal correctly with alias nodes Simon Glass
2012-01-17 18:20 ` [PATCH v3 1/2] fdt: Add fdtdec_find_aliases() to deal " Simon Glass
2012-01-17 18:20   ` [U-Boot] " Simon Glass
     [not found]   ` <1326824452-14786-2-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2012-01-23  2:04     ` Jerry Van Baren
2012-01-23  2:04       ` Jerry Van Baren
2012-01-23  4:08       ` Simon Glass
2012-01-23  4:08         ` [U-Boot] " Simon Glass
     [not found] ` <1326824452-14786-1-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2012-01-17 18:20   ` [PATCH v3 2/2] fdt: Add tests for fdtdec Simon Glass
2012-01-17 18:20     ` [U-Boot] " Simon Glass
     [not found]     ` <1326824452-14786-3-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2012-01-23  2:04       ` Jerry Van Baren
2012-01-23  2:04         ` Jerry Van Baren

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.