
Hello Philip,
On 13.10.23 11:43, Philip Richard Oberfichtner wrote:
The legacy I2C bootcounter will hereby be removed and eventually be replaced by a driver model implementation in the follow-up commit.
The legacy driver has the following drawbacks:
- It's not adhering to the driver model
- Settings are grabbed from Kconfig rather than device tree
- i2c_{read,write} are being used instead of dm_i2c_{read,write}
Signed-off-by: Philip Richard Oberfichtner pro@denx.de
drivers/bootcount/Kconfig | 24 +++-------------- drivers/bootcount/Makefile | 1 - drivers/bootcount/bootcount_i2c.c | 43 ------------------------------- 3 files changed, 3 insertions(+), 65 deletions(-) delete mode 100644 drivers/bootcount/bootcount_i2c.c
Hmm.. I find some boards in mainline which still use this driver:
u-boot [master] $ grep -lr BOOTCOUNT_I2C . ./configs/sandbox_defconfig ./configs/mx53ppd_defconfig ./configs/ge_bx50v3_defconfig [...]
So your remove patch will break them ... okay sandbox should be easy to convert to your DM approach patch from this series.
bye, Heiko