i3c: dw: Fix dw_i3c_master_disable controller by using correct mask
authorVitor Soares <vitor.soares@synopsys.com>
Mon, 8 Apr 2019 11:13:34 +0000 (13:13 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 10 Apr 2019 10:46:20 +0000 (12:46 +0200)
commit907621e94d49b85cd76f13110eceb940a182c69e
tree28c0ebb89cfb2c88f632ead5d9331e95c74269a1
parent9752c37cc89f43675e70cf9acff23519fa84b48c
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>
drivers/i3c/master/dw-i3c-master.c