summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitor Soares <vitor.soares@synopsys.com>2019-04-08 13:13:34 +0200
committerBoris Brezillon <boris.brezillon@collabora.com>2019-04-10 12:46:20 +0200
commit907621e94d49b85cd76f13110eceb940a182c69e (patch)
tree28c0ebb89cfb2c88f632ead5d9331e95c74269a1
parent9752c37cc89f43675e70cf9acff23519fa84b48c (diff)
downloadlinux-stable-907621e94d49b85cd76f13110eceb940a182c69e.tar.gz
linux-stable-907621e94d49b85cd76f13110eceb940a182c69e.tar.bz2
linux-stable-907621e94d49b85cd76f13110eceb940a182c69e.zip
i3c: dw: Fix dw_i3c_master_disable controller by using correct mask
The controller was being disabled incorrectly. The correct way is to clear the DEV_CTRL_ENABLE bit. Fix this by clearing this bit. Cc: Boris Brezillon <bbrezillon@kernel.org> Cc: <stable@vger.kernel.org> Fixes: 1dd728f5d4d4 ("i3c: master: Add driver for Synopsys DesignWare IP") Signed-off-by: Vitor Soares <vitor.soares@synopsys.com> Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
-rw-r--r--drivers/i3c/master/dw-i3c-master.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i3c/master/dw-i3c-master.c b/drivers/i3c/master/dw-i3c-master.c
index 59279224e07f..10c26ffaa8ef 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);
}