From dcc2827ed6e701a65731c05b0297745559837217 Mon Sep 17 00:00:00 2001 From: Hal Feng Date: Fri, 12 May 2023 17:33:20 +0800 Subject: [PATCH 062/116] i2c: designware: Delete SMBus functionalities The driver didn't implement the smbus interface, so replace the SMBus functionalities with I2C_FUNC_SMBUS_EMUL. Signed-off-by: Hal Feng --- drivers/i2c/busses/i2c-designware-core.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) --- a/drivers/i2c/busses/i2c-designware-core.h +++ b/drivers/i2c/busses/i2c-designware-core.h @@ -18,12 +18,10 @@ #include #include -#define DW_IC_DEFAULT_FUNCTIONALITY (I2C_FUNC_I2C | \ - I2C_FUNC_SMBUS_BYTE | \ - I2C_FUNC_SMBUS_BYTE_DATA | \ - I2C_FUNC_SMBUS_WORD_DATA | \ - I2C_FUNC_SMBUS_BLOCK_DATA | \ - I2C_FUNC_SMBUS_I2C_BLOCK) +#define DW_IC_DEFAULT_FUNCTIONALITY (I2C_FUNC_I2C | (I2C_FUNC_SMBUS_EMUL \ + & ~I2C_FUNC_SMBUS_QUICK \ + & ~I2C_FUNC_SMBUS_PROC_CALL \ + & ~I2C_FUNC_SMBUS_PEC)) #define DW_IC_CON_MASTER BIT(0) #define DW_IC_CON_SPEED_STD (1 << 1)