CHROMIUM: i2c: core: add retries when probing devices

I2C device may be sleeping while being probed. This may lead to the
first read being unsuccessful. Some devices are known to wake at the
first clock of such read, so retry probing several times.
Add more debug so that dmesg contains more explicit messages on how
many retries have been actually performed.

BUG=b:197877804
TEST=Build and upload the kernel to a chromebook device. Make sure it
works.

Signed-off-by: Angela Czubak <acz@semihalf.com>
Change-Id: I0efd32a8b8de3015f9e10bccfa6e5533f7db5776
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3172565
Reviewed-by: Radoslaw Biernacki <biernacki@google.com>
Commit-Queue: Radoslaw Biernacki <biernacki@google.com>
Tested-by: Radoslaw Biernacki <biernacki@google.com>
3 files changed