]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i3c: master: Update hot-join flag only on success
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 13 Jan 2026 07:26:44 +0000 (09:26 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 14 Jan 2026 16:21:09 +0000 (17:21 +0100)
commitf0775157b9f9a28ae3eabc8d05b0bc52e8056c80
treef61594ebe20db694f6a9b22f72b8fbd09399f610
parent8bb96575883d3b201ce37046b3903ea1d2d50bbc
i3c: master: Update hot-join flag only on success

To prevent inconsistent state when an error occurs, ensure the hot-join
flag is updated only when enabling or disabling hot-join succeeds.

Fixes: 317bacf960a48 ("i3c: master: add enable(disable) hot join in sys entry")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260113072702.16268-4-adrian.hunter@intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master.c