]> git.baikalelectronics.ru Git - kernel.git/commit
media: coda/imx-vdoa: Handle dma_set_coherent_mask error codes
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Mon, 6 Dec 2021 02:22:01 +0000 (03:22 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Dec 2021 15:19:04 +0000 (16:19 +0100)
commit48502fd682f5b9d9cf0acdf62f7240e10deafb9a
treebd60aba85986a73a97b60b5d3f28447b6093876d
parent4af50cffd672414a0d6e52330687b15f59275330
media: coda/imx-vdoa: Handle dma_set_coherent_mask error codes

The return value of dma_set_coherent_mask() is not always 0.
To catch the exception in case that dma is not support the mask.

Link: https://lore.kernel.org/linux-media/20211206022201.1639460-1-jiasheng@iscas.ac.cn
Fixes: 74332e1d8c0a ("[media] coda: add i.MX6 VDOA driver")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/coda/imx-vdoa.c