]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i3c: master: svc: add NACK check after start byte sent
authorClark Wang <xiaoning.wang@nxp.com>
Wed, 17 May 2023 03:30:30 +0000 (11:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:07:17 +0000 (17:07 +0000)
commita807a44189d10934d3c6476ae2c99b310f148579
treec8ee77546240f13852940ea4af27f2cfbeddc9ec
parent90db4c1d5ebaf574d3c3065c055977982c378a83
i3c: master: svc: add NACK check after start byte sent

[ Upstream commit 49b472ebc61de3d4aa7cc57539246bb39f6c5128 ]

Add NACK check after start byte is sent.
It is possible to detect early that a device is not on the bus
and avoid invalid transmissions thereafter.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20230517033030.3068085-3-xiaoning.wang@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Stable-dep-of: 9aaeef113c55 ("i3c: master: svc: fix random hot join failure since timeout error")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i3c/master/svc-i3c-master.c