diff options
author | Bartosz Markowski <bartosz.markowski@tieto.com> | 2014-05-14 09:56:17 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-05-16 09:50:26 -0400 |
commit | a6a2f74e565db27d6b23276a4df16e00d789f60c (patch) | |
tree | 8c50be748b7e6fd7d790d4c7233e0b2256586656 | |
parent | 1a4ab28fc0baccbc8d78fa9fa22821e108ae4f4a (diff) |
ath10k: get rid of pci_assign_resource() call from pci_probe
On ARM-based (MSM mach), the pci_assign_resource() is passing
some invalid pointers and leading to L2 cache errors,
what prevents the PCI communication completly.
So far I have not found this funtion to be directly called by
any other wifi driver and did not found this assigning needed
on any other platform. So removing it completely.
Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath10k/pci.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 33e87557a7dd..7d72b9cfe0be 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c | |||
@@ -2647,18 +2647,6 @@ static int ath10k_pci_probe(struct pci_dev *pdev, | |||
2647 | 2647 | ||
2648 | pci_set_drvdata(pdev, ar); | 2648 | pci_set_drvdata(pdev, ar); |
2649 | 2649 | ||
2650 | /* | ||
2651 | * Without any knowledge of the Host, the Target may have been reset or | ||
2652 | * power cycled and its Config Space may no longer reflect the PCI | ||
2653 | * address space that was assigned earlier by the PCI infrastructure. | ||
2654 | * Refresh it now. | ||
2655 | */ | ||
2656 | ret = pci_assign_resource(pdev, BAR_NUM); | ||
2657 | if (ret) { | ||
2658 | ath10k_err("failed to assign PCI space: %d\n", ret); | ||
2659 | goto err_ar; | ||
2660 | } | ||
2661 | |||
2662 | ret = pci_enable_device(pdev); | 2650 | ret = pci_enable_device(pdev); |
2663 | if (ret) { | 2651 | if (ret) { |
2664 | ath10k_err("failed to enable PCI device: %d\n", ret); | 2652 | ath10k_err("failed to enable PCI device: %d\n", ret); |