From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Mon, 17 May 2021 10:03:55 +0800 Subject: [PATCH v2 1/2] of: addr: Translate 'dma-ranges' for parent nodes missing 'dma-ranges' In-Reply-To: <20210430131659.19119-1-bmeng.cn@gmail.com> References: <20210430131659.19119-1-bmeng.cn@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On Fri, Apr 30, 2021 at 9:17 PM Bin Meng wrote: > > 'dma-ranges' frequently exists without parent nodes having 'dma-ranges'. > While this is an error for 'ranges', this is fine because DMA capable > devices always have a translatable DMA address. Also, with no > 'dma-ranges' at all, the assumption is that DMA addresses are 1:1 with > no restrictions unless perhaps the device itself has implicit > restrictions. > > This keeps in sync with Linux kernel commit: > > 81db12ee15cb: of/address: Translate 'dma-ranges' for parent nodes missing 'dma-ranges' > > Signed-off-by: Bin Meng > Reviewed-by: Simon Glass > > --- > > Changes in v2: > - rebase on top of Dario's revert patch: > http://patchwork.ozlabs.org/project/uboot/patch/20210425141746.19115-6-dariobin at libero.it/ The above dependent patch is now in u-boot/master. Could you please apply this series? > - drop commit "of: addr: Abort address translation for parent nodes missing 'ranges'", > as the revert patch restores the abort behavior > > drivers/core/of_addr.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > Regards, Bin