X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fcmd_i2c.c;h=62cbd335e5a458e31b1ff8a9950b62ed6875e4af;hb=f9476902b789b0481b9df49af88d6ca94fb16fa0;hp=8f0fc9e1d73a11bea1aa3ae80425dc1c2f51fcf9;hpb=cb32ed1fc298875845f166d326a3f2704a0d5364;p=u-boot diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c index 8f0fc9e1d7..62cbd335e5 100644 --- a/common/cmd_i2c.c +++ b/common/cmd_i2c.c @@ -315,10 +315,6 @@ int do_i2c_mw ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) /* * Wait for the write to complete. The write can take * up to 10mSec (we allow a little more time). - * - * On some chips, while the write is in progress, the - * chip doesn't respond. This apparently isn't a - * universal feature so we don't take advantage of it. */ /* * No write delay with FRAM devices. @@ -326,14 +322,6 @@ int do_i2c_mw ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) #if !defined(CONFIG_SYS_I2C_FRAM) udelay(11000); #endif - -#if 0 - for (timeout = 0; timeout < 10; timeout++) { - udelay(2000); - if (i2c_probe(chip) == 0) - break; - } -#endif } return (0);