lkml.org 
[lkml]   [2021]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.10 430/663] mailbox: sprd: correct definition of SPRD_OUTBOX_FIFO_FULL
    Date
    From: Magnum Shan <magnum.shan@unisoc.com>

    [ Upstream commit 4450f128c51160bfded6b483eba37d0628d7adb2 ]

    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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/mailbox/sprd-mailbox.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/mailbox/sprd-mailbox.c b/drivers/mailbox/sprd-mailbox.c
    index f6fab24ae8a9a..4c325301a2fe8 100644
    --- a/drivers/mailbox/sprd-mailbox.c
    +++ b/drivers/mailbox/sprd-mailbox.c
    @@ -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.27.0


    \
     
     \ /
      Last update: 2021-03-02 03:47    [W:2.252 / U:0.416 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site