On Mon, May 14, 2007 at 05:00:21PM +0200, Ivo van Doorn wrote: > On Monday 14 May 2007 16:55, Michael Wu wrote: > > On Monday 14 May 2007 02:49, Ivo Van Doorn wrote: > > > For the record: I am still not happy with the removal of the udelay() from > > > the pulse methods as they were indicated by the original Ralink code. > > > But since I cannot test the effect on Ralink eeprom reading at this time, > > > and I could otherwise just add it to the register_write handler if > > > required, I am signing this off anyway. > > > > > The udelay is necessary to set a limit on how fast the eeprom is operated.. > > but not on all hardware, apparently. adm8211 just uses a read from the eeprom > > register to perform the delay. > > Ok, then I'll update rt2x00 to perform the delay during register_write as well. :) Actually, see the end of the thread from the previous 93cx6 patch Michael posted on Friday. I think these delays are actually alright, but they could use a comment. How about the patch below (applied on top of the previous version)? John P.S. No need to repost any 93cx6 patches, I have them. --- [PATCH] eeprom_93cx6: add comment explaining clocking delays Signed-off-by: John W. Linville <linville@xxxxxxxxxxxxx> diff --git a/drivers/misc/eeprom_93cx6.c b/drivers/misc/eeprom_93cx6.c index bfcb434..1f615ac 100644 --- a/drivers/misc/eeprom_93cx6.c +++ b/drivers/misc/eeprom_93cx6.c @@ -39,6 +39,8 @@ static inline void eeprom_93cx6_pulse_high(struct eeprom_93cx6 *eeprom) { eeprom->reg_data_clock = 1; eeprom->register_write(eeprom); + + /* honor T_ckh hold requirements from datasheet */ udelay(1); } @@ -46,6 +48,8 @@ static inline void eeprom_93cx6_pulse_low(struct eeprom_93cx6 *eeprom) { eeprom->reg_data_clock = 0; eeprom->register_write(eeprom); + + /* honor T_ckl hold requirements from datasheet */ udelay(1); } -- John W. Linville linville@xxxxxxxxxxxxx - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html