Skip to content

bootcount: Replace I2C legacy implementation by driver model

Philip Richard Oberfichtner u-boot 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 6 repliesIn review
  2. v23 patches 5 repliesSuperseded
  3. v12 patches 11 repliesSuperseded

Changes in v3 from the cover letter

- Remove common.h #include

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bootcount: Remove legacy I2C driverdrivers/bootcount/Kconfig drivers/bootcount/Makefile drivers/bootcount/bootcount_i2c.c+3 -652 replies
2/3i2c: Implement i2c_get_chip_by_phandle()drivers/i2c/i2c-uclass.c include/i2c.h+87 -02 replies
3/3bootcount: Add driver model I2C driverdrivers/bootcount/Kconfig drivers/bootcount/Makefile drivers/bootcount/bootcount_dm_i2c.c+113 -02 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchHeiko Schocher
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] bootcount: Replace I2C legacy implementation by driver model

The generic I2C bootcounter driver does not yet adhere to driver model. This patchset intends to replace the legacy implementation.

There are currently no upstream boards using the driver, so it should be safe to just remove it. For downstream users it should be straighforward to switch to the new implementation.

Changes in v3:
- Remove common.h #include

Changes in v2:
- Improved device tree handling by replacing address property with phandle
- Addition of a generic i2c helper function

Philip Richard Oberfichtner (3):
bootcount: Remove legacy I2C driver
i2c: Implement i2c_get_chip_by_phandle()
bootcount: Add driver model I2C driver

 drivers/bootcount/Kconfig            |  34 ++++-----
 drivers/bootcount/Makefile           |   2 +-
 drivers/bootcount/bootcount_dm_i2c.c | 102 +++++++++++++++++++++++++++
 drivers/bootcount/bootcount_i2c.c    |  43 -----------
 drivers/i2c/i2c-uclass.c             |  75 ++++++++++++++++++++
 include/i2c.h                        |  12 ++++
 6 files changed, 203 insertions(+), 65 deletions(-)
 create mode 100644 drivers/bootcount/bootcount_dm_i2c.c
 delete mode 100644 drivers/bootcount/bootcount_i2c.c
Signature · 1 line
2.42.0