]> git.dujemihanovic.xyz Git - u-boot.git/commit
sysreset: Fix unsupported request return values
authorPaul Barker <paul.barker.ct@bp.renesas.com>
Wed, 8 Nov 2023 08:51:10 +0000 (08:51 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 16 Nov 2023 23:53:09 +0000 (18:53 -0500)
commitda35ab68de168eb0481a02368559999cfd7882ba
treef6fbb58c25facc43f710e97fcb57579a281c9aed
parent15e871fc5d125f58e637d035e3aa5d01dc323e2f
sysreset: Fix unsupported request return values

The description of the sysreset request method in <sysreset.h> says that
the return value should be -EPROTONOSUPPORT if the requested reset type
is not supported by this device.

Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/sysreset/poweroff_gpio.c
drivers/sysreset/sysreset_psci.c
drivers/sysreset/sysreset_sandbox.c
drivers/sysreset/sysreset_watchdog.c
drivers/sysreset/sysreset_x86.c
test/dm/sysreset.c