diff options
author | Chaoming Li <chaoming_li@realsil.com.cn> | 2011-05-06 16:32:02 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-10 15:54:47 -0400 |
commit | fc7707a469785fe786ddc66d723c150226ddc40e (patch) | |
tree | c5ab90d1ded98471bb94d6a92e0cafab747fe001 /drivers/net | |
parent | c84aa5af996a306c8ce66aac2cc4d5f4a74e27ca (diff) |
rtlwifi: rtl8192se: Remove need to disable ASPM
When this driver was initially submitted, the system would crash unless
ASPM was disabled. This problem has been fixed.
This patch also adds a printk that outputs the name of the firmware
file that is used.
Signed-off-by: Chaoming_Li <chaoming_li@realsil.com.cn>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/rtlwifi/pci.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192se/sw.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c index 3550c9fb96e..a4095284543 100644 --- a/drivers/net/wireless/rtlwifi/pci.c +++ b/drivers/net/wireless/rtlwifi/pci.c | |||
@@ -1611,6 +1611,7 @@ static bool _rtl_pci_find_adapter(struct pci_dev *pdev, | |||
1611 | u16 irqline; | 1611 | u16 irqline; |
1612 | u8 tmp; | 1612 | u8 tmp; |
1613 | 1613 | ||
1614 | pcipriv->ndis_adapter.pcibridge_vendor = PCI_BRIDGE_VENDOR_UNKNOWN; | ||
1614 | venderid = pdev->vendor; | 1615 | venderid = pdev->vendor; |
1615 | deviceid = pdev->device; | 1616 | deviceid = pdev->device; |
1616 | pci_read_config_byte(pdev, 0x8, &revisionid); | 1617 | pci_read_config_byte(pdev, 0x8, &revisionid); |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192se/sw.c b/drivers/net/wireless/rtlwifi/rtl8192se/sw.c index 7cfd6a2cb14..1c6cb1d7d66 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192se/sw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192se/sw.c | |||
@@ -58,7 +58,7 @@ static void rtl92s_init_aspm_vars(struct ieee80211_hw *hw) | |||
58 | * 4 - Always Enable ASPM without Clock Req. | 58 | * 4 - Always Enable ASPM without Clock Req. |
59 | * set defult to RTL8192CE:3 RTL8192E:2 | 59 | * set defult to RTL8192CE:3 RTL8192E:2 |
60 | * */ | 60 | * */ |
61 | rtlpci->const_pci_aspm = 0; /* changed from 2 due to crashes */ | 61 | rtlpci->const_pci_aspm = 2; |
62 | 62 | ||
63 | /*Setting for PCI-E device */ | 63 | /*Setting for PCI-E device */ |
64 | rtlpci->const_devicepci_aspm_setting = 0x03; | 64 | rtlpci->const_devicepci_aspm_setting = 0x03; |
@@ -183,6 +183,8 @@ static int rtl92s_init_sw_vars(struct ieee80211_hw *hw) | |||
183 | return 1; | 183 | return 1; |
184 | } | 184 | } |
185 | 185 | ||
186 | printk(KERN_INFO "rtl8192se: Driver for Realtek RTL8192SE/RTL8191SE\n" | ||
187 | " Loading firmware %s\n", rtlpriv->cfg->fw_name); | ||
186 | /* request fw */ | 188 | /* request fw */ |
187 | err = request_firmware(&firmware, rtlpriv->cfg->fw_name, | 189 | err = request_firmware(&firmware, rtlpriv->cfg->fw_name, |
188 | rtlpriv->io.dev); | 190 | rtlpriv->io.dev); |