]> err.no Git - linux-2.6/blobdiff - drivers/misc/eeprom_93cx6.c
avr32/pata: avoid unnecessary memset (updated after comments)
[linux-2.6] / drivers / misc / eeprom_93cx6.c
index bfcb43424dcd66c64d6c568e82c665f3f19a42fb..ea55654e5948255afdf82679e76bb1b5f3078047 100644 (file)
@@ -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)