Re: [PATCH v3] media: ir-i2c: add error handling for I2C send in get_key_adaptec()
From: Markus Elfring
Date: Fri Mar 27 2026 - 10:23:36 EST
…
> Fix this by:
> - Checking the return value of i2c_master_send()
> - Converting partial sends to -EIO while preserving kernel error codes
> - Adding dev_err_ratelimited() logging with %pe format
> - Adding similar error logging for the i2c_master_recv() path
See also once more:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.0-rc5#n94
…
> ---
> v2:
…
> ---
> v3:
…
> ---
> drivers/media/pci/ivtv/ivtv-i2c.c | 21 +++++++++++++++++++--
…
How do you think about to avoid the specification of redundant marker lines?
Regards,
Markus