linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] ath11k: use MHI provided APIs to allocate and free MHI controller
       [not found] <1605571300-4438-1-git-send-email-bbhatt@codeaurora.org>
@ 2020-11-17  7:14 ` Kalle Valo
  2020-11-17 17:17   ` Bhaumik Bhatt
  0 siblings, 1 reply; 2+ messages in thread
From: Kalle Valo @ 2020-11-17  7:14 UTC (permalink / raw)
  To: Bhaumik Bhatt
  Cc: manivannan.sadhasivam, linux-arm-msm, hemantk, jhugo,
	linux-kernel, ath11k, linux-wireless

Bhaumik Bhatt <bbhatt@codeaurora.org> writes:

> Use MHI provided APIs to allocate and free MHI controller to
> improve MHI host driver handling.

How does it improve the handling?

> This also fixes a memory leak as the MHI controller was allocated but
> never freed.
>
> Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
> ---
>  drivers/net/wireless/ath/ath11k/mhi.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)

For ath11k patches please CC ath11k and linux-wireless lists so that
patchwork sees it. So you need to resend this.

Is this a new API? I need to understand if there are any dependencies
between mhi and ath trees, or if I can apply this directly to my ath.git
tree.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ath11k: use MHI provided APIs to allocate and free MHI controller
  2020-11-17  7:14 ` [PATCH] ath11k: use MHI provided APIs to allocate and free MHI controller Kalle Valo
@ 2020-11-17 17:17   ` Bhaumik Bhatt
  0 siblings, 0 replies; 2+ messages in thread
From: Bhaumik Bhatt @ 2020-11-17 17:17 UTC (permalink / raw)
  To: Kalle Valo
  Cc: manivannan.sadhasivam, linux-arm-msm, hemantk, jhugo,
	linux-kernel, ath11k, linux-wireless, kvalo=codeaurora.org

On 2020-11-16 11:14 PM, Kalle Valo wrote:
> Bhaumik Bhatt <bbhatt@codeaurora.org> writes:
> 
>> Use MHI provided APIs to allocate and free MHI controller to
>> improve MHI host driver handling.
> 
> How does it improve the handling?
> 
Main reason is we want to ensure the MHI controller is zero-initialized 
and
we want to mandate it as it is better to have it under our control in 
case
we also want to allocate and track peripheral data/memory related to the 
MHI
controller.
>> This also fixes a memory leak as the MHI controller was allocated but
>> never freed.
>> 
>> Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
>> ---
>>  drivers/net/wireless/ath/ath11k/mhi.c | 7 ++++---
>>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> For ath11k patches please CC ath11k and linux-wireless lists so that
> patchwork sees it. So you need to resend this.
> 
> Is this a new API? I need to understand if there are any dependencies
> between mhi and ath trees, or if I can apply this directly to my 
> ath.git
> tree.

This one should be dependent on the patch [1] which exists on mainline 
and
should already part of your tree if you're on any 5.10 RC.

[1] 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/bus/mhi?h=v5.10-rc4&id=f42dfbe8f712127031e7b9bc938a1c33cec2ff57

Thanks,
Bhaumik
---
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora 
Forum,
a Linux Foundation Collaborative Project

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-17 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1605571300-4438-1-git-send-email-bbhatt@codeaurora.org>
2020-11-17  7:14 ` [PATCH] ath11k: use MHI provided APIs to allocate and free MHI controller Kalle Valo
2020-11-17 17:17   ` Bhaumik Bhatt

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).