[U-Boot] [PATCH] add reboot as a synonym for reset

Andrew Dyer amdyer at gmail.com
Mon Sep 8 21:33:15 CEST 2008


On Mon, Sep 8, 2008 at 1:43 PM, Wolfgang Denk <wd at denx.de> wrote:
> Dear Andrew Dyer,
>
> In message <48C56AEA.8040706 at righthandtech.com> you wrote:
>> Add 'reboot' as a synonym for 'reset' at the u-boot command line.
>
> I tend to reject this change, because I think it is  actually  wrong.
> 'reboot'  and  'reset' are two different things - the former includes
> an ordered shut-down  of  running  services  while  the  latter  just
> performs what the name says: a hardware reset.

I'm fine with your decision, it was just a convenience for me, so I'll
keep it in my local tree, but I would ask in the context of u-boot
where there are essentially no 'services' or state that needs to be
saved, what's the real difference?

For a hypothetical do_reboot(), I suppose one could extract some of
the code of do_bootm() (shut off interrupts, usb, maybe caches) into a
common function, run an optional platform hook and then do_reset(),
but it doesn't seem like it would make much difference for the vast
majority of cases, once the hardware reset comes through.

-- 
Hardware, n.:
 The parts of a computer system that can be kicked.


More information about the U-Boot mailing list