From: Vadim Pasternak <vadimp@nvidia.com>
To: wsa@the-dreams.de
Cc: linux-i2c@vger.kernel.org, Vadim Pasternak <vadimp@nvidia.com>
Subject: [PATCH i2c-next 2/3] i2c: mlxcpld: Decrease polling time for performance improvement
Date: Thu, 10 Dec 2020 18:51:12 +0200 [thread overview]
Message-ID: <20201210165113.6130-3-vadimp@nvidia.com> (raw)
In-Reply-To: <20201210165113.6130-1-vadimp@nvidia.com>
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>
---
drivers/i2c/busses/i2c-mlxcpld.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-mlxcpld.c b/drivers/i2c/busses/i2c-mlxcpld.c
index dbd185368c38..9e45214d1eb6 100644
--- a/drivers/i2c/busses/i2c-mlxcpld.c
+++ b/drivers/i2c/busses/i2c-mlxcpld.c
@@ -25,7 +25,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 2000 /* usec */
+#define MLXCPLD_I2C_POLL_TIME 400 /* usec */
/* LPC I2C registers */
#define MLXCPLD_LPCI2C_CPBLTY_REG 0x0
--
2.11.0
next prev parent reply other threads:[~2020-12-10 16:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-10 16:51 [PATCH i2c-next 0/3] i2c: mlxcpld: Extend driver functionality and update license Vadim Pasternak
2020-12-10 16:51 ` [PATCH i2c-next 1/3] i2c: mlxcpld: Update module license Vadim Pasternak
2021-01-05 10:18 ` Wolfram Sang
2020-12-10 16:51 ` Vadim Pasternak [this message]
2021-01-05 10:18 ` [PATCH i2c-next 2/3] i2c: mlxcpld: Decrease polling time for performance improvement Wolfram Sang
2020-12-10 16:51 ` [PATCH i2c-next 3/3] i2c: mlxcpld: Add support for I2C bus frequency setting Vadim Pasternak
2021-01-05 10:19 ` Wolfram Sang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201210165113.6130-3-vadimp@nvidia.com \
--to=vadimp@nvidia.com \
--cc=linux-i2c@vger.kernel.org \
--cc=wsa@the-dreams.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.