[U-Boot] [PATCH 1/3] i2c: tegra: use repeated start for reads

Yen Lin yelin at nvidia.com
Thu Jun 26 01:36:18 CEST 2014


Hi Stephen,

> Subject: [U-Boot] [PATCH 1/3] i2c: tegra: use repeated start for reads
> 
> From: Stephen Warren <swarren at nvidia.com>
> 
> I2C read transactions are typically implemented as follows:
> 
> START(write) address REPEATED_START(read) data... STOP
> 
> However, Tegra's I2C driver currently implements reads as follows:
> 
> START(write) address STOP START(read) data... STOP
> 
> This sequence confuses at least the AS3722 PMIC on the Jetson TK1 board,
> leading to corrupted read data in some cases. Fix the driver to chain the
> transactions together using repeated starts to solve this.
> 
> Signed-off-by: Stephen Warren <swarren at nvidia.com>

This patch looks good to me.

Reviewed-by: Yen Lin <yelin at nvidia.com>

Regards,
Yen Lin
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------


More information about the U-Boot mailing list