Skip to content

eeprom: at24: at24cs series serial number read

Bartosz Golaszewski linux-i2c lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 4/49 patches 9 repliesIn review
  2. v2 posting 3/49 patches 0 repliesSuperseded
  3. v2 posting 2/49 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 posting 1/49 patches0 repliesSuperseded
v1 posting 2/29 patches5 repliesSuperseded
v1 posting 1/29 patches0 repliesSuperseded

Changes in v2 from the cover letter

- protect the serial number read with a mutex

Patches in v2 posting 4/4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9eeprom: at24: platform_data: use BIT() macroinclude/linux/platform_data/at24.h+4 -40 replies
2/9eeprom: at24: new flag in platform_datainclude/linux/platform_data/at24.h+1 -00 replies
3/9eeprom: at24: tie up an additional address for at24cs seriesdrivers/misc/eeprom/at24.c+26 -40 replies
4/9eeprom: at24: support reading of the serial numberdrivers/misc/eeprom/at24.c+71 -00 replies
5/9eeprom: at24: export the serial number through sysfsdrivers/misc/eeprom/at24.c+40 -40 replies
6/9eeprom: at24: improve the device_id table readabilitydrivers/misc/eeprom/at24.c+14 -140 replies
7/9eeprom: at24: add the at24cs series to the list of supported devicesdrivers/misc/eeprom/at24.c+9 -00 replies
8/9eeprom: at24: remove a reduntant ifdrivers/misc/eeprom/at24.c+0 -30 replies
9/9eeprom: at24: readability tweaksdrivers/misc/eeprom/at24.c+8 -80 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [RESEND PATCH v2 0/9] eeprom: at24: at24cs series serial number read

Chips from the at24cs EEPROM series have an additional read-only memory area containing a factory pre-programmed serial number. In order to access it, a dummy write must be executed before reading the serial number bytes.

This series adds support for reading the serial number through a sysfs attribute.

While we're at it: some of the patches contain readability tweaks and code organization fixes.

Tested with at24cs64 and at24cs02 chips (for both 16 and 8 bit address pointers).

(rebased against 4.4-rc3)

v2:
- protect the serial number read with a mutex

v1: https://lkml.org/lkml/2015/10/20/162

Bartosz Golaszewski (9):
eeprom: at24: platform_data: use BIT() macro
eeprom: at24: new flag in platform_data
eeprom: at24: tie up an additional address for at24cs series
eeprom: at24: support reading of the serial number
eeprom: at24: export the serial number through sysfs
eeprom: at24: improve the device_id table readability
eeprom: at24: add the at24cs series to the list of supported devices
eeprom: at24: remove a reduntant if
eeprom: at24: readability tweaks

 drivers/misc/eeprom/at24.c         | 187 +++++++++++++++++++++++++++++++------
 include/linux/platform_data/at24.h |   9 +-
 2 files changed, 166 insertions(+), 30 deletions(-)
Signature · 1 line
2.1.4