mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
i3c: mipi-i3c-hci: Move unexpected INTR_STATUS print before IO handler
Move "unexpected INTR_STATUS" error print before calling the IO handler as it is more consistent that way. Otherwise it may be confusing if generic interrupt related prints are mixed with IO handler prints. Since this error print is more indication of missing code rather than runtime error downgrade it to dev_warn_once(). Reviewed-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Link: https://lore.kernel.org/r/20250409140401.299251-5-jarkko.nikula@linux.intel.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
7479d2675c
commit
bd91680663
|
|
@ -606,12 +606,13 @@ static irqreturn_t i3c_hci_irq_handler(int irq, void *dev_id)
|
|||
val &= ~INTR_HC_INTERNAL_ERR;
|
||||
}
|
||||
|
||||
if (val)
|
||||
dev_warn_once(&hci->master.dev,
|
||||
"unexpected INTR_STATUS %#x\n", val);
|
||||
|
||||
if (hci->io->irq_handler(hci))
|
||||
result = IRQ_HANDLED;
|
||||
|
||||
if (val)
|
||||
dev_err(&hci->master.dev, "unexpected INTR_STATUS %#x\n", val);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user