[PATCH v2 1/2] of: fix up /chosen node even when there are no bootargs

Sascha Hauer sha at pengutronix.de
Tue May 25 22:53:51 PDT 2021


On Tue, May 25, 2021 at 10:53:27AM +0200, Bastian Krause wrote:
> On 4/14/21 3:00 PM, Bastian Krause wrote:
> > From: Ahmad Fatoum <a.fatoum at pengutronix.de>
> > 
> > Currently the /chosen fixups of "reset-source",
> > "reset-source-instance", "reset-source-device" and "bootsource" do not
> > happen if no bootargs are available.
> > 
> > Fix that by moving the actual bootargs fixup to a dedicated function
> > of_write_bootargs() and only return there early on empty bootargs, but
> > still perform the /chosen fixups mentioned above.
> > 
> > Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> > [bst: dropped new line deletions and modified string comparison, moved of_write_bootargs() call to original position, add commit message]
> > Signed-off-by: Bastian Krause <bst at pengutronix.de>
> > ---
> > No changes since (implicit) v1.
> > ---
> >  common/oftree.c | 20 +++++++++++++-------
> >  1 file changed, 13 insertions(+), 7 deletions(-)
> 
> Gentle ping.

Sorry, missed these. Applied now, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list