Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp814771pxj; Thu, 17 Jun 2021 14:41:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFVWfnF+cJN3TVAoeEvfxTt0VRlQqLyUlmAG35Ve1kTl6kghY0xAgn9DY3mb7isEmiUoc5 X-Received: by 2002:a05:6402:4395:: with SMTP id o21mr518524edc.163.1623966066684; Thu, 17 Jun 2021 14:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623966066; cv=none; d=google.com; s=arc-20160816; b=oyYZ+Z1/iUiTVhOPIrVXlkDLOcjHxPK6ZiQ30Pf9QXlijX3r4dR7mpdqmvhP6r/3ws 8aELXM9G2JtfkKPzKbtDHj7NSh+dUDklE1w2zqdtEgqqwSTsW4pxkFh46kBC/ed96vZB YJsAeVxB7wWlKD9Fe6AYDcUXI0jTKav4HhvnziGwaf8iPtIG0RYkT22F/bFs5lGhVcFr Kvmy9ifSHnePMX99n6oCBat1MqjctKTqHcSRvIBVPXezsRC0qYFYFlM3ol3NoKgSAcbN FhI13GrUo1fCTqINlkqSdbuQYD7x0P5+jGPfkLahWVVb2DrvjGjAHbljygNVG90rEwXC tvdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=mUO9Ozj23BHLlb1sIymS3hQH3etYtF5Vy5wChjI6G/Y=; b=ZvjBkgAmobSWgmJEIJu2PmgOgH07aNGf8xHfZRl/Hsok+AIDv6jeMo/5E5gOYlPq1k jtb8rBwconSWqafHoD/vl4IZxs9iBEH5bdzdDhuBF6VplS11nYB6gWeVQ2d754pnRsfy mqVXMisUsrUdbTfuB1R5+h0IQCP/VmBaoC7B/ytVg0iI30VDneylAQKEjyV17lWv4hCC 0Niv61HLHN4BfHQpqAZabG4j5icXxSItDehuRi44hqyPYeTfi2BfkISp/uu7yAAMEXFD 4wreb1V6VkaYPo8FtaQIvV95KdxTKfAjTaqcvUrxZlcxl3Txb/kh7lXuuVu5KK+1MhyS tVHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=WI3p+Yge; 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 c14si4282196edm.54.2021.06.17.14.40.44; Thu, 17 Jun 2021 14:41:06 -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=@mg.codeaurora.org header.s=smtp header.b=WI3p+Yge; 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 S232519AbhFQVdK (ORCPT + 99 others); Thu, 17 Jun 2021 17:33:10 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:32954 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230161AbhFQVdH (ORCPT ); Thu, 17 Jun 2021 17:33:07 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1623965459; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=mUO9Ozj23BHLlb1sIymS3hQH3etYtF5Vy5wChjI6G/Y=; b=WI3p+YgeAtmsS+Fq95y5zp4ji2EvPekov7GcaqAqVxU4IbzFbIAHRRdLq3s6KTFol3P5XecL cyV7ZOJMPnJsUTIq7oxHqwmhQeUq/6Cazashf4YxCbV16+BT1mrmT7Uzddjtimz/ffsLfATI GMLBeqiNGPRWze1PWHGb6UKJsOE= X-Mailgun-Sending-Ip: 69.72.43.7 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-west-2.postgun.com with SMTP id 60cbbf04e570c05619857a55 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 17 Jun 2021 21:30:44 GMT Sender: bbhatt=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id BF6D6C43143; Thu, 17 Jun 2021 21:30:44 +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,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from malabar-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: bbhatt) by smtp.codeaurora.org (Postfix) with ESMTPSA id E56F8C433D3; Thu, 17 Jun 2021 21:30:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E56F8C433D3 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=bbhatt@codeaurora.org From: Bhaumik Bhatt To: manivannan.sadhasivam@linaro.org Cc: linux-arm-msm@vger.kernel.org, hemantk@codeaurora.org, jhugo@codeaurora.org, linux-kernel@vger.kernel.org, carl.yin@quectel.com, naveen.kumar@quectel.com, loic.poulain@linaro.org, Bhaumik Bhatt Subject: [PATCH v1 4/4] bus: mhi: core: Enable support for event ring priorities Date: Thu, 17 Jun 2021 14:30:35 -0700 Message-Id: <1623965435-30224-5-git-send-email-bbhatt@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1623965435-30224-1-git-send-email-bbhatt@codeaurora.org> References: <1623965435-30224-1-git-send-email-bbhatt@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Priority set in the event ring configuration by the controllers has been unused by the MHI host driver until now. Enable usage of those priorities set with the introduction of the enums for default or high priority tasklet scheduling options. Signed-off-by: Bhaumik Bhatt --- drivers/bus/mhi/core/init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/bus/mhi/core/init.c b/drivers/bus/mhi/core/init.c index c81b377..4446760 100644 --- a/drivers/bus/mhi/core/init.c +++ b/drivers/bus/mhi/core/init.c @@ -673,8 +673,7 @@ static int parse_ev_cfg(struct mhi_controller *mhi_cntrl, &mhi_cntrl->mhi_chan[mhi_event->chan]; } - /* Priority is fixed to 1 for now */ - mhi_event->priority = 1; + mhi_event->priority = event_cfg->priority; mhi_event->db_cfg.brstmode = event_cfg->mode; if (MHI_INVALID_BRSTMODE(mhi_event->db_cfg.brstmode)) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project