Changeset 9084


Ignore:
Timestamp:
2007-10-01T10:45:39+02:00 (10 years ago)
Author:
juhosg
Message:

split eeprom_93cx6 patch to make quilt happy

Location:
trunk/target/linux/generic-2.6/patches-2.6.22
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic-2.6/patches-2.6.22/600-eeprom_93cx6.patch

    r8729 r9084  
    357357+extern void eeprom_93cx6_multiread(struct eeprom_93cx6 *eeprom, 
    358358+       const u8 word, __le16 *data, const u16 words); 
    359 From: Ivo van Doorn <ivdoorn@gmail.com> 
    360 Date: Mon, 14 May 2007 21:06:01 +0000 (+0200) 
    361 Subject: [PATCH] eeprom_93cx6: Add comment for 1us delay after pulse 
    362 X-Git-Tag: v2.6.23-rc1~1201^2~73 
    363 X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=4b914dc0493edff19ff698a18198a173a14ba9d2 
    364  
    365 [PATCH] eeprom_93cx6: Add comment for 1us delay after pulse 
    366  
    367 This will add a comment for the 1us delay which is taken 
    368 after the pulse has been switched. The 1us delay is based 
    369 on the specifications so that should be made clear. 
    370  
    371 Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> 
    372 Signed-off-by: John W. Linville <linville@tuxdriver.com> 
    373 --- 
    374  
    375 diff --git a/drivers/misc/eeprom_93cx6.c b/drivers/misc/eeprom_93cx6.c 
    376 index bfcb434..0d6d742 100644 
    377 --- a/drivers/misc/eeprom_93cx6.c 
    378 +++ b/drivers/misc/eeprom_93cx6.c 
    379 @@ -39,6 +39,12 @@ static inline void eeprom_93cx6_pulse_high(struct eeprom_93cx6 *eeprom) 
    380  { 
    381         eeprom->reg_data_clock = 1; 
    382         eeprom->register_write(eeprom); 
    383 + 
    384 +       /* 
    385 +        * Add a short delay for the pulse to work. 
    386 +        * According to the specifications the minimal time 
    387 +        * should be 450ns so a 1us delay is sufficient. 
    388 +        */ 
    389         udelay(1); 
    390  } 
    391   
    392 @@ -46,6 +52,12 @@ static inline void eeprom_93cx6_pulse_low(struct eeprom_93cx6 *eeprom) 
    393  { 
    394         eeprom->reg_data_clock = 0; 
    395         eeprom->register_write(eeprom); 
    396 + 
    397 +       /* 
    398 +        * Add a short delay for the pulse to work. 
    399 +        * According to the specifications the minimal time 
    400 +        * should be 450ns so a 1us delay is sufficient. 
    401 +        */ 
    402         udelay(1); 
    403  } 
    404   
    405 From: John W. Linville <linville@tuxdriver.com> 
    406 Date: Tue, 12 Jun 2007 01:37:46 +0000 (-0400) 
    407 Subject: [PATCH] eeprom_93cx6: shorten pulse timing to match spec 
    408 X-Git-Tag: v2.6.23-rc1~1201^2~71 
    409 X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=7e9400f178d291b2208c4ed9aac0f425c1364000 
    410  
    411 [PATCH] eeprom_93cx6: shorten pulse timing to match spec 
    412  
    413 93cx6 datasheet available here: 
    414  
    415         http://ww1.microchip.com/downloads/en/DeviceDoc/21749F.pdf 
    416  
    417 Figure 1-1 and Table 1-2 on pages 4-5 indicate that both Clock High 
    418 Time and Clock Low Time have largest minimum times of 450ns. 
    419  
    420 Signed-off-by: John W. Linville <linville@tuxdriver.com> 
    421 --- 
    422  
    423 diff --git a/drivers/misc/eeprom_93cx6.c b/drivers/misc/eeprom_93cx6.c 
    424 index 0d6d742..ac515b0 100644 
    425 --- a/drivers/misc/eeprom_93cx6.c 
    426 +++ b/drivers/misc/eeprom_93cx6.c 
    427 @@ -42,10 +42,10 @@ static inline void eeprom_93cx6_pulse_high(struct eeprom_93cx6 *eeprom) 
    428   
    429         /* 
    430          * Add a short delay for the pulse to work. 
    431 -        * According to the specifications the minimal time 
    432 -        * should be 450ns so a 1us delay is sufficient. 
    433 +        * According to the specifications the "maximum minimum" 
    434 +        * time should be 450ns. 
    435          */ 
    436 -       udelay(1); 
    437 +       ndelay(450); 
    438  } 
    439   
    440  static inline void eeprom_93cx6_pulse_low(struct eeprom_93cx6 *eeprom) 
    441 From: Francois Romieu <romieu@fr.zoreil.com> 
    442 Date: Tue, 3 Jul 2007 22:31:44 +0000 (+0200) 
    443 Subject: eeprom_93cx6: shorten pulse timing to match spec (bis) 
    444 X-Git-Tag: v2.6.23-rc1~1151^2~11 
    445 X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=8abd531e3f77188de2fc41e677d075cc66e61631 
    446  
    447 eeprom_93cx6: shorten pulse timing to match spec (bis) 
    448  
    449 Based on an original idea by John W. Linville. 
    450  
    451 It is the missing part of 42d45ccd60636c28e35c2016f091783bc14ad99c 
    452  
    453 Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> 
    454 Signed-off-by: Jeff Garzik <jeff@garzik.org> 
    455 --- 
    456  
    457 diff --git a/drivers/misc/eeprom_93cx6.c b/drivers/misc/eeprom_93cx6.c 
    458 index ac515b0..ea55654 100644 
    459 --- a/drivers/misc/eeprom_93cx6.c 
    460 +++ b/drivers/misc/eeprom_93cx6.c 
    461 @@ -55,10 +55,10 @@ static inline void eeprom_93cx6_pulse_low(struct eeprom_93cx6 *eeprom) 
    462   
    463         /* 
    464          * Add a short delay for the pulse to work. 
    465 -        * According to the specifications the minimal time 
    466 -        * should be 450ns so a 1us delay is sufficient. 
    467 +        * According to the specifications the "maximum minimum" 
    468 +        * time should be 450ns. 
    469          */ 
    470 -       udelay(1); 
    471 +       ndelay(450); 
    472  } 
    473   
    474  static void eeprom_93cx6_startup(struct eeprom_93cx6 *eeprom) 
Note: See TracChangeset for help on using the changeset viewer.