[U-Boot] [PATCH v2 02/10] sysreset: Add get_status method

Mario Six mario.six at gdsys.cc
Fri May 4 08:06:57 UTC 2018


Hi Simon,

On Thu, May 3, 2018 at 9:01 PM, Simon Glass <sjg at chromium.org> wrote:
> On 27 April 2018 at 06:52, Mario Six <mario.six at gdsys.cc> wrote:
>> It's useful to have the reset status of the SoC printed out during reset
>> (e.g. to learn whether the reset was caused by software or a watchdog).
>>
>> As a first step to implement this, add a get_status method to the
>> sysreset class, which enables the caller to get printable information
>> about the reset status (akin to get_desc in the CPU uclass).
>>
>> Signed-off-by: Mario Six <mario.six at gdsys.cc>
>>
>> ---
>>
>> v1 -> v2:
>> New in v2
>>
>> ---
>>  drivers/sysreset/sysreset-uclass.c | 10 ++++++++++
>>  include/sysreset.h                 | 17 +++++++++++++++++
>>  2 files changed, 27 insertions(+)
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> Can you add a test for sandbox?

OK, will add a test in v3.

Best regards,
Mario


More information about the U-Boot mailing list