[U-Boot] [PATCH v3 1/6] board_f: Drop the timer after relocation

Bin Meng bmeng.cn at gmail.com
Tue Sep 12 13:30:47 UTC 2017


On Wed, Sep 6, 2017 at 9:49 AM, Simon Glass <sjg at chromium.org> wrote:
> Once U-Boot relocates itself the existing driver-model timer (if any) is
> no-longer valid until the device is reinitialised. Any use of the device
> may cause a crash. To handle this, set the timer to NULL after relocation.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v3:
> - Bracket access to gd->timer with an #ifdef
>
> Changes in v2: None
>
>  common/board_f.c | 3 +++
>  1 file changed, 3 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list