From b4c9cf2eeddb70934c5d61b81ba8c2861bcccc38 Mon Sep 17 00:00:00 2001 From: Jyothi Kumar Seerapu Date: Thu, 29 Dec 2022 20:30:46 +0530 Subject: [PATCH] mhi: core: Add the basic sanity to check the irq registration As part of MHI Power On sequence, registering the mhi irq through request_threaded_irq function. In case of failure in mhi irq registration, we simply return without printing the error message. So, added the error message with printing mhi irq number and return value in failure case of irq registration. Change-Id: I5d2e1bc6d66abc8b42ca60fbc53b7664d3468db0 Signed-off-by: Jyothi Kumar Seerapu --- drivers/bus/mhi/core/mhi_init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/bus/mhi/core/mhi_init.c b/drivers/bus/mhi/core/mhi_init.c index 60ae6c51143c..00f1f44b6a7d 100644 --- a/drivers/bus/mhi/core/mhi_init.c +++ b/drivers/bus/mhi/core/mhi_init.c @@ -435,8 +435,11 @@ int mhi_init_irq_setup(struct mhi_controller *mhi_cntrl) mhi_intvec_threaded_handlr, IRQF_ONESHOT | IRQF_NO_SUSPEND, "mhi", mhi_cntrl); - if (ret) + if (ret) { + MHI_CNTRL_ERR("Error in requesting threaded irq:%d, ret=%d\n", + mhi_cntrl->irq[0], ret); return ret; + } for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) { if (!mhi_event->request_irq)