From: Heiko Schocher Date: Sat, 30 May 2020 05:47:38 +0200 Subject: [PATCH 2/2] i2c: designware_i2c: Check if the device is powered In-Reply-To: <20200422101349.2.If5527972508e0f4b35cc9ecdb1491b1ce85ff3af@changeid> References: <20200422161354.187417-1-sjg@chromium.org> <20200422101349.2.If5527972508e0f4b35cc9ecdb1491b1ce85ff3af@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Simon, Am 22.04.2020 um 18:13 schrieb Simon Glass: > From: Raul E Rangel > > If the device doesn't return a version that means the device is > non-functional. > > The dw_i2c_regs had invalid offsets for the version field. I got the > correct value from the DesignWare databook. It also matches what the > Picasso PPR says. > > Signed-off-by: Raul E Rangel > Reviewed-by: Simon Glass > Reviewed-by: Furquan Shaikh > Tested on chromebook_coral: > Signed-off-by: Simon Glass > --- > > drivers/i2c/designware_i2c.c | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) Applied to u-boot-i2c master 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