diff mbox series

[v1,4/4] bus: mhi: core: Enable support for event ring priorities

Message ID 1623965435-30224-5-git-send-email-bbhatt@codeaurora.org
State New
Headers show
Series None | expand

Commit Message

Bhaumik Bhatt June 17, 2021, 9:30 p.m. UTC
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 <bbhatt@codeaurora.org>
---
 drivers/bus/mhi/core/init.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

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