i3c: master: dw: reattach device on first available location of address table
authorVitor Soares <Vitor.Soares@synopsys.com>
Tue, 3 Sep 2019 10:35:54 +0000 (12:35 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 13 Jan 2020 09:00:05 +0000 (10:00 +0100)
commit3952cf8ff2f7751ee2f9d6cc6140df4667853250
treed5ba96d4f9d39baeadfb59a1427a20d4f7d4c41b
parent3c67166dc58d02c5166193138f0740e3c322ec35
i3c: master: dw: reattach device on first available location of address table

For today the reattach function only update the device address on the
controller.

Update the location to the first available too, will optimize the
enumeration process avoiding additional checks to keep the available
positions on address table consecutive.

Signed-off-by: Vitor Soares <vitor.soares@synopsys.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/i3c/master/dw-i3c-master.c