Re: [PATCH] i2c: omap: Fix an error handling path in omap_i2c_probe()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Christophe,

On Sat, Jun 14, 2025 at 04:59:26PM +0200, Christophe JAILLET wrote:
> If an error occurs after calling mux_state_select(), mux_state_deselect()
> should be called as already done in the remove function.
> 
> Fixes: b6ef830c60b6 ("i2c: omap: Add support for setting mux")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>

merged to i2c/i2c-host-fixes. Thanks!

> ---
> I'm not 100% sure of the error handling path.
> 
> Should pm_runtime_dont_use_autosuspend() be called after the err_disable_pm
> label? (to match the calling order)

Yes, I think you are right here.

> Also, should errors from omap_i2c_init() be handled?

Yes, if it fails it should be handled.

Thanks for the two reports. Do you have time to fix them or
can I go ahead and do it?

Thanks,
Andi




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux