diff mbox series

i3c: dw: Fix clearing queue thld

Message ID 20240611112650.411214-1-aniketmaurya@google.com (mailing list archive)
State Accepted
Headers show
Series i3c: dw: Fix clearing queue thld | expand

Commit Message

Aniket June 11, 2024, 11:26 a.m. UTC
QUEUE_THLD_CTRL_IBI_STAT_MASK is repeated twice.
Replace with QUEUE_THLD_CTRL_IBI_DATA_MASK.

Signed-off-by: Aniket <aniketmaurya@google.com>
---
 drivers/i3c/master/dw-i3c-master.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alexandre Belloni June 22, 2024, 10:33 p.m. UTC | #1
On Tue, 11 Jun 2024 11:26:50 +0000, Aniket wrote:
> QUEUE_THLD_CTRL_IBI_STAT_MASK is repeated twice.
> Replace with QUEUE_THLD_CTRL_IBI_DATA_MASK.
> 
> 

Applied, thanks!

[1/1] i3c: dw: Fix clearing queue thld
      https://git.kernel.org/abelloni/c/ed569e6cb3d7

Best regards,
diff mbox series

Patch

diff --git a/drivers/i3c/master/dw-i3c-master.c b/drivers/i3c/master/dw-i3c-master.c
index 03911a5c0264..77a2a1c3fd1d 100644
--- a/drivers/i3c/master/dw-i3c-master.c
+++ b/drivers/i3c/master/dw-i3c-master.c
@@ -631,7 +631,7 @@  static int dw_i3c_master_bus_init(struct i3c_master_controller *m)
 	thld_ctrl = readl(master->regs + QUEUE_THLD_CTRL);
 	thld_ctrl &= ~(QUEUE_THLD_CTRL_RESP_BUF_MASK |
 		       QUEUE_THLD_CTRL_IBI_STAT_MASK |
-		       QUEUE_THLD_CTRL_IBI_STAT_MASK);
+		       QUEUE_THLD_CTRL_IBI_DATA_MASK);
 	thld_ctrl |= QUEUE_THLD_CTRL_IBI_STAT(1) |
 		QUEUE_THLD_CTRL_IBI_DATA(31);
 	writel(thld_ctrl, master->regs + QUEUE_THLD_CTRL);