Re: ftdoverlay overwrites phandle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Jun 29, 2022 at 3:20 PM Uwe Kleine-König <ukleinek@xxxxxxxxxx> wrote:
>
> Hello,
>
> I want to apply an overlay to a device tree that is compiled without -@
> because that's how dtbs are shipped by the Debian kernel package.

Does applying this overlay work as expected if -@ is used? I would
imagine so as there is an assumption the base dtb was compiled with
-@. The fix is to fix Debian dtbs (or don't use them as dtbs should
come from firmware rather than distros).

There might be sufficient information to make your case work because
IIRC all the (resolved) overlay phandle values get adjusted when
applied as they could collide with the base tree phandle values.
However, doing so would mean users may start working around base DTs
compiled without -@. That would remove labels being an ABI which I
don't love, but it would also remove the abstraction that labels
provide.

Certainly, the base phandle value shouldn't just be silently overwritten.

Rob




[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux