From: York Sun Date: Fri, 27 May 2011 14:25:44 +0800 Subject: [U-Boot] [PATCH 1/7] powerpc/i2c: introduce CONFIG_I2C_TWR for setting tWR value In-Reply-To: <4DDF3EDA.1030808@denx.de> References: <1306452353-11611-1-git-send-email-yorksun@freescale.com> <4DDF3EDA.1030808@denx.de> Message-ID: <1306477544.23885.10.camel@oslab-l1> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 2011-05-27 at 08:04 +0200, Heiko Schocher wrote: > Hmm.. you add this timeout in the i2c driver, which will result in > adding this default 5 ms delay for *all* i2c writes, not only for > eeprom devices ... why you didn;t add this timeout in cmd_eeprom, > where it seems to me is the better place for it? Looking in this > common/cmd_eeprom.c there is a CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS > define ... is this not adequate? > You are right. I overlooked CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS and should use this instead. Drop this patch, please. York