[PATCH v7] i2c: imx: support DMA defer probing

Andi Shyti andi.shyti at kernel.org
Thu Dec 26 01:29:42 PST 2024


Hi Carlos,

On Thu, Dec 26, 2024 at 02:25:21PM +0800, Carlos Song wrote:
> Return -EPROBE_DEFER when dma_request_slave_channel() because DMA driver
> have not ready yet.
> 
> Move i2c_imx_dma_request() before registering I2C adapter to avoid
> infinite loop of .probe() calls to the same driver, see "e8c220fac415
> Revert "i2c: imx: improve the error handling in i2c_imx_dma_request()""
> and "Documentation/driver-api/driver-model/driver.rst".
> 
> Use CPU mode to avoid stuck registering i2c adapter when DMA resources
> are unavailable.
> 
> Signed-off-by: Carlos Song <carlos.song at nxp.com>
> Signed-off-by: Clark Wang <xiaoning.wang at nxp.com>
> Acked-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> Acked-by: Oleksij Rempel <o.rempel at pengutronix.de>

thanks for following up on all your comments! Merged to
i2c/i2c-host.

Thanks,
Andi



More information about the linux-arm-kernel mailing list