> fastboot_handle_boot() takes a "success" flag and boots the downloaded
> image, leaves fastboot or reboots only when it is set. The TCP transport
> passes strncmp("OKAY", ...) != 0, which is true when the command failed:
> since the TCP rework, "boot", "continue" and "reboot*" over TCP do nothing
> after their OKAY reply and would act after a FAIL. Pass the comparison
> result like the UDP transport does.
>
> Fixes: bf962de97c37 ("net/tcp: improve tcp framework, use better state
> machine")
> Signed-off-by: Igor Opaniuk <[email protected]>
> ---
> net/fastboot_tcp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-net branch for-main [1], thanks!
[1]
https://git.u-boot-project.org/u-boot/custodians/u-boot-net/-/commits/for-main
[1/1] net: fastboot_tcp: act on a command that succeeded, not on one that failed
commit: ce18369dd0620f51f10fe0dcba3d2a0586898290
Best regards,
--
Jerome Forissier <[email protected]>