[Prism54-devel] [PATCH] add smc2835w v2 ids

Manuel Lauss manuel.lauss@fh-hagenberg.at
Tue, 16 Mar 2004 23:37:25 +0100


This is a multi-part message in MIME format.
--------------050604020701070404090701
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,

I recently bought a SMC2835W-V2 cardbus card.

It has different subvendor and subsystem ids,
the windows drivers look like the ones for the
SMC2802-V2 card, but it works like charm with the
prism54 driver (and the 2802 arm file).

So heres a trivial patch that adds this cards' pci-id
to islpci_hotplug.c

regards,

- --
Manuel Lauss
Student HSSE / FH Hagenberg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAV4GlQHN6BNT8ERYRAjGJAJwLFam1lNN5VNmE8CcCVdzreLF1rQCgj/Dp
8OCRtrC787Y/WePxq+ltyAM=
=opb+
-----END PGP SIGNATURE-----

--------------050604020701070404090701
Content-Type: text/x-patch;
 name="prism54-add-2835v2-ids.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="prism54-add-2835v2-ids.diff"

diff -Naur prism54-orig/ksrc/islpci_hotplug.c prism54-cvs-latest/ksrc/islpci_hotplug.c
--- prism54-orig/ksrc/islpci_hotplug.c	2004-03-11 01:45:03.000000000 +0100
+++ prism54-cvs-latest/ksrc/islpci_hotplug.c	2004-03-16 22:54:54.967215888 +0100
@@ -97,6 +97,11 @@
 	 0, 0,
 	 (unsigned long) "SMC 2802Wv2"},
 	{
+	 PCIVENDOR_INTERSIL, PCIDEVICE_ISL3890,
+	 PCIVENDOR_SMC, 0xa835UL,
+	 0, 0,
+	 (unsigned long) "SMC 2835Wv2"},
+	{
 	 PCIVENDOR_INTERSIL, PCIDEVICE_ISL3877,
 	 PCI_ANY_ID, PCI_ANY_ID,
 	 0, 0,
@@ -159,6 +164,9 @@
 	case 0x2835UL:
 		modelp = "SMC2835W";
 		break;
+	case 0xa835UL:
+		modelp = "SMC2835W V2";
+		break;
 	/* Let's leave this one out for now since it seems bogus/wrong 
 	 * Even if the manufacturer did use 0x0000UL it may not be correct
 	 * by their part, therefore deserving no name ;) */

--------------050604020701070404090701--