Page MenuHomeFreeBSD

stand/fdt: Fix loading of multiple fdt_overlays
ClosedPublic

Authored by kevans on Dec 28 2017, 1:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 4, 5:36 AM
Unknown Object (File)
Sat, Sep 27, 3:36 AM
Unknown Object (File)
Sat, Sep 27, 3:11 AM
Unknown Object (File)
Sun, Sep 21, 1:48 AM
Unknown Object (File)
Aug 9 2025, 5:07 PM
Unknown Object (File)
Jul 7 2025, 7:42 AM
Unknown Object (File)
Jun 27 2025, 3:28 PM
Unknown Object (File)
Jun 25 2025, 12:20 AM
Subscribers

Details

Summary

fdt_load_dtb_overlays was written to unload previous overlay when a new valid one is come across. fdt_apply_overlays further down is written to iterate over all .dtbo's currently loaded and apply them one-by-one. Correct fdt_load_dtb_overlays to stop dropping valid overlays that were previously loaded and match expectations.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

my naive reading says this is right.

This revision is now accepted and ready to land.Dec 28 2017, 1:50 AM

Did you test multiple overlays targeting the same node ?
Last time I talk to gonzo@ about he came to the conclusion that we need to update libfdt in our tree and use their overlay implementation.

In D13659#285514, @manu wrote:

Did you test multiple overlays targeting the same node ?
Last time I talk to gonzo@ about he came to the conclusion that we need to update libfdt in our tree and use their overlay implementation.

These are two independent issues: inability to modify same node and discarding previously loaded dtbo's. I think the latter was just a case of poorly applied copy-patse.

These are two independent issues: inability to modify same node and discarding previously loaded dtbo's. I think the latter was just a case of poorly applied copy-patse.

Sorry, I forgot to mention here- after D13663 and D13664, I've had no problems modifying the same node in different .dtbo

This revision was automatically updated to reflect the committed changes.