public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFT PATCH v2 0/3] hwmon: (spd5118) Various improvements
@ 2024-06-18 19:53 Guenter Roeck
  2024-06-18 19:53 ` [RFT PATCH v2 1/3] hwmon: (spd5118) Use regmap to implement paging Guenter Roeck
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Guenter Roeck @ 2024-06-18 19:53 UTC (permalink / raw)
  To: linux-hwmon
  Cc: linux-kernel, Wolfram Sang, René Rebe, Thomas Weißschuh,
	Armin Wolf, Stephen Horvath, Paul Menzel, Sasha Kozachuk,
	John Hamrick, Chris Sarra, Guenter Roeck

The first patch of this series introduces multi-page support using the
regmap infrastructure. This simplifies the code and improves regmap caching.

The second patch introduces a spd5118-specific regmap bus to implement
SMBus accesses. This solves a problem seen with i801 I2C controllers
when writing to the chip. The I2C_FUNC_SMBUS_I2C_BLOCK support implemented
in those controllers does not work with spd5118 compatible chips, so
byte-by-byte access needs to be used explicitly.

The third patch adds support for spd5118 compatible chips which follow
the standard literally and block access to volatile registers if not
on page 0.

RFT: I was able to test the code on AMD systems using the piix4 I2C
controller. It needs testing with i801 controllers and with Renesas
chips.

v2: Added patches 1 and 2; simplified patch 3 to rely on regmap
    based paging.

----------------------------------------------------------------
Guenter Roeck (3):
      hwmon: (spd5118) Use regmap to implement paging
      hwmon: (spd5118) Use spd5118 specific read/write operations
      hwmon: (spd5118) Add support for Renesas/ITD SPD5118 hub controllers

 drivers/hwmon/Kconfig   |   2 +-
 drivers/hwmon/spd5118.c | 131 +++++++++++++++++++++++++++++++++++++-----------
 2 files changed, 102 insertions(+), 31 deletions(-)

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

end of thread, other threads:[~2024-06-19 14:18 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-18 19:53 [RFT PATCH v2 0/3] hwmon: (spd5118) Various improvements Guenter Roeck
2024-06-18 19:53 ` [RFT PATCH v2 1/3] hwmon: (spd5118) Use regmap to implement paging Guenter Roeck
2024-06-18 19:53 ` [RFT PATCH v2 2/3] hwmon: (spd5118) Use spd5118 specific read/write operations Guenter Roeck
2024-06-18 20:37   ` Paul Menzel
2024-06-18 21:08     ` Guenter Roeck
2024-06-18 21:45       ` Paul Menzel
2024-06-18 22:37         ` Guenter Roeck
2024-06-18 22:59           ` Paul Menzel
2024-06-18 22:28       ` Wolfram Sang
2024-06-18 23:28         ` Armin Wolf
2024-06-18 23:39           ` Paul Menzel
2024-06-19  0:23             ` Guenter Roeck
2024-06-19  0:50               ` Thomas Weißschuh
2024-06-19  1:02                 ` Guenter Roeck
2024-06-19  9:13                   ` Thomas Weißschuh
2024-06-19 14:18                     ` Guenter Roeck
2024-06-18 19:53 ` [RFT PATCH v2 3/3] hwmon: (spd5118) Add support for Renesas/ITD SPD5118 hub controllers Guenter Roeck
2024-06-18 20:59 ` [RFT PATCH v2 0/3] hwmon: (spd5118) Various improvements Armin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox