• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

linux-3.0.x for AP-SH4A-0A Board


Commit MetaInfo

Revisão565af28bfba187fabda9bccf065e2009356aaae5 (tree)
Hora2011-08-05 13:58:31
AutorLarry Finger <Larry.Finger@lwfi...>
CommiterGreg Kroah-Hartman

Mensagem de Log

staging: r8192e_pci: Handle duplicate PCI ID 0x10ec:0x8192 conflict with rtl8192se

commit 1c50bf7e415cf6ce9545dbecc2ac0d89d3916c53 upstream.

There are two devices with PCI ID 0x10ec:0x8192, namely RTL8192E and
RTL8192SE. The method of distinguishing them is by the revision ID
at offset 0x8 of the PCI configuration space. If the value is 0x10,
then the device uses rtl8192se for a driver.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Mudança Sumário

Diff

--- a/drivers/staging/rtl8192e/r8192E_core.c
+++ b/drivers/staging/rtl8192e/r8192E_core.c
@@ -4532,6 +4532,7 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev,
45324532 u8 unit = 0;
45334533 int ret = -ENODEV;
45344534 unsigned long pmem_start, pmem_len, pmem_flags;
4535+ u8 revisionid;
45354536
45364537 RT_TRACE(COMP_INIT,"Configuring chip resources\n");
45374538
@@ -4592,6 +4593,11 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev,
45924593 pci_write_config_byte(pdev, 0x41, 0x00);
45934594
45944595
4596+ pci_read_config_byte(pdev, 0x08, &revisionid);
4597+ /* If the revisionid is 0x10, the device uses rtl8192se. */
4598+ if (pdev->device == 0x8192 && revisionid == 0x10)
4599+ goto fail1;
4600+
45954601 pci_read_config_byte(pdev, 0x05, &unit);
45964602 pci_write_config_byte(pdev, 0x05, unit & (~0x04));
45974603