Skip to content

Commit

Permalink
i3c: dw: Fix dw_i3c_master_disable controller by using correct mask
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: <[email protected]>
Fixes: 1dd728f ("i3c: master: Add driver for Synopsys DesignWare IP")
Signed-off-by: Vitor Soares <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
  • Loading branch information
vitor-soares-snps authored and bbrezillon committed Apr 10, 2019
1 parent 9752c37 commit 907621e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i3c/master/dw-i3c-master.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 907621e

Please sign in to comment.