]> git.baikalelectronics.ru Git - uboot.git/commit
i2c: tegra: Fix regression by implementing a dummy probe_chip() callback
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Tue, 11 Dec 2018 18:56:34 +0000 (19:56 +0100)
committerHeiko Schocher <hs@denx.de>
Wed, 12 Dec 2018 05:06:14 +0000 (06:06 +0100)
commitfd0cf04b71ac3181dfb7545cc87a45d76e409745
treea117f5cf3760cf5a9e5193cc233f1b42990e6185
parent52e6b0a7e7cb396204f87f954a468d09d4033a11
i2c: tegra: Fix regression by implementing a dummy probe_chip() callback

Commit 5bf80e4363bf ("dm: i2c: Make i2c_get_chip_for_busnum() fail if the
chip is not detected") introduced a regression for the NVIDIA Jetson TX2.

For some reason the xfer callback of the tegra i2c driver doesn't support
probing the I2C devices with a 0-length message.
Fixing the regression by providing a dummy implementation of probe_chip()
that does nothing.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
drivers/i2c/tegra186_bpmp_i2c.c