common: command: Fix manual relocation for repeatable command
authorMichal Simek <michal.simek@xilinx.com>
Mon, 21 Oct 2019 10:54:20 +0000 (12:54 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 24 Oct 2019 11:37:03 +0000 (13:37 +0200)
commit6f94daf9151e76f68a2a46d15862e232436a14e3
treea86e2aab37d816cd9e4481277aaefd37281dc7de
parentf3035cf29958dbf21587a1bdb98eb9f692120d40
common: command: Fix manual relocation for repeatable command

All platforms which are using MANUAL_RELOC are jumping back to origin
location when repeatable command is called. The reason is that cmd_rep link
is not updated properly. Issue can be reproduced by rewriting origin
U-Boot location through (for example) file download by tftp command.

Fixes: 80a48dd47e3b ("common: command: Rework the 'cmd is repeatable' logic")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
common/command.c