From: Wen Gong <wgong@codeaurora.org>
To: Kalle Valo <kvalo@codeaurora.org>
Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] ath10k: improve power save performance for sdio
Date: Fri, 17 Apr 2020 15:23:44 +0800 [thread overview]
Message-ID: <ffdecd6a9db5b96d6c791fc04108b163@codeaurora.org> (raw)
In-Reply-To: <87y2quponn.fsf@kamboji.qca.qualcomm.com>
On 2020-04-17 15:17, Kalle Valo wrote:
> Wen Gong <wgong@codeaurora.org> writes:
>
>> On 2020-04-16 20:38, Kalle Valo wrote:
>>> Wen Gong <wgong@codeaurora.org> writes:
>>>
>>
>>>
>>>> +static inline int ath10k_hif_set_mbox_sleep(struct ath10k *ar,
>>>> bool enable_sleep)
>>>> +{
>>>> + if (ar->hif.ops->set_mbox_sleep)
>>>> + return ar->hif.ops->set_mbox_sleep(ar, enable_sleep);
>>>> + return 0;
>>>> +}
>>>
>>> I don't think we need to add another hif op for this. I sent v2 which
>>> uses existing op.
>>
>> Yes, I see it. but I see it removed ath10k_hif_set_mbox_sleep in
>> ath10k_core_start, expected it will not effect the patch's power save.
>
> So the idea is that the same functionality is still there as with your
> version, the callpath is just a bit different:
>
> ath10k_core_start()
> -> ath10k_hif_start_post()
> -> ath10k_sdio_hif_start_post()
> -> ath10k_sdio_set_mbox_sleep()
>
> But please do double check that I didn't miss anything.
yes, I see this now, so it not miss in v2.
@@ -1749,6 +1819,8 @@ static int ath10k_sdio_hif_start_post(struct
ath10k *ar)
ar_sdio->swap_mbox = false;
}
+ ath10k_sdio_hif_set_mbox_sleep(ar, true);
+
return 0;
}
next prev parent reply other threads:[~2020-04-17 7:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <0101016ed9241282-73dd8b35-e2e5-4f37-9b50-cf2fb6524dfc-000000@us-west-2.amazonses.com>
2020-04-16 12:38 ` [PATCH] ath10k: improve power save performance for sdio Kalle Valo
2020-04-17 4:32 ` Wen Gong
2020-04-17 7:17 ` Kalle Valo
2020-04-17 7:23 ` Wen Gong [this message]
2019-12-06 2:57 Wen Gong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ffdecd6a9db5b96d6c791fc04108b163@codeaurora.org \
--to=wgong@codeaurora.org \
--cc=ath10k@lists.infradead.org \
--cc=kvalo@codeaurora.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).