提交 0da64f19 编写于 作者: R Rajkumar Manoharan 提交者: Kalle Valo

ath10k: remove unused dl_is_polled

Since polling for received messages not supported, remove unused
dl_is_polled.
Reviewed-by: NMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: NRajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 a70587b3
...@@ -59,7 +59,7 @@ struct ath10k_hif_ops { ...@@ -59,7 +59,7 @@ struct ath10k_hif_ops {
int (*map_service_to_pipe)(struct ath10k *ar, u16 service_id, int (*map_service_to_pipe)(struct ath10k *ar, u16 service_id,
u8 *ul_pipe, u8 *dl_pipe, u8 *ul_pipe, u8 *dl_pipe,
int *ul_is_polled, int *dl_is_polled); int *ul_is_polled);
void (*get_default_pipe)(struct ath10k *ar, u8 *ul_pipe, u8 *dl_pipe); void (*get_default_pipe)(struct ath10k *ar, u8 *ul_pipe, u8 *dl_pipe);
...@@ -133,12 +133,11 @@ static inline void ath10k_hif_stop(struct ath10k *ar) ...@@ -133,12 +133,11 @@ static inline void ath10k_hif_stop(struct ath10k *ar)
static inline int ath10k_hif_map_service_to_pipe(struct ath10k *ar, static inline int ath10k_hif_map_service_to_pipe(struct ath10k *ar,
u16 service_id, u16 service_id,
u8 *ul_pipe, u8 *dl_pipe, u8 *ul_pipe, u8 *dl_pipe,
int *ul_is_polled, int *ul_is_polled)
int *dl_is_polled)
{ {
return ar->hif.ops->map_service_to_pipe(ar, service_id, return ar->hif.ops->map_service_to_pipe(ar, service_id,
ul_pipe, dl_pipe, ul_pipe, dl_pipe,
ul_is_polled, dl_is_polled); ul_is_polled);
} }
static inline void ath10k_hif_get_default_pipe(struct ath10k *ar, static inline void ath10k_hif_get_default_pipe(struct ath10k *ar,
......
...@@ -759,8 +759,7 @@ int ath10k_htc_connect_service(struct ath10k_htc *htc, ...@@ -759,8 +759,7 @@ int ath10k_htc_connect_service(struct ath10k_htc *htc,
ep->service_id, ep->service_id,
&ep->ul_pipe_id, &ep->ul_pipe_id,
&ep->dl_pipe_id, &ep->dl_pipe_id,
&ep->ul_is_polled, &ep->ul_is_polled);
&ep->dl_is_polled);
if (status) if (status)
return status; return status;
...@@ -770,8 +769,8 @@ int ath10k_htc_connect_service(struct ath10k_htc *htc, ...@@ -770,8 +769,8 @@ int ath10k_htc_connect_service(struct ath10k_htc *htc,
ep->dl_pipe_id, ep->eid); ep->dl_pipe_id, ep->eid);
ath10k_dbg(ar, ATH10K_DBG_BOOT, ath10k_dbg(ar, ATH10K_DBG_BOOT,
"boot htc ep %d ul polled %d dl polled %d\n", "boot htc ep %d ul polled %d\n",
ep->eid, ep->ul_is_polled, ep->dl_is_polled); ep->eid, ep->ul_is_polled);
if (disable_credit_flow_ctrl && ep->tx_credit_flow_enabled) { if (disable_credit_flow_ctrl && ep->tx_credit_flow_enabled) {
ep->tx_credit_flow_enabled = false; ep->tx_credit_flow_enabled = false;
......
...@@ -313,7 +313,6 @@ struct ath10k_htc_ep { ...@@ -313,7 +313,6 @@ struct ath10k_htc_ep {
u8 ul_pipe_id; u8 ul_pipe_id;
u8 dl_pipe_id; u8 dl_pipe_id;
int ul_is_polled; /* call HIF to get tx completions */ int ul_is_polled; /* call HIF to get tx completions */
int dl_is_polled; /* call HIF to fetch rx (not implemented) */
u8 seq_no; /* for debugging */ u8 seq_no; /* for debugging */
int tx_credits; int tx_credits;
......
...@@ -1404,8 +1404,7 @@ static void ath10k_pci_kill_tasklet(struct ath10k *ar) ...@@ -1404,8 +1404,7 @@ static void ath10k_pci_kill_tasklet(struct ath10k *ar)
static int ath10k_pci_hif_map_service_to_pipe(struct ath10k *ar, static int ath10k_pci_hif_map_service_to_pipe(struct ath10k *ar,
u16 service_id, u8 *ul_pipe, u16 service_id, u8 *ul_pipe,
u8 *dl_pipe, int *ul_is_polled, u8 *dl_pipe, int *ul_is_polled)
int *dl_is_polled)
{ {
const struct service_to_pipe *entry; const struct service_to_pipe *entry;
bool ul_set = false, dl_set = false; bool ul_set = false, dl_set = false;
...@@ -1413,9 +1412,6 @@ static int ath10k_pci_hif_map_service_to_pipe(struct ath10k *ar, ...@@ -1413,9 +1412,6 @@ static int ath10k_pci_hif_map_service_to_pipe(struct ath10k *ar,
ath10k_dbg(ar, ATH10K_DBG_PCI, "pci hif map service\n"); ath10k_dbg(ar, ATH10K_DBG_PCI, "pci hif map service\n");
/* polling for received messages not supported */
*dl_is_polled = 0;
for (i = 0; i < ARRAY_SIZE(target_service_to_ce_map_wlan); i++) { for (i = 0; i < ARRAY_SIZE(target_service_to_ce_map_wlan); i++) {
entry = &target_service_to_ce_map_wlan[i]; entry = &target_service_to_ce_map_wlan[i];
...@@ -1458,7 +1454,7 @@ static int ath10k_pci_hif_map_service_to_pipe(struct ath10k *ar, ...@@ -1458,7 +1454,7 @@ static int ath10k_pci_hif_map_service_to_pipe(struct ath10k *ar,
static void ath10k_pci_hif_get_default_pipe(struct ath10k *ar, static void ath10k_pci_hif_get_default_pipe(struct ath10k *ar,
u8 *ul_pipe, u8 *dl_pipe) u8 *ul_pipe, u8 *dl_pipe)
{ {
int ul_is_polled, dl_is_polled; int ul_is_polled;
ath10k_dbg(ar, ATH10K_DBG_PCI, "pci hif get default pipe\n"); ath10k_dbg(ar, ATH10K_DBG_PCI, "pci hif get default pipe\n");
...@@ -1466,8 +1462,7 @@ static void ath10k_pci_hif_get_default_pipe(struct ath10k *ar, ...@@ -1466,8 +1462,7 @@ static void ath10k_pci_hif_get_default_pipe(struct ath10k *ar,
ATH10K_HTC_SVC_ID_RSVD_CTRL, ATH10K_HTC_SVC_ID_RSVD_CTRL,
ul_pipe, ul_pipe,
dl_pipe, dl_pipe,
&ul_is_polled, &ul_is_polled);
&dl_is_polled);
} }
static void ath10k_pci_irq_msi_fw_mask(struct ath10k *ar) static void ath10k_pci_irq_msi_fw_mask(struct ath10k *ar)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册