Le 26/06/2025 à 00:10, Andi Shyti a écrit :
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?
I've sent a patch for each issue.
Feel free to take the lead if not correct. As said in the cover letter,
I'm not completely confident with them.
CJ
Thanks,
Andi