Commit 1ec3e2f2 authored by Mike McCormack's avatar Mike McCormack Committed by Larry Finger

rtl8192e: reject rtl8192se cards with same PCI ID

Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarMike McCormack <mikem@ring3k.org>
parent 94a79942
...@@ -3558,6 +3558,7 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev, ...@@ -3558,6 +3558,7 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev,
#endif #endif
int err = 0; int err = 0;
bool bdma64 = false; bool bdma64 = false;
u8 revision_id;
RT_TRACE(COMP_INIT,"Configuring chip resources"); RT_TRACE(COMP_INIT,"Configuring chip resources");
...@@ -3681,6 +3682,11 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev, ...@@ -3681,6 +3682,11 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev,
pci_write_config_byte(pdev,0x04,0x07); pci_write_config_byte(pdev,0x04,0x07);
#endif #endif
pci_read_config_byte(pdev, 0x08, &revision_id);
/* If the revisionid is 0x10, the device uses rtl8192se. */
if (pdev->device == 0x8192 && revision_id == 0x10)
goto fail1;
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0) #if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
priv->ops = ops; priv->ops = ops;
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment