Re: [v2,1/1] i2c: designware: Add SMBus Quick Command support
From: Wolfram Sang
Date: Mon Apr 14 2025 - 04:43:46 EST
> > + /* i2c-core-smbus.c: Only I2C_SMBUS_QUICK has msg[0].len = 0 */
>
> Please, remove filenames from the code, better to refer to the actual functions
> as func(). This helps also to grep for all usages in case of renaming.
The comment can be removed. Regular I2C messages can also have a length
of 0.
> > + DW_IC_DEFAULT_FUNCTIONALITY;
Sidenote: Why do we have this define? It is used only once and makes
reading the actual functionalities harder, I'd say.
Also, I wonder if this patch really works in practice. The
I2C_AQ_NO_ZERO_LEN flag is still set, so the core should prevent such
messages to be passed on to the driver?
Attachment:
signature.asc
Description: PGP signature