Re: [PATCH] dmaengine: rcar-dmac: Make rcar_dmac_of_xlate() more robust

2018-07-27 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Friday, 27 July 2018 11:44:47 EEST Geert Uytterhoeven wrote: > Add an upper bound check for the MID/RID value passed from DT via the > DMA spec. > > This avoids writing to reserved bits in the DMARS registers in case of > an out-of-range value in DT. Is

[PATCH] dmaengine: rcar-dmac: Make rcar_dmac_of_xlate() more robust

2018-07-27 Thread Geert Uytterhoeven
Add an upper bound check for the MID/RID value passed from DT via the DMA spec. This avoids writing to reserved bits in the DMARS registers in case of an out-of-range value in DT. Suggested-by: Renesas BSP team via Yoshihiro Shimoda Signed-off-by: Geert Uytterhoeven ---