Hi Igor,

On Tue, 12 Feb 2019 at 14:54, Igor Opaniuk <igor.opan...@linaro.org> wrote:
>
> Hi Tom, Simon,
>
> So I did a little investigation and found out that, the issue in that
> hcreate_r() invocation in the tee sandbox driver fails because the
> hashtable was allocated before.
> Debugging showed that the sandbox tee driver is probed twice every
> time (although remove() is never called, it's behaves like there are
> two "tee" nodes in DT), and still haven't found the root cause (I
> think Simon can help with the hint where to look).
> I was assuming that those returned udevice pointers are kept in some
> global state but seem that they are de-allocated at some point.
> Have you ever faced the same behavior?

Not really. If the driver is probed before relocation then it may be
probed again after relocation. You should be able to tell that by
check gd->flags.

Regards,
Simon
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to