Commit 557e1714 authored by Kalle Valo's avatar Kalle Valo

ath10k: rename ath10k_hif_swap_mailbox() to ath10k_hif_start_post()

Convert ath10k_hif_swap_mailbox() to a more generic op so that bus drivers can
do more than just swap the mailbox, for example set power save settings like in
the following sdio patch.

No functional changes, compile tested only.
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1587037859-28873-2-git-send-email-kvalo@codeaurora.org
parent d687275b
...@@ -2714,7 +2714,7 @@ int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode, ...@@ -2714,7 +2714,7 @@ int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode,
goto err_hif_stop; goto err_hif_stop;
} }
status = ath10k_hif_swap_mailbox(ar); status = ath10k_hif_start_post(ar);
if (status) { if (status) {
ath10k_err(ar, "failed to swap mailbox: %d\n", status); ath10k_err(ar, "failed to swap mailbox: %d\n", status);
goto err_hif_stop; goto err_hif_stop;
......
...@@ -54,7 +54,7 @@ struct ath10k_hif_ops { ...@@ -54,7 +54,7 @@ struct ath10k_hif_ops {
*/ */
void (*stop)(struct ath10k *ar); void (*stop)(struct ath10k *ar);
int (*swap_mailbox)(struct ath10k *ar); int (*start_post)(struct ath10k *ar);
int (*get_htt_tx_complete)(struct ath10k *ar); int (*get_htt_tx_complete)(struct ath10k *ar);
...@@ -139,10 +139,10 @@ static inline void ath10k_hif_stop(struct ath10k *ar) ...@@ -139,10 +139,10 @@ static inline void ath10k_hif_stop(struct ath10k *ar)
return ar->hif.ops->stop(ar); return ar->hif.ops->stop(ar);
} }
static inline int ath10k_hif_swap_mailbox(struct ath10k *ar) static inline int ath10k_hif_start_post(struct ath10k *ar)
{ {
if (ar->hif.ops->swap_mailbox) if (ar->hif.ops->start_post)
return ar->hif.ops->swap_mailbox(ar); return ar->hif.ops->start_post(ar);
return 0; return 0;
} }
......
...@@ -1725,7 +1725,7 @@ static int ath10k_sdio_hif_diag_write_mem(struct ath10k *ar, u32 address, ...@@ -1725,7 +1725,7 @@ static int ath10k_sdio_hif_diag_write_mem(struct ath10k *ar, u32 address,
return 0; return 0;
} }
static int ath10k_sdio_hif_swap_mailbox(struct ath10k *ar) static int ath10k_sdio_hif_start_post(struct ath10k *ar)
{ {
struct ath10k_sdio *ar_sdio = ath10k_sdio_priv(ar); struct ath10k_sdio *ar_sdio = ath10k_sdio_priv(ar);
u32 addr, val; u32 addr, val;
...@@ -2047,7 +2047,7 @@ static const struct ath10k_hif_ops ath10k_sdio_hif_ops = { ...@@ -2047,7 +2047,7 @@ static const struct ath10k_hif_ops ath10k_sdio_hif_ops = {
.exchange_bmi_msg = ath10k_sdio_bmi_exchange_msg, .exchange_bmi_msg = ath10k_sdio_bmi_exchange_msg,
.start = ath10k_sdio_hif_start, .start = ath10k_sdio_hif_start,
.stop = ath10k_sdio_hif_stop, .stop = ath10k_sdio_hif_stop,
.swap_mailbox = ath10k_sdio_hif_swap_mailbox, .start_post = ath10k_sdio_hif_start_post,
.get_htt_tx_complete = ath10k_sdio_get_htt_tx_complete, .get_htt_tx_complete = ath10k_sdio_get_htt_tx_complete,
.map_service_to_pipe = ath10k_sdio_hif_map_service_to_pipe, .map_service_to_pipe = ath10k_sdio_hif_map_service_to_pipe,
.get_default_pipe = ath10k_sdio_hif_get_default_pipe, .get_default_pipe = ath10k_sdio_hif_get_default_pipe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment