]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: stm32f7: report dma error during probe
authorAlain Volmat <alain.volmat@st.com>
Thu, 24 Oct 2019 12:52:00 +0000 (14:52 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 11 Nov 2019 20:37:59 +0000 (21:37 +0100)
commitdb79c8cc39604c7fe5945fea0c320fc61839a2d3
treecbdd398b086d098c29e85fba8daa2ebdcbf6ce62
parenta8227323d2159609d1bd5fe3bc9a1b1dfe88b109
i2c: stm32f7: report dma error during probe

Distinguish between the case where dma information is not provided
within the DT and the case of an error during the dma init.
Exit the probe with error in case of an error during dma init.

Fixes: 3d7de9d4b235 ("i2c: i2c-stm32: Add generic DMA API")
Signed-off-by: Alain Volmat <alain.volmat@st.com>
Reviewed-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-stm32.c
drivers/i2c/busses/i2c-stm32f7.c