On 2026-07-11T13:38:37, Marek Vasut <[email protected]> wrote:
> cmd: date: Handle -ENOSYS return from dm_rtc_reset()
>
> In case dm_rtc_reset() returns -ENOSYS, it means the .reset callback
> in RTC driver is not implemented, likely because the callback is not
> needed. Handle the -ENOSYS return code as success and proceed, else
> the 'date reset' invocation incorrectly prints a bogus warning:
> "## Failed to set date after RTC reset".
>
> Signed-off-by: Marek Vasut <[email protected]>
>
> cmd/date.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to