add a gpio feature for devices supporting the generic GPIO interface
[openwrt.git] / target / linux / generic-2.6 / patches-2.6.22 / 601-eeprom_93cx6_fixes.patch
1 Index: linux-2.6.22.18/drivers/misc/eeprom_93cx6.c
2 ===================================================================
3 --- linux-2.6.22.18.orig/drivers/misc/eeprom_93cx6.c
4 +++ linux-2.6.22.18/drivers/misc/eeprom_93cx6.c
5 @@ -39,14 +39,26 @@ static inline void eeprom_93cx6_pulse_hi
6 {
7 eeprom->reg_data_clock = 1;
8 eeprom->register_write(eeprom);
9 - udelay(1);
10 +
11 + /*
12 + * Add a short delay for the pulse to work.
13 + * According to the specifications the "maximum minimum"
14 + * time should be 450ns.
15 + */
16 + ndelay(450);
17 }
18
19 static inline void eeprom_93cx6_pulse_low(struct eeprom_93cx6 *eeprom)
20 {
21 eeprom->reg_data_clock = 0;
22 eeprom->register_write(eeprom);
23 - udelay(1);
24 +
25 + /*
26 + * Add a short delay for the pulse to work.
27 + * According to the specifications the "maximum minimum"
28 + * time should be 450ns.
29 + */
30 + ndelay(450);
31 }
32
33 static void eeprom_93cx6_startup(struct eeprom_93cx6 *eeprom)
This page took 0.043687 seconds and 5 git commands to generate.