mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 04:54:41 +08:00
rtw88: pci: config phy after chip info is setup
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>
This commit is contained in:
parent
a483541099
commit
474264d5a6
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user