Skip to contentSkip to conversation

mailbox: mpfs: fix check for syscon presence in mpfs_mbox_inbox_isr()

PATCH Applied Conor Dooley 2 participants 2 messages May 14 – May 18

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mailbox: mpfs: fix check for syscon presence in mpfs_mbox_inbox_isr()

From: Conor Dooley <[email protected]>

mpfs_mbox_inbox_isr() writes to the sysreg scb syscon, not the control scb syscon, but checks for the presence of the latter. Ultimately this makes little difference because if one syscon is present, both will be.

Fixes a4123ffab9ece ("mailbox: mpfs: support new, syscon based, devicetree configuration")

---
CC: Conor Dooley <[email protected]>
CC: Daire McNamara <[email protected]>
CC: Jassi Brar <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]

---
 drivers/mailbox/mailbox-mpfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mailbox/mailbox-mpfs.c +1 -1
index d5d9effece979..ef40fe2be30d6 100644
@@ -201,7 +201,7 @@ static irqreturn_t mpfs_mbox_inbox_isr(int irq, void *data)
 	struct mbox_chan *chan = data;
 	struct mpfs_mbox *mbox = (struct mpfs_mbox *)chan->con_priv;
 
-	if (mbox->control_scb)
+	if (mbox->sysreg_scb)
 		regmap_write(mbox->sysreg_scb, MESSAGE_INT_OFFSET, 0);
 	else
 		writel_relaxed(0, mbox->int_reg);
Signature · 1 line
2.53.0
maintainer Applied
#1 lore raw
Quoted 34 lines · Conor Dooley

From: Conor Dooley <[email protected]>

mpfs_mbox_inbox_isr() writes to the sysreg scb syscon, not the control scb syscon, but checks for the presence of the latter. Ultimately this makes little difference because if one syscon is present, both will be.

Fixes a4123ffab9ece ("mailbox: mpfs: support new, syscon based, devicetree configuration")

---
CC: Conor Dooley <[email protected]>
CC: Daire McNamara <[email protected]>
CC: Jassi Brar <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]

---
 drivers/mailbox/mailbox-mpfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mailbox/mailbox-mpfs.c +1 -2
index d5d9effece979..ef40fe2be30d6 100644
@@ -201,7 +201,7 @@ static irqreturn_t mpfs_mbox_inbox_isr(int irq, void *data)
        struct mbox_chan *chan = data;
        struct mpfs_mbox *mbox = (struct mpfs_mbox *)chan->con_priv;
 
-       if (mbox->control_scb)
+       if (mbox->sysreg_scb)
                regmap_write(mbox->sysreg_scb, MESSAGE_INT_OFFSET, 0);
        else
                writel_relaxed(0, mbox->int_reg);
--
Quoted 2 lines

2.53.0

Applied to mailbox/for-next
Thanks
Jassi