Author: apatard
Date: Tue Feb 13 16:48:58 2007
New Revision: 120441

Added:
   
packages/updates/2007.0/kernel-2.6/current/PATCHES/patches/DI33_jmicron_cable_detect.patch
Modified:
   packages/updates/2007.0/kernel-2.6/current/SPECS/kernel-2.6.spec

Log:
Fix JMicron 40/80 pin cable detection


Added: 
packages/updates/2007.0/kernel-2.6/current/PATCHES/patches/DI33_jmicron_cable_detect.patch
==============================================================================
--- (empty file)
+++ 
packages/updates/2007.0/kernel-2.6/current/PATCHES/patches/DI33_jmicron_cable_detect.patch
  Tue Feb 13 16:48:58 2007
@@ -0,0 +1,31 @@
+Subject: jmicron: 40/80pin primary detection
+From: [EMAIL PROTECTED]
+
+jmicron module detects all JMB36x as JMB361 and PATA0 has wrong pin status
+of XICBLID.
+
+Cc: Jeff Garzik <[EMAIL PROTECTED]>
+Cc: Alan Cox <[EMAIL PROTECTED]>
+Cc: Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
+Cc: Sergei Shtylyov <[EMAIL PROTECTED]>
+Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
+---
+
+ drivers/ide/pci/jmicron.c |    4      2 +     2 -     0 !
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+Index: linux-2.6.17/drivers/ide/pci/jmicron.c
+===================================================================
+--- linux-2.6.17.orig/drivers/ide/pci/jmicron.c        2007-02-02 
15:26:59.000000000 +0100
++++ linux-2.6.17/drivers/ide/pci/jmicron.c     2007-02-02 15:27:49.000000000 
+0100
+@@ -87,8 +87,8 @@ static int __devinit ata66_jmicron(ide_h
+       {
+       case PORT_PATA0:
+               if (control & (1 << 3)) /* 40/80 pin primary */
+-                      return 1;
+-              return 0;
++                      return 0;
++              return 1;
+       case PORT_PATA1:
+               if (control5 & (1 << 19))       /* 40/80 pin secondary */
+                       return 0;

Modified: packages/updates/2007.0/kernel-2.6/current/SPECS/kernel-2.6.spec
==============================================================================
--- packages/updates/2007.0/kernel-2.6/current/SPECS/kernel-2.6.spec    
(original)
+++ packages/updates/2007.0/kernel-2.6/current/SPECS/kernel-2.6.spec    Tue Feb 
13 16:48:58 2007
@@ -1032,6 +1032,7 @@
     - Add support for showing blocked tasks through sysrq
     - Add nozomi driver
     - Add UVC driver
+    - Fix JMicron cable detection
 
   o Luiz Capitulino <[EMAIL PROTECTED]>
     - x86_64: Add /proc/config.gz support (CONFIG_IKCONFIG)

Reply via email to