[PATCH 2/3] timer-uclass: relocate ops pointers for CONFIG_NEEDS_MANUAL_RELOC

Ovidiu Panait ovpanait at gmail.com
Wed Oct 12 17:21:15 CEST 2022


Hi Simon,

On 10/12/22 15:59, Simon Glass wrote:
> On Tue, 11 Oct 2022 at 23:37, Ovidiu Panait <ovpanait at gmail.com> wrote:
>> Relocate timer_ops pointers when CONFIG_NEEDS_MANUAL_RELOC is enabled.
>>
>> The (gd->flags & GD_FLG_RELOC) check was added to make sure the reloc_done
>> logic works for drivers that use DM_FLAG_PRE_RELOC.
>>
>> Signed-off-by: Ovidiu Panait <ovpanait at gmail.com>
>> ---
>>
>>   drivers/timer/timer-uclass.c | 14 ++++++++++++++
>>   1 file changed, 14 insertions(+)
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> Which (broken) toolchain are you using?

Microblaze and m68k still use CONFIG_NEEDS_MANUAL_RELOC=y by default. I 
was testing on microblaze.


Ovidiu



More information about the U-Boot mailing list