[U-Boot] [PATCH] net: Fix netretry condition

Joe Hershberger joe.hershberger at ni.com
Mon Mar 19 21:01:38 UTC 2018


On Fri, Mar 9, 2018 at 8:29 AM, Leonid Iziumtsev
<leonid.iziumtsev at gmail.com> wrote:
> The "net_try_count" counter starts from "1".
> And the "retrycnt" contains requested amount of retries.
>
> With current logic, that means that the actual retry amount
> will be one time less then what we set in "netretry" env.
> For example setting "netretry" to "once" will make "retrycnt"
> equal "1", so no retries will be triggered at all.
>
> Fix the logic by changing the statement of "if" condition.
>
> Signed-off-by: Leonid Iziumtsev <leonid.iziumtsev at se.atlascopco.com>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list