Re: [PATCH v2 1/2] of: addr: Translate 'dma-ranges' for parent nodes missing 'dma-ranges'

2021-06-05 Thread Simon Glass
Hi Bin, On Fri, 4 Jun 2021 at 00:11, Bin Meng wrote: > > On Mon, May 17, 2021 at 10:03 AM Bin Meng wrote: > > > > 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 f

Re: [PATCH v2 1/2] of: addr: Translate 'dma-ranges' for parent nodes missing 'dma-ranges'

2021-06-05 Thread Simon Glass
Hi Bin, On Fri, 4 Jun 2021 at 00:11, Bin Meng wrote: > > On Mon, May 17, 2021 at 10:03 AM Bin Meng wrote: > > > > 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 f

Re: [PATCH v2 1/2] of: addr: Translate 'dma-ranges' for parent nodes missing 'dma-ranges'

2021-06-03 Thread Bin Meng
On Mon, May 17, 2021 at 10:03 AM Bin Meng wrote: > > 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 t

Re: [PATCH v2 1/2] of: addr: Translate 'dma-ranges' for parent nodes missing 'dma-ranges'

2021-05-16 Thread Bin Meng
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

[PATCH v2 1/2] of: addr: Translate 'dma-ranges' for parent nodes missing 'dma-ranges'

2021-04-30 Thread Bin Meng
'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