linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] [PATCH] hwmon: (pmbus/max31785) Add minimum delay between bus accesses
@ 2023-10-09 21:14 Lakshmi Yadlapati
  2023-10-09 21:14 ` [PATCH v1 1/2] i2c: smbus: Allow throttling of transfers to client devices Lakshmi Yadlapati
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Lakshmi Yadlapati @ 2023-10-09 21:14 UTC (permalink / raw)
  To: linux, wsa, sumit.semwal, christian.koenig, jdelvare, joel,
	andrew, eajames, ninad
  Cc: Lakshmi Yadlapati, linux-i2c, linux-kernel, linux-media,
	linux-hwmon, dri-devel

Reintroduce per-client throttling of transfers for improved compatibility.

Some devices have experienced issues with small command turn-around times when using in-kernel device drivers. While a previous proposal was rejected due to concerns about error-prone open-coding of delays, recent upstream changes for similar problems in I2C devices (e.g., max15301 and ucd90320) and now max31785 make it sensible to reintroduce Andrew's generic solution. This change aims to improve compatibility for affected devices and may help avoid duplicating implementations of handlers for I2C and PMBus calls in driver code.

Reference to Andrew's previous proposal:
https://lore.kernel.org/all/20200914122811.3295678-1-andrew@aj.id.au/

Lakshmi Yadlapati (2):
  i2c: smbus: Allow throttling of transfers to client devices
  hwmon: (pmbus/max31785) Add minimum delay between bus accesses

 drivers/hwmon/pmbus/max31785.c |   8 ++
 drivers/i2c/i2c-core-base.c    |   8 +-
 drivers/i2c/i2c-core-smbus.c   | 143 ++++++++++++++++++++++++++-------
 drivers/i2c/i2c-core.h         |  23 ++++++
 include/linux/i2c.h            |   2 +
 5 files changed, 153 insertions(+), 31 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-10-12 15:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-09 21:14 [PATCH v1 0/2] [PATCH] hwmon: (pmbus/max31785) Add minimum delay between bus accesses Lakshmi Yadlapati
2023-10-09 21:14 ` [PATCH v1 1/2] i2c: smbus: Allow throttling of transfers to client devices Lakshmi Yadlapati
2023-10-12 14:18   ` Jean Delvare
2023-10-12 15:08     ` Jani Nikula
2023-10-09 21:14 ` [PATCH v1 2/2] hwmon: (pmbus/max31785) Add minimum delay between bus accesses Lakshmi Yadlapati
2023-10-09 22:10 ` [PATCH v1 0/2] [PATCH] " Lakshmi Yadlapati
2023-10-10  9:31 ` Wolfram Sang
2023-10-10 13:45   ` Guenter Roeck
2023-10-10 18:58     ` Wolfram Sang
2023-10-10 22:59       ` Guenter Roeck
2023-10-11  3:54         ` Andrew Jeffery
2023-10-11 16:14           ` Lakshmi Yadlapati
2023-10-11 16:27         ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).