Skip to content

eeprom: at24: switch driver to regmap_i2c

Heiner Kallweit linux-i2c 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest7 patches 0 repliesNew
  2. v57 patches 1 replyApplied
  3. v47 patches 10 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v37 patches2 repliesSuperseded
v27 patches3 repliesSuperseded
v1 RFC7 patches0 repliesSuperseded

Changes in v6 from the cover letter

- rebased
- re-introduce check for I2C_SMBUS_BLOCK_MAX in patch 7

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7eeprom: at24: add basic regmap_i2c supportdrivers/misc/eeprom/Kconfig drivers/misc/eeprom/at24.c+43 -110 replies
2/7eeprom: at24: change at24_translate_offset return typedrivers/misc/eeprom/at24.c+30 -120 replies
3/7eeprom: at24: add regmap-based write functiondrivers/misc/eeprom/at24.c+26 -10 replies
4/7eeprom: at24: remove old write functionsdrivers/misc/eeprom/at24.c+0 -1170 replies
5/7eeprom: at24: add regmap-based read functiondrivers/misc/eeprom/at24.c+56 -10 replies
6/7eeprom: at24: remove old read functionsdrivers/misc/eeprom/at24.c+0 -1860 replies
7/7eeprom: at24: remove now unneeded smbus-related codedrivers/misc/eeprom/at24.c+8 -480 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/7] eeprom: at24: switch driver to regmap_i2c

Using regmap_i2c allows us to get rid of dealing with the low-level differences between I2C and SMBUS. As a result the code can be simplified a lot.

This patchset was successfully tested with a 24C32 on a I2C adapter.

The patchset was submitted first in Aug 2017 and was sitting in the review queue until now. Resubmitted version is rebased due to recent changes to at24.

Changes in v3:
- Small changes based on review comments
- Introduce at24_adjust_read_offset to avoid some overhead Changes in v4:
- Small improvement in patch 5
Changes in v5:
- Small improvement in patch 5
I still add offset_adj in at24_regmap_read, because we may have values like 0x9a for offset_adj, and the or-ing to offset may be inappropriate.
Changes in v6:
- rebased
- re-introduce check for I2C_SMBUS_BLOCK_MAX in patch 7

Heiner Kallweit (7):
eeprom: at24: add basic regmap_i2c support
eeprom: at24: change at24_translate_offset return type
eeprom: at24: add regmap-based write function
eeprom: at24: remove old write functions
eeprom: at24: add regmap-based read functions
eeprom: at24: remove old read functions
eeprom: at24: remove now unneeded smbus-related code

 drivers/misc/eeprom/Kconfig |   1 +
 drivers/misc/eeprom/at24.c  | 434 +++++++++++---------------------------------
 2 files changed, 111 insertions(+), 324 deletions(-)
Signature · 1 line
2.15.0