Re: [PATCH v3 0/5] Fix paths unexpectedly returning Mx error codes

From: Alexandre Belloni

Date: Sun Apr 12 2026 - 10:55:39 EST


On Mon, 23 Mar 2026 17:11:28 +0100, Jorge Marques wrote:
> A smatch warning on the iio/adc/ad4062.c driver raised that many i3c
> methods that documented returning "0 on success or negative error code"
> but actually propagate positive Mx error codes (I3C_ERROR_M0=1, M1=2,
> M2=3) from i3c_master_send_ccc_cmd_locked().
>
> Close paths returning positive Mx error codes when 0 for success or
> negative error code otherwise are explicitly stated, ambiguous or
> expected.
>
> [...]

Applied, thanks!

[1/5] i3c: master: Move rstdaa error suppression
https://git.kernel.org/i3c/c/19a1b61fa623
[2/5] i3c: master: Move entdaa error suppression
https://git.kernel.org/i3c/c/42247fffb304
[3/5] i3c: master: Move bus_init error suppression
https://git.kernel.org/i3c/c/49775afa983e
[4/5] i3c: master: Fix error codes at send_ccc_cmd
https://git.kernel.org/i3c/c/ef8b5229348f
[5/5] i3c: master: adi: Fix error propagation for CCCs
https://git.kernel.org/i3c/c/0b73da96b6eb

Best regards,

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com