Skip to content

Commit

Permalink
i2c: mlxcpld: Reduce polling time for performance improvement
Browse files Browse the repository at this point in the history
Decrease polling time 'MLXCPLD_I2C_POLL_TIME' from 400 usec to 200
usec. It improves performance of I2C transactions.

Reliability of setting polling time to 200 usec has been validated
across all the supported systems.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
  • Loading branch information
vadimp-nvidia authored and wsakernel committed Oct 4, 2021
1 parent d56baf6 commit 669b2e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-mlxcpld.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define MLXCPLD_I2C_MAX_ADDR_LEN 4
#define MLXCPLD_I2C_RETR_NUM 2
#define MLXCPLD_I2C_XFER_TO 500000 /* usec */
#define MLXCPLD_I2C_POLL_TIME 400 /* usec */
#define MLXCPLD_I2C_POLL_TIME 200 /* usec */

/* LPC I2C registers */
#define MLXCPLD_LPCI2C_CPBLTY_REG 0x0
Expand Down

0 comments on commit 669b2e4

Please sign in to comment.