i3c: master: dw-i3c-master: fix i3c_attach/reattach
authorVitor Soares <vitor.soares@synopsys.com>
Thu, 10 Jan 2019 15:34:59 +0000 (16:34 +0100)
committerBoris Brezillon <bbrezillon@kernel.org>
Tue, 15 Jan 2019 10:15:11 +0000 (11:15 +0100)
commitf29fd331aa055fbeb5a496b4af937b7952111b6b
tree49acb739bc5cce48ff064f139a80b2dff432b74d
parent0fac32f24ceadad801ef1f4de468f1d5186c808d
i3c: master: dw-i3c-master: fix i3c_attach/reattach

This patch fix i3c_attach/reattach functions.

During the i3c_attach the driver ignores the static address used for
SETDASA CCC command.

During the i3c_reattach the driver doesn't update master->addrs[data->index]
with new address if old_dyn_addr = 0.

Fixes: 1dd728f5d4d4 ("i3c: master: Add driver for Synopsys DesignWare IP")
Signed-off-by: Vitor Soares <vitor.soares@synopsys.com>
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
drivers/i3c/master/dw-i3c-master.c