Commit 57ca8495 authored by Alexandru M Stan's avatar Alexandru M Stan Committed by Greg Kroah-Hartman
Browse files

i2c: rk3x: fix 0 length write transfers



commit cf27020d upstream.

i2cdetect -q was broken (everything was a false positive, and no transfers were
actually being sent over i2c). The way it works is by sending a 0 length write
request and checking for NACK. This patch fixes the 0 length writes and actually
sends them.

Reported-by: default avatarDoug Anderson <dianders@chromium.org>
Signed-off-by: default avatarAlexandru M Stan <amstan@chromium.org>
Tested-by: default avatarDoug Anderson <dianders@chromium.org>
Tested-by: default avatarMax Schwarz <max.schwarz@online.de>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7f28469c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment