Re: [PATCH 4/8] dm: Introduce xxx_get_dma_range()

2020-12-12 Thread Simon Glass
Hi Nicolas, On Thu, 19 Nov 2020 at 10:49, Nicolas Saenz Julienne wrote: > > Add the follwing functions to get a specific device's DMA ranges: > - dev_get_dma_range() > - ofnode_get_dma_range() > - of_get_dma_range() > - fdt_get_dma_range() > They are specially useful in oder to be able valida

Re: [PATCH 4/8] dm: Introduce xxx_get_dma_range()

2020-12-11 Thread Peter Robinson
Hi Nicolas, > > > Add the follwing functions to get a specific device's DMA ranges: > > > - dev_get_dma_range() > > > - ofnode_get_dma_range() > > > - of_get_dma_range() > > > - fdt_get_dma_range() > > > They are specially useful in oder to be able validate a physical address > > > space range

Re: [PATCH 4/8] dm: Introduce xxx_get_dma_range()

2020-12-10 Thread Nicolas Saenz Julienne
Hi Peter, On Thu, 2020-12-10 at 17:03 +, Peter Robinson wrote: > Hi Nicolas, > > > On Thu, Nov 19, 2020 at 5:50 PM Nicolas Saenz Julienne > wrote: > > > > Add the follwing functions to get a specific device's DMA ranges: > >  - dev_get_dma_range() > >  - ofnode_get_dma_range() > >  - of_ge

Re: [PATCH 4/8] dm: Introduce xxx_get_dma_range()

2020-12-10 Thread Peter Robinson
Hi Nicolas, On Thu, Nov 19, 2020 at 5:50 PM Nicolas Saenz Julienne wrote: > > Add the follwing functions to get a specific device's DMA ranges: > - dev_get_dma_range() > - ofnode_get_dma_range() > - of_get_dma_range() > - fdt_get_dma_range() > They are specially useful in oder to be able val

Re: [PATCH 4/8] dm: Introduce xxx_get_dma_range()

2020-12-09 Thread Nicolas Saenz Julienne
On Wed, 2020-12-09 at 17:30 +0100, Nicolas Saenz Julienne wrote: > On Wed, 2020-12-09 at 13:58 +0100, Matthias Brugger wrote: > [...] > > > + > > > + /* switch to that node */ > > > + parent = of_get_parent(dev); > > > + if (!parent) { > > > + printf("Found dma-ranges in root node, shoudln'

Re: [PATCH 4/8] dm: Introduce xxx_get_dma_range()

2020-12-09 Thread Nicolas Saenz Julienne
On Wed, 2020-12-09 at 13:58 +0100, Matthias Brugger wrote: [...] > > + > > + /* switch to that node */ > > + parent = of_get_parent(dev); > > + if (!parent) { > > + printf("Found dma-ranges in root node, shoudln't happen\n"); > > + ret = -EINVAL; > > + goto out;

Re: [PATCH 4/8] dm: Introduce xxx_get_dma_range()

2020-12-09 Thread Matthias Brugger
On 19/11/2020 18:48, Nicolas Saenz Julienne wrote: > Add the follwing functions to get a specific device's DMA ranges: > - dev_get_dma_range() > - ofnode_get_dma_range() > - of_get_dma_range() > - fdt_get_dma_range() > They are specially useful in oder to be able validate a physical address

[PATCH 4/8] dm: Introduce xxx_get_dma_range()

2020-11-19 Thread Nicolas Saenz Julienne
Add the follwing functions to get a specific device's DMA ranges: - dev_get_dma_range() - ofnode_get_dma_range() - of_get_dma_range() - fdt_get_dma_range() They are specially useful in oder to be able validate a physical address space range into a bus's and to convert addresses from and to addr