[PATCH 1/2] bootcount: Remove legacy I2C driver
Heiko Schocher
hs at denx.de
Fri Oct 13 13:21:41 CEST 2023
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 at 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
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de
More information about the U-Boot
mailing list