X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fmisc%2Feeprom_93cx6.c;h=ea55654e5948255afdf82679e76bb1b5f3078047;hb=68b90ee7c8046864301823d8d4449eb1ce1d2f74;hp=bfcb43424dcd66c64d6c568e82c665f3f19a42fb;hpb=9467d64b0e88763914c01f71ddf591b166c4f526;p=linux-2.6 diff --git a/drivers/misc/eeprom_93cx6.c b/drivers/misc/eeprom_93cx6.c index bfcb43424d..ea55654e59 100644 --- a/drivers/misc/eeprom_93cx6.c +++ b/drivers/misc/eeprom_93cx6.c @@ -39,14 +39,26 @@ static inline void eeprom_93cx6_pulse_high(struct eeprom_93cx6 *eeprom) { eeprom->reg_data_clock = 1; eeprom->register_write(eeprom); - udelay(1); + + /* + * Add a short delay for the pulse to work. + * According to the specifications the "maximum minimum" + * time should be 450ns. + */ + ndelay(450); } static inline void eeprom_93cx6_pulse_low(struct eeprom_93cx6 *eeprom) { eeprom->reg_data_clock = 0; eeprom->register_write(eeprom); - udelay(1); + + /* + * Add a short delay for the pulse to work. + * According to the specifications the "maximum minimum" + * time should be 450ns. + */ + ndelay(450); } static void eeprom_93cx6_startup(struct eeprom_93cx6 *eeprom)