i2c: stm32f7: report dma error during probe
authorAlain Volmat <alain.volmat@st.com>
Thu, 24 Oct 2019 12:52:00 +0000 (14:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:51:21 +0000 (14:51 +0100)
commitf7061be1528ceea4454b16479a05ee64b698861b
tree7ebee5904ee73f7d7e50f090073eb96cb621cbcd
parentab6c0f501d2cecf8c74cf8293fca9c2b780dd55b
i2c: stm32f7: report dma error during probe

[ Upstream commit d77eceb2de99f5d7e0c645bad15511fe1af59e09 ]

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: bb8822cbbc53 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-stm32.c
drivers/i2c/busses/i2c-stm32f7.c