mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
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: dd3c52846d ("i3c: master: svc: Add Silvaco I3C master driver")
Signed-off-by: Stanley Chu <yschu@nuvoton.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250318053606.3087121-2-yschu@nuvoton.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
d6cb667b8e
commit
9cecad134d
|
|
@ -1106,7 +1106,7 @@ static int svc_i3c_update_ibirules(struct svc_i3c_master *master)
|
|||
|
||||
/* Create the IBIRULES register for both cases */
|
||||
i3c_bus_for_each_i3cdev(&master->base.bus, dev) {
|
||||
if (I3C_BCR_DEVICE_ROLE(dev->info.bcr) == I3C_BCR_I3C_MASTER)
|
||||
if (!(dev->info.bcr & I3C_BCR_IBI_REQ_CAP))
|
||||
continue;
|
||||
|
||||
if (dev->info.bcr & I3C_BCR_IBI_PAYLOAD) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user