2021-06-17 21:41:06

by Bhaumik Bhatt

[permalink] [raw]
Subject: [PATCH v1 4/4] bus: mhi: core: Enable support for event ring priorities

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 <[email protected]>
---
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


2021-06-18 04:23:49

by Hemant Kumar

[permalink] [raw]
Subject: Re: [PATCH v1 4/4] bus: mhi: core: Enable support for event ring priorities

On Thu, 2021-06-17 at 14:30 -0700, Bhaumik Bhatt wrote:
> 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 <[email protected]>
>
Reviewed-by: Hemant Kumar <[email protected]>
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project