2008-05-18 20:24:13 +00:00
|
|
|
Index: linux-2.6.22.19/drivers/misc/eeprom_93cx6.c
|
2008-04-10 08:45:31 +00:00
|
|
|
===================================================================
|
2008-05-18 20:24:13 +00:00
|
|
|
--- linux-2.6.22.19.orig/drivers/misc/eeprom_93cx6.c
|
|
|
|
+++ linux-2.6.22.19/drivers/misc/eeprom_93cx6.c
|
2008-04-10 08:45:31 +00:00
|
|
|
@@ -39,14 +39,26 @@ static inline void eeprom_93cx6_pulse_hi
|
2007-10-01 08:45:39 +00:00
|
|
|
{
|
|
|
|
eeprom->reg_data_clock = 1;
|
|
|
|
eeprom->register_write(eeprom);
|
2008-04-10 08:45:31 +00:00
|
|
|
- udelay(1);
|
2007-10-01 08:45:39 +00:00
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ * Add a short delay for the pulse to work.
|
2008-04-10 08:45:31 +00:00
|
|
|
+ * According to the specifications the "maximum minimum"
|
|
|
|
+ * time should be 450ns.
|
2007-10-01 08:45:39 +00:00
|
|
|
+ */
|
2008-04-10 08:45:31 +00:00
|
|
|
+ ndelay(450);
|
2007-10-01 08:45:39 +00:00
|
|
|
}
|
|
|
|
|
2008-04-10 08:45:31 +00:00
|
|
|
static inline void eeprom_93cx6_pulse_low(struct eeprom_93cx6 *eeprom)
|
2007-10-01 08:45:39 +00:00
|
|
|
{
|
|
|
|
eeprom->reg_data_clock = 0;
|
|
|
|
eeprom->register_write(eeprom);
|
2008-04-10 08:45:31 +00:00
|
|
|
- udelay(1);
|
2007-10-01 08:45:39 +00:00
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ * Add a short delay for the pulse to work.
|
|
|
|
+ * According to the specifications the "maximum minimum"
|
|
|
|
+ * time should be 450ns.
|
2008-04-10 08:45:31 +00:00
|
|
|
+ */
|
2007-10-01 08:45:39 +00:00
|
|
|
+ ndelay(450);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void eeprom_93cx6_startup(struct eeprom_93cx6 *eeprom)
|