aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/pci.h
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2014-08-22 08:33:14 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2014-08-25 04:31:47 -0400
commit728f95eef5238bffdb20e511f5cd553321d404c3 (patch)
treef3603b906f383d3c33908ba32aafef90fd56db2e /drivers/net/wireless/ath/ath10k/pci.h
parent5c771e7454d148af35e8b4297d00f880de79ea49 (diff)
ath10k: rework posting pci rx buffers
It was possible on a host system running low on memory to end up with no rx buffers on pci pipes. This makes the driver more robust as it won't fail to start if it can't allocate all rx buffers right away. If it is fatal then upper layers will notice trouble anyway. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/pci.h')
-rw-r--r--drivers/net/wireless/ath/ath10k/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.h b/drivers/net/wireless/ath/ath10k/pci.h
index caed918c7102..b9aa692d22f1 100644
--- a/drivers/net/wireless/ath/ath10k/pci.h
+++ b/drivers/net/wireless/ath/ath10k/pci.h
@@ -181,6 +181,7 @@ struct ath10k_pci {
181 181
182 /* Map CE id to ce_state */ 182 /* Map CE id to ce_state */
183 struct ath10k_ce_pipe ce_states[CE_COUNT_MAX]; 183 struct ath10k_ce_pipe ce_states[CE_COUNT_MAX];
184 struct timer_list rx_post_retry;
184}; 185};
185 186
186static inline struct ath10k_pci *ath10k_pci_priv(struct ath10k *ar) 187static inline struct ath10k_pci *ath10k_pci_priv(struct ath10k *ar)
@@ -188,6 +189,7 @@ static inline struct ath10k_pci *ath10k_pci_priv(struct ath10k *ar)
188 return (struct ath10k_pci *)ar->drv_priv; 189 return (struct ath10k_pci *)ar->drv_priv;
189} 190}
190 191
192#define ATH10K_PCI_RX_POST_RETRY_MS 50
191#define ATH_PCI_RESET_WAIT_MAX 10 /* ms */ 193#define ATH_PCI_RESET_WAIT_MAX 10 /* ms */
192#define PCIE_WAKE_TIMEOUT 5000 /* 5ms */ 194#define PCIE_WAKE_TIMEOUT 5000 /* 5ms */
193 195