]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/soft_i2c.c
* Use 1-byte-read instead of -write for iprobe() function
[karo-tx-uboot.git] / common / soft_i2c.c
index 77774801e87018f1e4ae962efc9b004583f3e56f..63574044ad0de900897c6d7d02a3a277a3f0886f 100644 (file)
@@ -287,8 +287,9 @@ int i2c_probe(uchar addr)
 {
        int rc;
 
+       /* perform 1 byte read transaction */
        send_start();
-       rc = write_byte ((addr << 1) | 1);
+       rc = write_byte ((addr << 1) | 0);
        send_stop();
 
        return (rc ? 1 : 0);