All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot]  [RESEND PATCH 0/3] Fix command repeat
@ 2014-06-05 18:07 Thomas Betker
  2014-06-05 18:07 ` [U-Boot] [RESEND PATCH 1/3] Check run_command() return code properly Thomas Betker
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Thomas Betker @ 2014-06-05 18:07 UTC (permalink / raw)
  To: u-boot

I am resending the patches because they didn't make it to Patchwork the 
first time, probably due to a configuration issue on my side.

The intent of these patches is to get command repeat to work again. 
Currently, successful commands won't be repeated but failed commands 
will -- neither is as expected.

The issue is that run_command() returns 0 on success, 1 on error. In 
order to get command repeat to work, we need a variant which returns -1 
on error and 0/1 (non-repeatable/repeatable) on succcess, the same way 
as cli_simple_run_command() does.

Patch 2 adds the run_command_repeatable() function, and patch 3 
replaces run_command() by run_command_repeatable() where necessary.

Patch 1 is a cleanup of places which call run_command(), but expect it 
to return -1 on error. This is actually independent of the other two 
patches -- it just came up when checking run_command() invocations in 
general.

Best regards,
Thomas Betker

Thomas Betker (3):
  Check run_command() return code properly
  Add run_command_repeatable()
  Use run_command_repeatable()

 arch/arm/cpu/arm926ejs/kirkwood/cpu.c |  2 +-
 board/gdsys/p1022/controlcenterd.c    |  6 +-----
 common/cli.c                          | 24 ++++++++++++++++++++++++
 common/cli_simple.c                   |  2 +-
 common/cmd_bedbug.c                   |  2 +-
 common/cmd_bootm.c                    |  6 +-----
 include/common.h                      |  1 +
 7 files changed, 30 insertions(+), 13 deletions(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-06-11 22:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-05 18:07 [U-Boot] [RESEND PATCH 0/3] Fix command repeat Thomas Betker
2014-06-05 18:07 ` [U-Boot] [RESEND PATCH 1/3] Check run_command() return code properly Thomas Betker
2014-06-05 18:14   ` Simon Glass
2014-06-05 18:18     ` Simon Glass
2014-06-06  8:40     ` Thomas.Betker at rohde-schwarz.com
2014-06-08  8:57   ` Stefan Roese
2014-06-11 22:18   ` [U-Boot] [U-Boot, RESEND, " Tom Rini
2014-06-05 18:07 ` [U-Boot] [RESEND PATCH 2/3] Add run_command_repeatable() Thomas Betker
2014-06-05 18:18   ` Simon Glass
2014-06-11 22:18   ` [U-Boot] [U-Boot,RESEND,2/3] " Tom Rini
2014-06-05 18:07 ` [U-Boot] [RESEND PATCH 3/3] Use run_command_repeatable() Thomas Betker
2014-06-05 18:18   ` Simon Glass
2014-06-11 22:18   ` [U-Boot] [U-Boot,RESEND,3/3] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.