[PATCH] i2c: imx: fix divide by zero warning

Andi Shyti andi.shyti at kernel.org
Thu Dec 5 04:49:09 PST 2024


Hi Carlos,

On Mon, Nov 25, 2024 at 10:15:21PM +0800, carlos.song at nxp.com wrote:
> From: Carlos Song <carlos.song at nxp.com>
> 
> Add "i2c_clk_rate / 2" check to avoid "divide by zero warning".
> i2c_clk_rate may be zero if i2c clock is disabled.
> 
> Signed-off-by: Carlos Song <carlos.song at nxp.com>
> Signed-off-by: Clark Wang <xiaoning.wang at nxp.com>
> Signed-off-by: Haibo Chen <haibo.chen at nxp.com>

merged to i2c/i2c-host,

thanks,
Andi



More information about the linux-arm-kernel mailing list