From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 11 Feb 2019 16:54:14 +0100 Subject: [U-Boot] [PATCH v2 5/7] i2c: dm: Record maximum id of devices before probing devices In-Reply-To: <1082bb6e39c47693ef08726590993ff18fb85d92.1548948659.git.michal.simek@xilinx.com> References: <1082bb6e39c47693ef08726590993ff18fb85d92.1548948659.git.michal.simek@xilinx.com> Message-ID: <60500bcc-ee12-942b-8fc0-d64a463cff9a@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 Hello Michal, Am 31.01.2019 um 16:31 schrieb Michal Simek: > There is a need to find out the first free i2c ID which can be used for > i2s buses (including i2c buses connected to i2c mux). Do it early in > init and share this variable with other i2c classes for uniq bus > identification. > > Signed-off-by: Michal Simek > --- > > Changes in v2: > - Use dev_read_alias_highest_id() > - Use uclass private data > > drivers/i2c/i2c-uclass.c | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) Applied to u-boot-i2c.git master with a fix for build error for omap based boards as discussed. Thanks! bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de