Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mailbox: sprd: correct definition of SPRD_OUTBOX_FIFO_FULL

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")
Signed-off-by: Magnum Shan <magnum.shan@unisoc.com>
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Reviewed-by: Baolin Wang <baolin.wang7@gmail.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>

authored by

Magnum Shan and committed by
Jassi Brar
4450f128 09d12157

+1 -1
+1 -1
drivers/mailbox/sprd-mailbox.c
··· 35 35 #define SPRD_MBOX_IRQ_CLR BIT(0) 36 36 37 37 /* Bit and mask definiation for outbox's SPRD_MBOX_FIFO_STS register */ 38 - #define SPRD_OUTBOX_FIFO_FULL BIT(0) 38 + #define SPRD_OUTBOX_FIFO_FULL BIT(2) 39 39 #define SPRD_OUTBOX_FIFO_WR_SHIFT 16 40 40 #define SPRD_OUTBOX_FIFO_RD_SHIFT 24 41 41 #define SPRD_OUTBOX_FIFO_POS_MASK GENMASK(7, 0)