]> www.infradead.org Git - nvme.git/commit
i3c: dw: Fix IBI intr programming
authorAniket <aniketmaurya@google.com>
Fri, 7 Jun 2024 07:20:30 +0000 (07:20 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 26 Jul 2024 12:21:29 +0000 (14:21 +0200)
commit64bf1459080670f05b8bb9c0cd140befd6780b5e
tree741a1a3f43d9d020d24e81de6eaaafcfa6b48426
parent8f2cb0327938c786cede21a542fb538ff243a03a
i3c: dw: Fix IBI intr programming

IBI_SIR_REQ_REJECT register is not present if the IP has
IC_HAS_IBI_DATA = 1 set. So don't rely on doing read-
modify-write op on this register.
Instead maintain a variable to store the sir reject mask
and use it to set IBI_SIR_REQ_REJECT.

Signed-off-by: Aniket <aniketmaurya@google.com>
Reviewed-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/dw-i3c-master.c
drivers/i3c/master/dw-i3c-master.h