Re: [PATCH] i2c: hix5hd2: check clk_prepare_enable in runtime resume

From: Andi Shyti

Date: Wed Oct 28 2026 - 12:55:07 EST


Hi Tang,

On Mon, Oct 26, 2026 at 07:26:08PM +0800, Tang Bin wrote:
> hix5hd2_i2c_runtime_resume() ignored the return value of
> clk_prepare_enable(priv->clk), then ran hix5hd2_i2c_init() (register
> access) and returned 0. On clock enable failure the hardware is accessed
> with the clock disabled (bus hang) and the matching runtime_suspend()
> clk_disable_unprepare() unbalances the clock count. Propagate the error.
>
> Fixes: 9242e72aaea0 ("i2c: use dev_get_drvdata() to get private data in suspend/resume hooks")
> Signed-off-by: Tang Bin <tangbin@xxxxxxxxxxxxxxxxxxxx>

pushed to i2c/i2c.

Please next time send these patches in a single series.

BTW, for both I removed the Fixes tag as I don't think they are
necessary.

Andi