Bug 6691

Summary: sundance driver lacks support for IP 100Achipsets (with patch)
Product: Drivers Reporter: Pedro Alejandro López-Valencia (palopezv)
Component: NetworkAssignee: Francois Romieu (romieu)
Status: CLOSED CODE_FIX    
Severity: normal CC: werchowyna
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.17-rc6 Subsystem:
Regression: --- Bisected commit-id:

Description Pedro Alejandro López-Valencia 2006-06-14 13:51:28 UTC
A few days ago I bought a cheap ehternet adapter to replace my old one which
died suddenly. It happened to use an IC Plus Corp. IP100A chipset that is not
recognized by neither the kernel of my distro of choice nor the latest vainilla
kernel. I found a heavily patched driver at the vendor's site,
http://www.icplus.com.tw/pp-IP100A.html that I am not qualified to evaluate.
After some examination and experimentation, I decided to patch the vainilla
kernel sources with the minimal modifications required to have a working network
interface. The changes are very small indeed and done against a copy of
sundance.c obtained directly from the git repo at kernel.org as of today. I'm
using the patched driver now without apparent trouble.

Here is the listing (please let me know if this should go to lkml instead):

palopezv@fanelia:~/sundance$ rcsdiff -r1.1 -r1.3 -c ./sundance.c >
./sundance_c_ip100a.patch
===================================================================
RCS file: ./sundance.c,v
retrieving revision 1.1
retrieving revision 1.3
diff -c -r1.1 -r1.3
palopezv@fanelia:~/sundance$ rcsdiff -r1.1 -r1.3 -c ./sundance.c
===================================================================
RCS file: ./sundance.c,v
retrieving revision 1.1
retrieving revision 1.3
diff -c -r1.1 -r1.3
*** ./sundance.c        2006/06/14 16:04:35     1.1
--- ./sundance.c        2006/06/14 20:06:05     1.3
***************
*** 94,104 ****
        Version LK1.10 (Philippe De Muyter phdm@macqel.be):
        - Make 'unblock interface after Tx underrun' work

  */

  #define DRV_NAME      "sundance"
! #define DRV_VERSION   "1.01+LK1.10"
! #define DRV_RELDATE   "28-Oct-2005"


  /* The user-configurable values.
--- 94,107 ----
        Version LK1.10 (Philippe De Muyter phdm@macqel.be):
        - Make 'unblock interface after Tx underrun' work

+       Version LK1.11 (Pedro Alejandro Lopez-Valencia palopezv at gmail.com):
+       - Add support for IC Plus Corporation IP100A chipset
+
  */

  #define DRV_NAME      "sundance"
! #define DRV_VERSION   "1.01+LK1.11"
! #define DRV_RELDATE   "14-Jun-2006"


  /* The user-configurable values.
***************
*** 287,292 ****
--- 290,296 ----
        {0x1186, 0x1002, 0x1186, 0x1040, 0, 0, 3},
        {0x1186, 0x1002, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 4},
        {0x13F0, 0x0201, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 5},
+       {0x13F0, 0x0200, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 6},
        {0,}
  };
  MODULE_DEVICE_TABLE(pci, sundance_pci_tbl);
***************
*** 305,310 ****
--- 309,315 ----
        {"D-Link DFE-530TXS FAST Ethernet Adapter"},
        {"D-Link DL10050-based FAST Ethernet Adapter"},
        {"Sundance Technology Alta"},
+       {"IC Plus Corporation IP100A FAST Ethernet Adapter"},
        {NULL,},                        /* 0 terminated list. */
  };
Comment 1 Andrew Morton 2006-06-19 16:07:18 UTC
Thanks.   Please email me a copy of that patch
as per http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt

Comment 2 Diego Calleja 2006-06-23 03:16:51 UTC
Merged in the kernel tree (1668b19f75cb949f930814a23b74201ad6f76a53), this bug
can be closed
Comment 3 Francois Romieu 2006-06-23 09:59:00 UTC
*** Bug 5858 has been marked as a duplicate of this bug. ***