[U-Boot] [PATCH] 7/12 Multiadapter/multibus I2C, drivers part 4

ksi at koi8.net ksi at koi8.net
Thu Feb 19 23:33:31 CET 2009


On Thu, 19 Feb 2009, Wolfgang Denk wrote:

> Dear ksi at koi8.net,
> 
> In message <Pine.LNX.4.64ksi.0902191149360.18501 at home-gw.koi8.net> you wrote:
> >
> > > For what you will do this, when you can;t use the adapter, when running from
> > > flash? See Later, why you cannot use it.
> > 
> > Using multiple adapters while running from flash is an exception. I can let
> > myself call adapter-specific functions directly if needed, without changing
> > busses.
> 
> Maybe we all can save some time here?
> 
> For the following  discussion,  please  let's  assume  that  we  have
> reached  an  agreement that we do NOT support multiple adapters while
> running from flash.
> 
> OK?  Thanks.

As a matter of fact I wasn't going to support it either :) That bus_num
variable is not writable before relocation and I deliberately made
i2c_set_bus() fail when running from flash.

But if somebody wants to use several adapters it can do it by calling
adapter methods directly. This provides necessary means for a simple hack if
a board or two would require such access thus saving us from extensive and
complex hack. But those are clear exceptions and they are NOT covered by
regular API.

---
******************************************************************
*  KSI at home    KOI8 Net  < >  The impossible we do immediately.  *
*  Las Vegas   NV, USA   < >  Miracles require 24-hour notice.   *
******************************************************************


More information about the U-Boot mailing list