]> git.baikalelectronics.ru Git - uboot.git/commit
ti: common: board_detect: Handle EEPROM probe more gracefully
authorAndreas Dannenberg <dannenberg@ti.com>
Tue, 7 Jan 2020 07:45:53 +0000 (13:15 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 20 Jan 2020 04:40:28 +0000 (10:10 +0530)
commit327ace8e5c5bd1a28b72c8d73a8fe7da8a2ae392
treeab994d6c1548916a6ed88be89495bffda6837127
parenta26c73a7c6d0da5e1c920f707b22e51db0820c6d
ti: common: board_detect: Handle EEPROM probe more gracefully

Use dm_i2c_probe() rather than i2c_get_chip() when trying to access
board-detection EEPROM devices. This has the advantage of more gracefully
handling the case when the EEPROM is not present by allowing to exit the
function early rather than failing and outputting an error message on the
I2C transactions that follow.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
board/ti/common/board_detect.c