Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp170467ybk; Fri, 8 May 2020 22:51:35 -0700 (PDT) X-Google-Smtp-Source: APiQypKqcsbHW08mfdaQzul1OXPWFZz8/qjOlFT+V2DaGloJalJ1uFyHQ+/97pzQ85BmDdKl9ouJ X-Received: by 2002:a17:906:300a:: with SMTP id 10mr4918280ejz.139.1589003495647; Fri, 08 May 2020 22:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589003495; cv=none; d=google.com; s=arc-20160816; b=ZLChyOnQ4Q5SgkkFrg5OVPB+5wO6s36Vf3o6ZQA8Nlf8e0mCRfXS26zitiRY5wvnOH 8jfegcfjS0B7r99zNAMo3yDXg6S2EhfCILxy5Qbzcp8Lu+n/mWrb7pXWXRM2d/wyFA7n lnWu12R2H1FWAylAwjhqC9ZtCvr+x7W8ZIvzEwo+BO3CIFQyHIGN6/btlxdQ4GJfupWK XQmIG98urmpyZIOJm0UwFnzeT8pClOD9YwdfGgjx8CRWNghySOpZS5V7qSEDBWM7eRXZ dIzwF0eNFSh88b5U6Uer0583+1Yi2g5VaV4ltir4qy4t0NlG/HhOq7o8GIUaMMCQqaiW /wAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/yoZMw/csZG9378ylgmFfEOD6Yssweon0M3fBvHbHK4=; b=IL98TytWvFAbErnUoBf8L9EFZ+h4ZKBlnYdEuH7oTA9czSIjZ9BcDov91MHt5V9M7z uACFmcxGYbQF/oaoCIV7T+KFJbRmycSjo86iz+edW7n3zMHe8OKpU/9NycsA5/if7iAD NZQ1kJlR1ORLCQlAn3I65eMikG2Mj2LmzUKGmYMpYRTLQp4bwdNS+dFiKzqNDUiSl5Sm +UtRArACZr85FkGxAKylS8nF6RydqhIsoDUrpQiNunwDnzxfWoipNEOvNqkdSgo8aEX0 elgSIp9rqgXwlu0taTXFEs56LnOSJ5qXjjX3MB8CsLVJsMRVybDesm3PjDiFwDt+w+T8 kLww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FNJZQ5HZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j2si2183917edk.17.2020.05.08.22.51.13; Fri, 08 May 2020 22:51:35 -0700 (PDT) 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=@linaro.org header.s=google header.b=FNJZQ5HZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728835AbgEIFrf (ORCPT + 99 others); Sat, 9 May 2020 01:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728824AbgEIFrf (ORCPT ); Sat, 9 May 2020 01:47:35 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F972C05BD09 for ; Fri, 8 May 2020 22:47:35 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id m7so1675341plt.5 for ; Fri, 08 May 2020 22:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/yoZMw/csZG9378ylgmFfEOD6Yssweon0M3fBvHbHK4=; b=FNJZQ5HZUaPxE28SnsrTEl2DDogWCrWl9WUp4pg/NzaHdJ1JkRCdeBsv+l2H4HQL1o jnO8mKbCWBKFfFNlCBQX2I3ziQUl/iyvfXMixa6dBDV6MrMCK7LSjCipIUPp/1Za0t6n ApFcHSvRv8mE/SAcCqYZtrdgC1Yru800fYtz9mPLo6YCIYjsTxFRiMtqrngmOFiX5e1V yKWj+jQbbicTbR013B4VF/4vUf1wgmRENBPQpoGu2zppXsy9ry9l3OEnto5tI4P3d+Uy FGfbvtF7zg4kPbn7fTxtbh7HyY5FmezZsTLJ/WmQ93WMMnj2ZfU8ISKjIq5fYvmN0OrU S7lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=/yoZMw/csZG9378ylgmFfEOD6Yssweon0M3fBvHbHK4=; b=SZcLIWwwf+gmADwptQl3cVH3UQoKM+sy0deR6dSEbh8OJ7KPDnaGSBae2YFQxWGyt4 XECy1VuvitLJQL1cK5qYaAUMLqIEnq73rPIp6qA5ztfPSiCXxmAEO3+lf88Qe1blAuOj e0n/+rmhlRwgujonvczFiagwFgIgUpXqXMfoees5B0f+Rd2S8AsPgkk0qWydv9Bnwmlh mTyJ9U2iDvC0dGP0W9//qFLofw9TQ/p7MWmQL4y0CBXspK7eQMSBLulzYv+A4iYU9EbO coH7FUrWerbtGy0m28S1+6QFxTP09wYGdNQuGpSwp5mBEDYegT54REQ9rpMn2ahqifYC HhJA== X-Gm-Message-State: AGi0PuajOilxl7lOJKvdvOUrSDbEDqMihcLUrprTaowZiqX2eNxjUeHU 6vywdYfJ+ZpLhulIzsYAAQga X-Received: by 2002:a17:90a:9f92:: with SMTP id o18mr9836413pjp.180.1589003254513; Fri, 08 May 2020 22:47:34 -0700 (PDT) Received: from Mani-XPS-13-9360 ([2409:4072:6e0c:55d2:2cb4:da01:ad1e:6ad9]) by smtp.gmail.com with ESMTPSA id gv24sm3793304pjb.6.2020.05.08.22.47.30 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 May 2020 22:47:33 -0700 (PDT) Date: Sat, 9 May 2020 11:17:27 +0530 From: Manivannan Sadhasivam To: Bhaumik Bhatt Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, hemantk@codeaurora.org, jhugo@codeaurora.org Subject: Re: [PATCH v7 2/8] bus: mhi: core: Cache intmod from mhi event to mhi channel Message-ID: <20200509054727.GB5845@Mani-XPS-13-9360> References: <1588991208-26928-1-git-send-email-bbhatt@codeaurora.org> <1588991208-26928-3-git-send-email-bbhatt@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1588991208-26928-3-git-send-email-bbhatt@codeaurora.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 08, 2020 at 07:26:42PM -0700, Bhaumik Bhatt wrote: > From: Hemant Kumar > > Driver is using zero initialized intmod value from mhi channel when > configuring TRE for bei field. This prevents interrupt moderation to > take effect in case it is supported by an event ring. Fix this by > copying intmod value from associated event ring to mhi channel upon > registering mhi controller. > > Signed-off-by: Hemant Kumar > Signed-off-by: Bhaumik Bhatt > Reviewed-by: Jeffrey Hugo Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > drivers/bus/mhi/core/init.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/bus/mhi/core/init.c b/drivers/bus/mhi/core/init.c > index eb2ab05..1a93d24 100644 > --- a/drivers/bus/mhi/core/init.c > +++ b/drivers/bus/mhi/core/init.c > @@ -863,6 +863,10 @@ int mhi_register_controller(struct mhi_controller *mhi_cntrl, > mutex_init(&mhi_chan->mutex); > init_completion(&mhi_chan->completion); > rwlock_init(&mhi_chan->lock); > + > + /* used in setting bei field of TRE */ > + mhi_event = &mhi_cntrl->mhi_event[mhi_chan->er_index]; > + mhi_chan->intmod = mhi_event->intmod; > } > > if (mhi_cntrl->bounce_buf) { > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project