i2c: mlxcpld: Allow flexible polling time setting for I2C transactions
authorVadim Pasternak <vadimp@nvidia.com>
Mon, 23 Aug 2021 14:45:04 +0000 (17:45 +0300)
committerWolfram Sang <wsa@kernel.org>
Mon, 11 Oct 2021 10:32:00 +0000 (12:32 +0200)
commit712d6617d0a29dc4d4da361247720cdf156ae7bb
treec75f68ff50852d279c66b09c4f1afbbf7d07b3ad
parent3abdc89b5e309c63fa631de38cbec0755e5b2ee7
i2c: mlxcpld: Allow flexible polling time setting for I2C transactions

Allow polling time setting according to I2C frequency supported across
the system. For base frequency 400 KHz and 1 MHz set polling time is set
four times less than for system with base frequency 100KHz.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-mlxcpld.c