Re: [PATCH v4] media: tuner: add error handling for I2C transfers in set_type()
From: Markus Elfring
Date: Fri Mar 27 2026 - 09:51:26 EST
…
> Fix this by:
> - Adding a helper function tuner_i2c_send() that checks the return
> value of i2c_master_send() and logs errors with %pe format
> - Replacing direct i2c_master_send() calls with tuner_i2c_send()
> - Propagating errors to the attach_failed path
>
> This ensures that I2C communication failures during tuner
> initialization are properly detected and handled.
See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.0-rc5#n94
…
> Signed-off-by: Wenyuan Li <2063309626@xxxxxx>
>
> v4:
> - Added Cc: stable@xxxxxxxxxxxxxxx
> - Updated Fixes: to original commit (93df3413f1b4)
> ---
> drivers/media/v4l2-core/tuner-core.c | 22 +++++++++++++++++++---
…
Please move patch version descriptions behind the marker line.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.0-rc5#n785
Regards,
Markus