Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4024193pxb; Tue, 17 Nov 2020 09:19:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwan9WiOvD9959T4sm2o3Q3zhfxucySTeR+wlOMdlvu0Ugh8MSx1PO220oupSh2sI/jNZJo X-Received: by 2002:aa7:d5d7:: with SMTP id d23mr22142672eds.203.1605633588808; Tue, 17 Nov 2020 09:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605633588; cv=none; d=google.com; s=arc-20160816; b=dz078TVPoXdrumFIjwphHPHRz436eR801p4B2Dmiw1egl4kS1zS3KKOuSCSM6aF18J qSVPOH/so6rGf9cTOtccLBFiaxeZxNpmVFRZgBbut8IQlQOl3t8RPWvCN95PhQynjIsD 65IZfnbZaL2TMInwT83q+kS3fDVt+MOQZQSv+MF+/3lofDHiNiHrDR98iiRTxQMYFJaN nAgwQUHEgUTfhAJL/RfMYF2iUCGZXBfTJ7t3WFnWboEeLHGQfcOwWAWK4KtRNCLCQX1I YL1YdPc7skdTr3hbm0fwglOMBLNN72zVopfZPnkbPDrCI52Q9UfXyTG2mTl/lU3v7GP1 2WJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :mail-reply-to:reply-to:organization:subject:cc:to:from:date :content-transfer-encoding:mime-version:sender:dkim-signature; bh=asJBzxf626itj7z5VEyrbr5Efzoc3mFG5fbDkfP/Rgk=; b=g/qZY/7z9i1DuBzGPuxWYhMW8FX61zaNJuCysSN1Pe5/c4NgKEjKE9xLkODEKba3Ma GLve0fAMCdcseS0ZXzXbTdcm6dNBJH+IWCqVY4FpcduDNidxvdG0U/3N3PMQE2dy1vkR 07R2amizssF+Lp9JKoieYAJvK5Z/xxGzqbEfJtrS9addRmcKirYhJp2xyOFaUn4ZirLN QPXs54CW801NUjAbBiIOouvmGRpA7z17JEkEtgYpxvFhPFE5/56t/tvnydYxza1GPHAN ev2WEEbPR8ek3WoaTl3z2s0coAvhEDW7aF1wnWyNJZKAPogpnqrEcoauiBZA+Zs/Ka/0 Qd5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=b0RPhq3F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r19si14167855ejr.323.2020.11.17.09.19.23; Tue, 17 Nov 2020 09:19:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=b0RPhq3F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728389AbgKQRRp (ORCPT + 99 others); Tue, 17 Nov 2020 12:17:45 -0500 Received: from z5.mailgun.us ([104.130.96.5]:36089 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727245AbgKQRRo (ORCPT ); Tue, 17 Nov 2020 12:17:44 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1605633464; h=Message-ID: References: In-Reply-To: Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=asJBzxf626itj7z5VEyrbr5Efzoc3mFG5fbDkfP/Rgk=; b=b0RPhq3FRmMVZ839lZQe0HsSJkr4+JA+uj5IYPptDJHXO+70MwjuGNp0FwnFlCe7RMfHxk1W RMIohu5o2aTuboHi6UMq6nXceycJDUJ3ocQIdipptEt8XZpKv4uMuuUL1D0yCB5BPCh8IVb/ 9SPUJV8zUDJd14V13IHEGClBLa0= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-east-1.postgun.com with SMTP id 5fb405a6135ce186e96f5f70 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 17 Nov 2020 17:17:26 GMT Sender: bbhatt=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 92FF6C43462; Tue, 17 Nov 2020 17:17:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bbhatt) by smtp.codeaurora.org (Postfix) with ESMTPSA id E689EC433C6; Tue, 17 Nov 2020 17:17:24 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 17 Nov 2020 09:17:24 -0800 From: Bhaumik Bhatt To: Kalle Valo Cc: manivannan.sadhasivam@linaro.org, linux-arm-msm@vger.kernel.org, hemantk@codeaurora.org, jhugo@codeaurora.org, linux-kernel@vger.kernel.org, ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, kvalo=codeaurora.org@codeaurora.org Subject: Re: [PATCH] ath11k: use MHI provided APIs to allocate and free MHI controller Organization: Qualcomm Innovation Center, Inc. Reply-To: bbhatt@codeaurora.org Mail-Reply-To: bbhatt@codeaurora.org In-Reply-To: <87tutozc7h.fsf@codeaurora.org> References: <1605571300-4438-1-git-send-email-bbhatt@codeaurora.org> <87tutozc7h.fsf@codeaurora.org> Message-ID: X-Sender: bbhatt@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-11-16 11:14 PM, Kalle Valo wrote: > Bhaumik Bhatt 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 >> --- >> 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