Re: [PATCH] drm/v3d/v3d_drv: Check for error num after setting mask

2022-01-09 Thread Melissa Wen
On 01/06, Melissa Wen wrote: > On 01/06, Jiasheng Jiang wrote: > > Because of the possible failure of the dma_supported(), the > > dma_set_mask_and_coherent() may return error num. > > Therefore, it should be better to check it and return the error if > > fails. > > > > Fixes: 334dd38a3878 ("drm/v

Re: [PATCH] drm/v3d/v3d_drv: Check for error num after setting mask

2022-01-06 Thread Melissa Wen
On 01/06, Jiasheng Jiang wrote: > Because of the possible failure of the dma_supported(), the > dma_set_mask_and_coherent() may return error num. > Therefore, it should be better to check it and return the error if > fails. > > Fixes: 334dd38a3878 ("drm/v3d: Set dma_mask as well as coherent_dma_ma

[PATCH] drm/v3d/v3d_drv: Check for error num after setting mask

2022-01-05 Thread Jiasheng Jiang
Because of the possible failure of the dma_supported(), the dma_set_mask_and_coherent() may return error num. Therefore, it should be better to check it and return the error if fails. Fixes: 334dd38a3878 ("drm/v3d: Set dma_mask as well as coherent_dma_mask") Signed-off-by: Jiasheng Jiang --- dri