From: Mike McCormack Date: Sun, 10 Jul 2011 23:56:20 +0000 (+0900) Subject: rtl8192e: reject rtl8192se cards with same PCI ID X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1ec3e2f255c597c4bff693d0b045a49b12c5bb90;p=openwrt%2Fstaging%2Fblogic.git rtl8192e: reject rtl8192se cards with same PCI ID Signed-off-by: Larry Finger Signed-off-by: Mike McCormack --- diff --git a/drivers/staging/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl_core.c index 81cb13fce6f8..9551c5ed7842 100644 --- a/drivers/staging/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl_core.c @@ -3558,6 +3558,7 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev, #endif int err = 0; bool bdma64 = false; + u8 revision_id; RT_TRACE(COMP_INIT,"Configuring chip resources"); @@ -3681,6 +3682,11 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev, pci_write_config_byte(pdev,0x04,0x07); #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) priv->ops = ops; #else