Re: [PATCH v5] libfdt: add helpers to read address and size from reg

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



On Thu, Feb 1, 2018 at 5:04 PM, Andrew F. Davis <afd@xxxxxx> wrote:
> From: Benjamin Fair <b-fair@xxxxxx>
>
> This patch extends the capability of libfdt to parse the contents of device
> trees in a similar manner to fdt_address_cells and fdt_size_cells.
>
> It adds a helper function which reads the address and size of a device from
> the reg property and performs basic sanity checks.
>
> It does not perform translation to a physical address using the ranges
> properties of parents, but this enhancement may be added as a separate
> function in the future.

I'm concerned about merging this without translation support. First,
I'd question its usefulness without it. Second, it may encourage
people to write their DTs without any ranges just so this will work.

I tried to upstream the kernel and u-boot implementations to libfdt in
April 2014 (I couldn't find an archive). We've got to get it
relicensed and then David didn't like the implementation. He said he
was about to post his version, but then it derailed into PCI handling.
There's another implementation in the kernel powerpc boot code that
may be easier to re-license.

Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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