From: Wolfgang Denk Date: Thu, 19 Feb 2009 22:29:05 +0100 Subject: [U-Boot] [PATCH] 7/12 Multiadapter/multibus I2C, drivers part 4 In-Reply-To: References: <499548C2.7060305@denx.de> <49967FAC.6090905@denx.de> <20090216221151.08966832E893@gemini.denx.de> <499BC42E.50001@denx.de> <499BCDC5.6080000@denx.de> <20090218215651.01589832E43F@gemini.denx.de> <20090218224837.6F9F0832E43F@gemini.denx.de> Message-ID: <20090219212905.48102832E43F@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear ksi at koi8.net, In message you wrote: > > > Good question. Probably each I2C device will have some list of > > bus/adapter ID's that need to be up to access it, and that will get > > shut down afterwards. > > Eh, that is what I call overcomplicated... And it definitely does not belong > to I2C subsystem per se, it's up to the board developer to know which bus You want to support complex systems, so let's assume this: The board developer may not know this. He designs a board which runs some I2C signals to some connectors where other boards, unknown to him may or may not be connected. Only the system integrator plugs together a system and knows the bus topology and where which device is. > each device is connected to. I2C system can not now where that "afterwards" > happen. If we are reading something from a device, checking some bit, > writing something else back depending on that bit and then repeat the entire > cycle (let's say we are polling for something and until that something > happened we are sending a "please continue" command back to that device, > then we tell it "thanks, stop now",) where in this sequence that > "afterwards" happens? After your last question mark. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de All easy problems have already been solved.