The controller was being disabled incorrectly. The correct way is to clear the DEV_CTRL_ENABLE bit.
Fix this by by clearing this bit.
Signed-off-by: Vitor Soares vitor.soares@synopsys.com
Cc: Boris Brezillon bbrezillon@kernel.org Cc: stable@vger.kernel.org --- Changes v1 to v2: Fix commit Message Add Cc: stable@vger.kernel.org
drivers/i3c/master/dw-i3c-master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i3c/master/dw-i3c-master.c b/drivers/i3c/master/dw-i3c-master.c index 5927922..10c26ff 100644 --- a/drivers/i3c/master/dw-i3c-master.c +++ b/drivers/i3c/master/dw-i3c-master.c @@ -300,7 +300,7 @@ to_dw_i3c_master(struct i3c_master_controller *master)
static void dw_i3c_master_disable(struct dw_i3c_master *master) { - writel(readl(master->regs + DEVICE_CTRL) & DEV_CTRL_ENABLE, + writel(readl(master->regs + DEVICE_CTRL) & ~DEV_CTRL_ENABLE, master->regs + DEVICE_CTRL); }
linux-stable-mirror@lists.linaro.org