2019-01-07 |
state: find backend node with its reproducible name
...
This ports the following barebox commit and removes the now no longer used noop
definition of of_find_node_by_devpath() that was introduced in commit "state:
find device node from device path, not from device node path":
| commit 1eddb0d
| Author: Sascha Hauer <s.hauer@pengutronix.de>
| Date: Tue Feb 20 12:41:26 2018 +0100
|
| state: find backend node with its reproducible name
|
| When fixing up the kernels state nodes we depended on the full node path
| of the input device tree. This does not work when the kernel device tree
| has different names. This has happened lately when the i.MX6 device
| trees got their leading zeroes removed from the node names.
|
| Use of_find_node_by_reproducible_name() to find the node corresponding
| to the storage backend node in the kernel device tree.
|
| Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Ulrich Ölmann
authored
on 18 Dec 2018
Roland Hieber
committed
on 7 Jan 2019
|
state: remove unused arguments from state_new_from_node()
...
Other than in barebox the offset and size of a state's backend device do not
necessarily equal zero in Linux userspace (EEPROMs & block devices). So we have
to consider that and differentiate between both usecases here while porting the
following barebox commit and removing the now no longer used noop definition of
of_find_path_by_node():
| commit a66a8d7
| Author: Sascha Hauer <s.hauer@pengutronix.de>
| Date: Tue Feb 20 12:21:00 2018 +0100
|
| state: remove unused arguments from state_new_from_node()
|
| state_new_from_node() has arguments describing the backend path. These
| are never used in barebox, the backend path is always derived from the
| device nodes backend description. Remove these arguments.
|
| Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
[rhi: fixed tabs vs. spaces indentation in state_new_from_node()]
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Ulrich Ölmann
authored
on 18 Dec 2018
Roland Hieber
committed
on 7 Jan 2019
|
state: find device node from device path, not from device node path
...
This adds a dummy version of of_find_node_by_devpath() to make the linker happy
and ports the following barebox commit:
| commit e627903
| Author: Sascha Hauer <s.hauer@pengutronix.de>
| Date: Thu Mar 30 16:33:26 2017 +0200
|
| state: find device node from device path, not from device node path
|
| The device node path may change from the internal device tree to the
| one Linux is started with, so using this path to fixup the tree is
| not very robust. Instead, use of_find_node_by_devpath() which has
| been created for exactly this purpose.
|
| Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Ulrich Ölmann
authored
on 18 Dec 2018
Roland Hieber
committed
on 7 Jan 2019
|
state: Make pointing to the backend using a phandle the only supported method
...
This ports the following barebox commit and removes the now no longer used noop
definition of of_find_path():
| commit 99020ca
| Author: Sascha Hauer <s.hauer@pengutronix.de>
| Date: Tue Mar 21 13:57:51 2017 +0100
|
| state: Make pointing to the backend using a phandle the only supported method
|
| All other methods are broken for some time already: When starting the
| kernel the state code rewrites the state node in the device tree and
| replaced the "backend" property with a phandle - even when the target
| can't be described as a phandle. Since using phandles is the nicest way
| to point to the storage device anyway remove the other methods.
|
| Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Ulrich Ölmann
authored
on 18 Dec 2018
Roland Hieber
committed
on 7 Jan 2019
|
libdt: add of_property_write_string()
...
This ports the following barebox commits:
| commit 2d36433
| Author: Sascha Hauer <s.hauer@pengutronix.de>
| Date: Thu Mar 30 10:36:58 2017 +0200
|
| of: Add of_property_write_string()
|
| Setting a property to a string is used many times. Create a convenience
| function for it.
|
| Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| commit 4da7cf0
| Author: Ulrich Ölmann <u.oelmann@pengutronix.de>
| Date: Fri Oct 19 06:33:11 2018 +0200
|
| of: base: fix typo
|
| Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
| Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Ulrich Ölmann
authored
on 18 Dec 2018
Roland Hieber
committed
on 7 Jan 2019
|
2016-05-27 |
barebox-state: Import updated state code
...
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Markus Pargmann
committed
on 27 May 2016
|
2015-05-25 |
barebox-state: import from barebox
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Marc Kleine-Budde
committed
on 25 May 2015
|
2015-04-28 |
libdt: import from barebox-2015.04.0
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Marc Kleine-Budde
committed
on 28 Apr 2015
|
2014-06-03 |
state: describe backend with phandle
...
We used to describe the backend with a combination of a nodepath
and partname:<name>. This is cumbersome and error prone to parse.
Instead, describe the backend with a phandle that directly points
to the partition. The resulting code is easier to read and the
devicetrees are easier to understand. Tested with both mtd and
EEPROM device, both with partitions with an offset != 0.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 3 Jun 2014
|
2014-01-27 |
2nd commit
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 27 Jan 2014
|