mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-18 00:10:29 -05:00
i3c: mipi-i3c-hci: Clear INTR_STATUS unconditionally
Status fields in INTR_STATUS register are write 1 to clear so do it unconditionally and move clearing of them out of an if block. Suggested-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20250409140401.299251-3-jarkko.nikula@linux.intel.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
committed by
Alexandre Belloni
parent
279c24021b
commit
a7035a8ee9
@@ -590,12 +590,11 @@ static irqreturn_t i3c_hci_irq_handler(int irq, void *dev_id)
|
||||
u32 val;
|
||||
|
||||
val = reg_read(INTR_STATUS);
|
||||
reg_write(INTR_STATUS, val);
|
||||
DBG("INTR_STATUS = %#x", val);
|
||||
|
||||
if (val) {
|
||||
reg_write(INTR_STATUS, val);
|
||||
if (val)
|
||||
result = IRQ_HANDLED;
|
||||
}
|
||||
|
||||
if (val & INTR_HC_RESET_CANCEL) {
|
||||
DBG("cancelled reset");
|
||||
|
||||
Reference in New Issue
Block a user