[PATCH] i2c: stm32: do not display error when DMA is not requested

Wolfram Sang wsa at kernel.org
Thu Sep 10 06:06:07 EDT 2020


On Thu, Sep 10, 2020 at 11:32:29AM +0200, Alain Volmat wrote:
> DMA usage is optional for the I2C driver. check for the -ENODEV
> error in order to avoid displaying an error when no DMA
> has been requested.
> 
> Signed-off-by: Alain Volmat <alain.volmat at st.com>
> ---
> This patch should be applied on top of the patch [i2c: stm32: Simplify with dev_err_probe()]

We can do it in this order, it just makes backporting to stable kernels
(if that is desired) a bit harder than a self-contained patch. I am fine
with both approaches, but just wanted to point it out.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20200910/8897cfaa/attachment.sig>


More information about the linux-arm-kernel mailing list