[OSS-Tools] [PATCH dt-utils 08/14] state: propagate failure to fixup enum32 into DT

2022-10-14 Thread Marco Felsch
This ports the following barebox commit | commit 2628c8a8e1eee3cf6727c0c8a99ff5eec8ba4d1e | Author: Ahmad Fatoum | Date: Mon Sep 5 11:55:35 2022 +0200 | | state: propagate failure to fixup enum32 into DT | | We assign to ret, but don't use the value anywhere laments the static |

[OSS-Tools] [PATCH dt-utils 12/14] libdt: add of_property_write_strings support

2022-10-14 Thread Marco Felsch
The function is copied from barebox and based on commit | commit 09cbc3fbdab5f3118062ceeefb0c1b043a75b3fb | Author: Ahmad Fatoum | Date: Wed Sep 30 14:53:01 2020 +0200 | | of: implement of_property_write_strings for multiple strings | | The current way to set a property with multiple

[OSS-Tools] [PATCH dt-utils 11/14] common: xstrdup: don't panic on xstrdup(NULL)

2022-10-14 Thread Marco Felsch
This ports the following barebox commit | commit bf6ddd6c4dccf01c4a27761c5f73918db578f8d6 | Author: Uwe Kleine-König | Date: Fri Sep 9 08:37:22 2016 +0200 | | xstrdup: don't panic on xstrdup(NULL) | | Instead return just NULL. This matches the behaviour of kstrdup in the | kernel

[OSS-Tools] [PATCH dt-utils 07/14] state: remove unused function

2022-10-14 Thread Marco Felsch
This ports the following barebox commit | commit 418769972dca8ff6af08eabcf47cfe70aaa3cd43 | Author: Sascha Hauer | Date: Mon Nov 19 09:34:19 2018 +0100 | | state: remove unused function | | state_find_type() is unused and doesn't have a prototype. Remove it. | | Signed-off-by:

[OSS-Tools] [PATCH dt-utils 04/14] state: treat state with all-invalid buckets as dirty

2022-10-14 Thread Marco Felsch
This ports the following barebox commit | commit f41e5160c8618455064a4ff4227105010cd56aaa | Author: Ahmad Fatoum | Date: Thu Mar 5 08:40:32 2020 +0100 | | state: treat state with all-invalid buckets as dirty | | The state.dirty flag controls whether state_save will actually |

[OSS-Tools] [PATCH dt-utils 05/14] state: remove param member from struct state_string

2022-10-14 Thread Marco Felsch
This ports the following barebox commit | commit 4f4d6fc426a466109b7f8b20fb2fdfaad9130aa3 | Author: Christian Eggers | Date: Thu Jan 23 13:20:41 2020 +0100 | | state: remove param member from struct state_string | | After adding the parameter, the pointer isn't required anymore. | |

[OSS-Tools] [PATCH dt-utils 01/14] state: Remove duplicate incudes

2022-10-14 Thread Marco Felsch
This ports the following barebox commit | commit 870a96a80ba69f2e7d0312a84adecb70bd11ae4a | Author: Alexander Shiyan | Date: Tue Jun 7 08:19:57 2022 +0300 | | treewide: Remove duplicate incudes | | Fix warning fwterated by checkincludes.pl: | ./net/nfs.c: libgen.h is included more

[OSS-Tools] [PATCH dt-utils 13/14] libdt: add partition search function

2022-10-14 Thread Marco Felsch
From: Juergen Borleis Add of_find_path() support which mimics the of_find_path() from barebox. The purpose of this function is to get the device path specified by a device-tree property like: - proptery = , partname:0; - property = _partition; Signed-off-by: Juergen Borleis

[OSS-Tools] [PATCH dt-utils 03/14] state: backend_storage: deal gracefully with runtime bucket corruption

2022-10-14 Thread Marco Felsch
This ports the following barebox commit | commit dc5100e6ba686fafd5570ce6d972383f047c7313 | Author: Ahmad Fatoum | Date: Thu Mar 5 08:40:31 2020 +0100 | | state: backend_storage: deal gracefully with runtime bucket corruption | | Corrupting an already selected bucket and then reading

[OSS-Tools] [PATCH dt-utils 09/14] state: add SPDX-License-Identifier for files without explicit license

2022-10-14 Thread Marco Felsch
This ports the following barebox commit | commit 79cd45e6eb62c0599d82c768fbfe226eaf750340 | Author: Ahmad Fatoum | Date: Mon Jan 3 13:05:39 2022 +0100 | | treewide: add SPDX-License-Identifier for files without explicit license | | Record GPL-2.0-only as license for all files lacking

[OSS-Tools] [PATCH dt-utils 06/14] state: remove param member from state_uint32, state_enum32, state_mac

2022-10-14 Thread Marco Felsch
This ports the following barebox commit | commit 8718fd1f0508ed694569df212333fff9a22b5303 | Author: Christian Eggers | Date: Thu Jan 23 13:20:43 2020 +0100 | | state: remove param member from state_uint32, state_enum32, state_mac | | After adding the parameter, the pointer isn't

[OSS-Tools] [PATCH dt-utils 02/14] state: backend_raw: fix ignoring unpack failures

2022-10-14 Thread Marco Felsch
This ports the following barebox commit | commit 9866966ef9b38bf49276c67f7e258bc2a8df55eb | Author: Marco Felsch | Date: Wed Aug 25 16:49:04 2021 +0200 | | state: backend_raw: fix ignoring unpack failures | | This is required to inform the state framework that the state variable |

[OSS-Tools] [PATCH dt-utils 00/14] Sync Barebox-State code base

2022-10-14 Thread Marco Felsch
Hi, this series sync the dt-utils barebox-state code base with a very recent barebox version [1]. The most import patch are patch13-14, since those adding the user-space support for the backend format. By this new backend-format we are able to store the barebox-state on a on-disk partition like

[OSS-Tools] [PATCH dt-utils 14/14] state: sync with barebox to support new backend type

2022-10-14 Thread Marco Felsch
The state backend format was changed from a phandle based description to a string based description. This was done because of the missing support to store the state within a on-disk partition like MBR/GPT. By this sync we import the code required to manipulate the state which is stored on a

[OSS-Tools] [PATCH dt-utils 10/14] state: fix typos found with codespell

2022-10-14 Thread Marco Felsch
This ports the following barebox commit | commit 157e861aa6e93a72018c408e82863a3253550a4d | Author: Yegor Yefremov | Date: Fri Mar 20 10:41:19 2020 +0100 | | common: fix typos found with codespell | | Signed-off-by: Yegor Yefremov | Signed-off-by: Sascha Hauer Signed-off-by: