Skip to contentSkip to conversation

mailbox: sprd: correct definition of SPRD_OUTBOX_FIFO_FULL

PATCH In review Chunyan Zhang 2 participants 2 messages Feb 4, 2021

Subsystems (2)
lore
Share & tools
lore

Chunyan Zhang

author reviewer
#0 lore raw

PATCH 1/1 mailbox: sprd: correct definition of SPRD_OUTBOX_FIFO_FULL

From: Magnum Shan <[email protected]>

According to the specification, bit[2] represents SPRD_OUTBOX_FIFO_FULL, not bit[0], so correct it.

Fixes ca27fc26cd22 ("mailbox: sprd: Add Spreadtrum mailbox driver")
---
 drivers/mailbox/sprd-mailbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mailbox/sprd-mailbox.c +1 -1
index f6fab24ae8a9..4c325301a2fe 100644
@@ -35,7 +35,7 @@
 #define SPRD_MBOX_IRQ_CLR			BIT(0)
 
 /* Bit and mask definiation for outbox's SPRD_MBOX_FIFO_STS register */
-#define SPRD_OUTBOX_FIFO_FULL			BIT(0)
+#define SPRD_OUTBOX_FIFO_FULL			BIT(2)
 #define SPRD_OUTBOX_FIFO_WR_SHIFT		16
 #define SPRD_OUTBOX_FIFO_RD_SHIFT		24
 #define SPRD_OUTBOX_FIFO_POS_MASK		GENMASK(7, 0)
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Chunyan Zhang

From: Magnum Shan <[email protected]>

According to the specification, bit[2] represents SPRD_OUTBOX_FIFO_FULL, not bit[0], so correct it.

Fixes ca27fc26cd22 ("mailbox: sprd: Add Spreadtrum mailbox driver")

LGTM.

Quoted 20 lines
---
 drivers/mailbox/sprd-mailbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mailbox/sprd-mailbox.c +1 -2
index f6fab24ae8a9..4c325301a2fe 100644
@@ -35,7 +35,7 @@
 #define SPRD_MBOX_IRQ_CLR                      BIT(0)
 
 /* Bit and mask definiation for outbox's SPRD_MBOX_FIFO_STS register */
-#define SPRD_OUTBOX_FIFO_FULL                  BIT(0)
+#define SPRD_OUTBOX_FIFO_FULL                  BIT(2)
 #define SPRD_OUTBOX_FIFO_WR_SHIFT              16
 #define SPRD_OUTBOX_FIFO_RD_SHIFT              24
 #define SPRD_OUTBOX_FIFO_POS_MASK              GENMASK(7, 0)
--

2.25.1

Signature · 1 line
Baolin Wang