rename generic-2.6/config-default to generic-2.6/config-2.6.21
[openwrt/svn-archive/archive.git] / target / linux / generic-2.6 / patches-2.6.22 / 601-eeprom_93cx6_fixes.patch
1 --- a/drivers/misc/eeprom_93cx6.c
2 +++ b/drivers/misc/eeprom_93cx6.c
3 @@ -39,14 +39,26 @@
4 {
5 eeprom->reg_data_clock = 1;
6 eeprom->register_write(eeprom);
7 - udelay(1);
8 +
9 + /*
10 + * Add a short delay for the pulse to work.
11 + * According to the specifications the "maximum minimum"
12 + * time should be 450ns.
13 + */
14 + ndelay(450);
15 }
16
17 static inline void eeprom_93cx6_pulse_low(struct eeprom_93cx6 *eeprom)
18 {
19 eeprom->reg_data_clock = 0;
20 eeprom->register_write(eeprom);
21 - udelay(1);
22 +
23 + /*
24 + * Add a short delay for the pulse to work.
25 + * According to the specifications the "maximum minimum"
26 + * time should be 450ns.
27 + */
28 + ndelay(450);
29 }
30
31 static void eeprom_93cx6_startup(struct eeprom_93cx6 *eeprom)