]> git.baikalelectronics.ru Git - kernel.git/commit
i3c: master: Remove the wrong place of reattach.
authorBilly Tsai <billy_tsai@aspeedtech.com>
Mon, 26 Sep 2022 10:51:45 +0000 (18:51 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 12 Oct 2022 21:45:29 +0000 (23:45 +0200)
commit64c6f049fd42f9d61748b0a3a959767ec42f9660
treea51838b21c786c9bd6646b6c3e3a0c966ee297bc
parent91556a24857a79ec0e240e0b512392c9ce805e85
i3c: master: Remove the wrong place of reattach.

The reattach should be used when an I3C device has its address changed.
But the modified place in this patch doesn't have the address changed of
the newdev. This wrong reattach will reserve the same address slot twice
and return unexpected -EBUSY when the bus find the duplicate device with
diffent dynamic address.

Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Link: https://lore.kernel.org/r/20220926105145.8145-2-billy_tsai@aspeedtech.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master.c