Hi Michal,

Am 17.06.2020 um 05:12 schrieb Simon Glass:
Hi Michal,

On Tue, 16 Jun 2020 at 07:53, Michal Simek <michal.si...@xilinx.com> wrote:



On 16. 06. 20 15:43, Simon Glass wrote:
On Mon, 15 Jun 2020 at 07:41, Michal Simek <michal.si...@xilinx.com> wrote:

Remove adhoc dt binding for fixed-partition definition for i2c eeprom.
fixed-partition are using reg property instead of offset/size pair.

Signed-off-by: Michal Simek <michal.si...@xilinx.com>
---

Changes in v2:
- Bootcount tested on zynqmp zcu104
- Add missing address/size cells
- Use dev_read_addr_size_index
- Check parameters

Just build tested - ge_bx50v3_defconfig
Definitely please retest on hardware.

---
  arch/arm/dts/imx53-ppd-uboot.dtsi    | 15 +++++++++------
  arch/arm/dts/imx6q-bx50v3-uboot.dtsi | 12 +++++++-----
  drivers/misc/i2c_eeprom.c            | 20 ++++++++++----------
  3 files changed, 26 insertions(+), 21 deletions(-)


We have a sandbox I2C EEPROM, so you should be able to use the
existing test, right?

The way how I have tested it was via drivers/bootcount/i2c-eeprom.c
driver which define which eeprom stores it.
Do you have any existing tests for bootcount done via sandbox?

If bootcount is not the right way to go then doing this code should be
better way. It means just define some partitions (0 size - for failure,
then proper range, proper write, write behind size for failure).

Can you use drivers/misc/i2c_eeprom.c?

See test/dm/bootcount.c for the sandbox tests for bootcount.

Any updates on this?

@Robert: May you find time to test this change and give us feedback?

Thanks!

bye,
Heiko
--
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: h...@denx.de

Reply via email to