Skip to content

Commit 9cecad1

Browse files
stanleychuysalexandrebelloni
authored andcommitted
i3c: master: svc: Fix missing the IBI rules
The code does not add IBI rules for devices with controller capability. However, the secondary controller has the controller capability and works at target mode when the device is probed. Therefore, add IBI rules for such devices. Fixes: dd3c528 ("i3c: master: svc: Add Silvaco I3C master driver") Signed-off-by: Stanley Chu <[email protected]> Reviewed-by: Frank Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent d6cb667 commit 9cecad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i3c/master/svc-i3c-master.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ static int svc_i3c_update_ibirules(struct svc_i3c_master *master)
11061106

11071107
/* Create the IBIRULES register for both cases */
11081108
i3c_bus_for_each_i3cdev(&master->base.bus, dev) {
1109-
if (I3C_BCR_DEVICE_ROLE(dev->info.bcr) == I3C_BCR_I3C_MASTER)
1109+
if (!(dev->info.bcr & I3C_BCR_IBI_REQ_CAP))
11101110
continue;
11111111

11121112
if (dev->info.bcr & I3C_BCR_IBI_PAYLOAD) {

0 commit comments

Comments
 (0)