Skip to content
/ linux Public

Commit cb97441

Browse files
vadimp-nvidiawsakernel
authored andcommitted
i2c: mlxcpld: Decrease polling time for performance improvement
Decrease polling time 'MLXCPLD_I2C_POLL_TIME' from 2000 usec to 400 usec. It greatly improves performance of I2C transactions. Reliability of setting polling time to 400 usec has been thoroughly validated across all the supported systems. Signed-off-by: Vadim Pasternak <vadimp@nvidia.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent f069291 commit cb97441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-mlxcpld.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define MLXCPLD_I2C_MAX_ADDR_LEN 4
2626
#define MLXCPLD_I2C_RETR_NUM 2
2727
#define MLXCPLD_I2C_XFER_TO 500000 /* usec */
28-
#define MLXCPLD_I2C_POLL_TIME 2000 /* usec */
28+
#define MLXCPLD_I2C_POLL_TIME 400 /* usec */
2929

3030
/* LPC I2C registers */
3131
#define MLXCPLD_LPCI2C_CPBLTY_REG 0x0

0 commit comments

Comments
 (0)