OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a483541
)
rtw88: pci: config phy after chip info is setup
author
Yan-Hsuan Chuang
<yhchuang@realtek.com>
Tue, 8 Oct 2019 08:20:59 +0000
(16:20 +0800)
committer
Kalle Valo
<kvalo@codeaurora.org>
Mon, 14 Oct 2019 09:10:50 +0000
(12:10 +0300)
Chip info such as cut_version is required to configure
PCI phy. Move rtw_pci_phy_config after rtw_chip_info_setup.
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/pci.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/realtek/rtw88/pci.c
b/drivers/net/wireless/realtek/rtw88/pci.c
index
772a14d
..
17b9cdf
100644
(file)
--- a/
drivers/net/wireless/realtek/rtw88/pci.c
+++ b/
drivers/net/wireless/realtek/rtw88/pci.c
@@
-1190,8
+1190,6
@@
static int rtw_pci_setup_resource(struct rtw_dev *rtwdev, struct pci_dev *pdev)
goto err_io_unmap;
}
- rtw_pci_phy_cfg(rtwdev);
-
return 0;
err_io_unmap:
@@
-1304,6
+1302,8
@@
static int rtw_pci_probe(struct pci_dev *pdev,
goto err_destroy_pci;
}
+ rtw_pci_phy_cfg(rtwdev);
+
ret = rtw_register_hw(rtwdev, hw);
if (ret) {
rtw_err(rtwdev, "failed to register hw\n");