All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: Nandor Han <nandor.han@vaisala.com>,
	u-boot@lists.denx.de, trini@konsulko.com, sjg@chromium.org
Cc: vesa.jaaskelainen@vaisala.com
Subject: Re: [PATCH v2 1/1] bootcount: add a new driver with syscon as backend
Date: Mon, 23 Aug 2021 06:33:24 +0200	[thread overview]
Message-ID: <37e98f64-034c-1960-4ca9-6fcce371ab41@denx.de> (raw)
In-Reply-To: <3a1c85f25c7b071846759ad9a4ae21a1556f02c4.1623328711.git.nandor.han@vaisala.com>

Hello Nandor,

On 10.06.21 14:40, Nandor Han wrote:
> The driver will use a syscon regmap as backend and supports both
> 16 and 32 size value. The value will be stored in the CPU's endianness.
> 
> Signed-off-by: Nandor Han <nandor.han@vaisala.com>
> ---
> 
> Notes:
>     Description
>     -----------
>     Add a new driver for bootcount feature that supports `syscon` device as
>     backend.
> 
>     Testing
>     -------
>     UnitTests:
>     1. Verify that unit-tests run successfully: PASS
>     ```
>     ./test/py/test.py --bd sandbox --build -k ut_dm_bootcount -v
> 
>     test/py/tests/test_ut.py::test_ut[ut_dm_bootcount_rtc] PASSED                [ 33%]
>     test/py/tests/test_ut.py::test_ut[ut_dm_bootcount_syscon_four_bytes] PASSED  [ 66%]
>     test/py/tests/test_ut.py::test_ut[ut_dm_bootcount_syscon_two_bytes] PASSED   [100%]
>     ```
> 
>     Using hardware:
>     Board: i.MX6sx based dev board
>     U-Boot version: 2020.01
>     1. Use `bootcount` command to verity that value is updated
>     correctly: PASS
> 
> 
> Changes since v1:
>  - rebased
> 
>  arch/sandbox/dts/test.dts                     |  14 ++
>  configs/sandbox_defconfig                     |   1 +
>  doc/device-tree-bindings/bootcount-syscon.txt |  25 +++
>  drivers/bootcount/Kconfig                     |  12 ++
>  drivers/bootcount/Makefile                    |   1 +
>  drivers/bootcount/bootcount_syscon.c          | 159 ++++++++++++++++++
>  test/dm/bootcount.c                           |  48 +++++-
>  7 files changed, 257 insertions(+), 3 deletions(-)
>  create mode 100644 doc/device-tree-bindings/bootcount-syscon.txt
>  create mode 100644 drivers/bootcount/bootcount_syscon.c

Applied to u-boot-i2c.git master

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: hs@denx.de

      parent reply	other threads:[~2021-08-23  4:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-10 12:40 [PATCH v2 1/1] bootcount: add a new driver with syscon as backend Nandor Han
2021-07-05 15:55 ` Simon Glass
2021-08-23  4:33 ` Heiko Schocher [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=37e98f64-034c-1960-4ca9-6fcce371ab41@denx.de \
    --to=hs@denx.de \
    --cc=nandor.han@vaisala.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vesa.jaaskelainen@vaisala.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.