[PATCH v5] i2c: imx-lpi2c: return -EINVAL when i2c peripheral clk doesn't work

Wolfram Sang wsa at kernel.org
Mon Aug 14 06:24:21 PDT 2023


On Wed, Jul 26, 2023 at 05:22:38PM +0800, carlos.song at nxp.com wrote:
> From: Carlos Song <carlos.song at nxp.com>
> 
> On MX8X platforms, the default clock rate is 0 if without explicit
> clock setting in dts nodes. I2c can't work when i2c peripheral clk
> rate is 0.
> 
> Add a i2c peripheral clk rate check before configuring the clock
> register. When i2c peripheral clk rate is 0 and directly return
> -EINVAL.
> 
> Signed-off-by: Carlos Song <carlos.song at nxp.com>

Applied to for-current, thanks!

-------------- 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/20230814/6296e814/attachment.sig>


More information about the linux-arm-kernel mailing list