All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nandor Han <nandor.han@vaisala.com>
To: Simon Glass <sjg@chromium.org>
Cc: "U-Boot Mailing List" <u-boot@lists.denx.de>,
	"Tom Rini" <trini@konsulko.com>,
	"Vesa Jääskeläinen" <vesa.jaaskelainen@vaisala.com>
Subject: Re: [PATCH v4 3/3] reboot-mode: read the boot mode from RTC memory
Date: Wed, 14 Jul 2021 12:55:11 +0300	[thread overview]
Message-ID: <4bdb497e-a5a0-d3d1-d29a-2fc67ba6d95c@vaisala.com> (raw)
In-Reply-To: <CAPnjgZ2==fbjr=+o6P5G7ohj3UqEK6zUa5SPb0JQZztOTM3rbg@mail.gmail.com>

On 7/5/21 6:29 PM, Simon Glass wrote:
> Hi Nandor,
> 
> On Mon, 28 Jun 2021 at 03:44, Nandor Han <nandor.han@vaisala.com> wrote:
>>
>> On 6/26/21 9:30 PM, Simon Glass wrote:
>>> Hi Nandor,
>>>
>>> On Thu, 10 Jun 2021 at 07:57, Nandor Han <nandor.han@vaisala.com> wrote:
>>>>
>>>> RTC devices could provide battery-backed memory that can be used for
>>>> storing the reboot mode magic value.
>>>>
>>>> Add a new reboot-mode back-end that uses RTC to store the reboot-mode
>>>> magic value. The driver also supports both endianness modes.
>>>>
>>>> Signed-off-by: Nandor Han <nandor.han@vaisala.com>
>>>> ---
>>>>    arch/sandbox/dts/test.dts                     |  10 ++
>>>>    configs/sandbox_defconfig                     |   1 +
>>>>    .../reboot-mode/reboot-mode-rtc.txt           |  22 +++
>>>>    drivers/reboot-mode/Kconfig                   |   9 ++
>>>>    drivers/reboot-mode/Makefile                  |   1 +
>>>>    drivers/reboot-mode/reboot-mode-rtc.c         | 127 ++++++++++++++++++
>>>>    include/reboot-mode/reboot-mode-rtc.h         |  16 +++
>>>>    test/dm/reboot-mode.c                         |  29 ++++
>>>>    8 files changed, 215 insertions(+)
>>>>    create mode 100644 doc/device-tree-bindings/reboot-mode/reboot-mode-rtc.txt
>>>>    create mode 100644 drivers/reboot-mode/reboot-mode-rtc.c
>>>>    create mode 100644 include/reboot-mode/reboot-mode-rtc.h
>>>>
>>>
>>> Reviewed-by: Simon Glass <sjg@chromium.org>
>>>
>>> But I think it would be better to put this device as a child of the
>>> rtc, so it is more obvious that they are related. It also avoids the
>>> phandle. What do you think?
>>>
>>
>> Hi Simon and thanks for reviewing the code,
>>     I think the idea is not bad, however, would be ok to consider the
>> recommendation as improvement opportunity and merge this as
>> it is for now? I'm a bit busy with some other stuff now and I could
>> start implementing this some time later. At least it would help me since
>> this are on the mailing list since Dec 2019 :).
> 
> Well I don't think you could change this later because it would change
> the binding. I suppose you could add it as an option.
> 
> I am OK with either way (hence my reviewed-by tag).

Thanks Simon.

-- 
Regards,
    Nandor

  reply	other threads:[~2021-07-14  9:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-10 13:56 [PATCH v4 0/3] Add reboot mode support Nandor Han
2021-06-10 13:56 ` [PATCH v4 1/3] reboot-mode: add support for reboot mode control Nandor Han
2021-06-26 18:30   ` Simon Glass
2021-07-23 18:52   ` Tom Rini
2021-06-10 13:56 ` [PATCH v4 2/3] reboot-mode: read the boot mode from GPIOs status Nandor Han
2021-06-26 18:30   ` Simon Glass
2021-07-23 18:52   ` Tom Rini
2021-06-10 13:56 ` [PATCH v4 3/3] reboot-mode: read the boot mode from RTC memory Nandor Han
2021-06-26 18:30   ` Simon Glass
2021-06-28  9:44     ` Nandor Han
2021-07-05 15:29       ` Simon Glass
2021-07-14  9:55         ` Nandor Han [this message]
2021-07-23 18:52   ` Tom Rini

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=4bdb497e-a5a0-d3d1-d29a-2fc67ba6d95c@vaisala.com \
    --to=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.