Skip to contentSkip to conversation

pata_jmicron: match vendor and class code only

PATCH Applied Tejun Heo 3 participants 3 messages Oct 6, 2007 – Oct 10, 2007 libata

lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 pata_jmicron: match vendor and class code only

PATA part of all current JMB controllers behave the same way and JMicron confirms that all future ones will stay compatible. Drop device matching and match only vendor and class.

Cc Ethan Hsiao <[email protected]>
Cc Justin Tsai <[email protected]>
---
 drivers/ata/pata_jmicron.c |   13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)
drivers/ata/pata_jmicron.c +2 -11
index 6d5a818..225a722 100644
@@ -204,17 +204,8 @@ static int jmicron_init_one (struct pci_dev *pdev, const struct pci_device_id *i
 }
 
 static const struct pci_device_id jmicron_pci_tbl[] = {
-	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB361,
-	  PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE << 8, 0xffff00, 361 },
-	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB363,
-	  PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE << 8, 0xffff00, 363 },
-	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB365,
-	  PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE << 8, 0xffff00, 365 },
-	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB366,
-	  PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE << 8, 0xffff00, 366 },
-	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB368,
-	  PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE << 8, 0xffff00, 368 },
-
+	{ PCI_VENDOR_ID_JMICRON, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
+	  PCI_CLASS_STORAGE_IDE << 8, 0xffff00, 0 },
 	{ }	/* terminate list */
 };
 
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · On Sun, 7 Oct 2007 07:04:50 +0900 Tejun Heo <[email protected]> wrote:

PATA part of all current JMB controllers behave the same way and JMicron confirms that all future ones will stay compatible. Drop device matching and match only vendor and class.

Cc Ethan Hsiao <[email protected]>
Cc Justin Tsai <[email protected]>

Tho if I was Jmicron I'd specifc ids 0x0XXX or similar to be safe, but hey its not my product 8)

Applied
#2 lore raw
In reply to Tejun Heo
Quoted 10 lines · Tejun Heo

PATA part of all current JMB controllers behave the same way and JMicron confirms that all future ones will stay compatible. Drop device matching and match only vendor and class.

Cc Ethan Hsiao <[email protected]>
Cc Justin Tsai <[email protected]>
---
 drivers/ata/pata_jmicron.c |   13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

applied