[PATCH v5 008/101] i2c: designware: Avoid using static data

Simon Glass sjg at chromium.org
Thu Dec 5 05:28:12 CET 2019


Hi Bin,

On Mon, 25 Nov 2019 at 08:14, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> Hi Simon,
>
> On Mon, Nov 25, 2019 at 12:11 PM Simon Glass <sjg at chromium.org> wrote:
> >
> > Drivers are not allowed to use static data since they may be used in SPL
> > where BSS is not available.
> >
> > It is possible that driver model may provide support for numbering devices
> > in the future. But for now, move this to global_data.
>
> Can we add such functionality in driver model now? I feel a little bit
> odd to add a device number in the global data.

I suspect we could, but it is well outside the scope of this series.

I think someone is working on combining seq and req_seq and it could
perhaps be done as part of that. But any such redesign needs serious
through and effort. If we don't see movement in the next few months
then I could take a look.

This patches cleans up what is there to make it work. Hopefully we can
drop it one day.

Regards,
Simon


More information about the U-Boot mailing list