]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcedd22452c34abe479c4e41ec969b6628095a982
tree49acb739bc5cce48ff064f139a80b2dff432b74d
parentc72964893fc8a04008b2acf821c90c44e0b3e3b8
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: 3005e6b40f01 ("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