Commit cb974417 authored by Vadim Pasternak's avatar Vadim Pasternak Committed by Wolfram Sang

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: default avatarVadim Pasternak <vadimp@nvidia.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent f069291b
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#define MLXCPLD_I2C_MAX_ADDR_LEN 4 #define MLXCPLD_I2C_MAX_ADDR_LEN 4
#define MLXCPLD_I2C_RETR_NUM 2 #define MLXCPLD_I2C_RETR_NUM 2
#define MLXCPLD_I2C_XFER_TO 500000 /* usec */ #define MLXCPLD_I2C_XFER_TO 500000 /* usec */
#define MLXCPLD_I2C_POLL_TIME 2000 /* usec */ #define MLXCPLD_I2C_POLL_TIME 400 /* usec */
/* LPC I2C registers */ /* LPC I2C registers */
#define MLXCPLD_LPCI2C_CPBLTY_REG 0x0 #define MLXCPLD_LPCI2C_CPBLTY_REG 0x0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment