i3c: dw: use bus mode rather than device reg for conditional tCAS setting
authorJeremy Kerr <jk@codeconstruct.com.au>
Thu, 30 Mar 2023 06:15:33 +0000 (14:15 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 27 Apr 2023 21:49:43 +0000 (23:49 +0200)
commit66b32e3d2c6daeeafb80fa41f3a41e4c0ab85cc6
treedb97e0778821e29e75a00018dea08eb6ac0547a5
parent67df5ce9dd8870d3e53de5ebd6aecf609b713044
i3c: dw: use bus mode rather than device reg for conditional tCAS setting

In the clock setup path, we set the hardware DEV_CTRL_I2C_SLAVE_PRESENT
bit on a shared mode bus, then read-back this bit for the conditional
tCAS set.

Instead, just use the bus->mode setting for the conditional test.

While we're at it, add a little comment about why the conditional is
there.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Link: https://lore.kernel.org/r/92a933566f7846708a00ad7f5a16ee8e6ed32d0e.1680156630.git.jk@codeconstruct.com.au
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/dw-i3c-master.c