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 <quic_jseerapu@quicinc.com>
This commit is contained in:
Jyothi Kumar Seerapu 2022-12-29 20:30:46 +05:30
parent 245ad69b23
commit b4c9cf2eed

View File

@ -435,8 +435,11 @@ int mhi_init_irq_setup(struct mhi_controller *mhi_cntrl)
mhi_intvec_threaded_handlr, mhi_intvec_threaded_handlr,
IRQF_ONESHOT | IRQF_NO_SUSPEND, IRQF_ONESHOT | IRQF_NO_SUSPEND,
"mhi", mhi_cntrl); "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; return ret;
}
for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) { for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) {
if (!mhi_event->request_irq) if (!mhi_event->request_irq)