]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i3c: master: dw-i3c: Fix missing reset assertion in remove() callback
authorFelix Gu <ustc.gu@gmail.com>
Fri, 20 Mar 2026 14:18:02 +0000 (22:18 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 12 Apr 2026 14:37:17 +0000 (16:37 +0200)
commitbef1eef667186cedb0bc6d152464acb3c97d5f72
treefc31d5932233221b3a808694b37f94ef2c08fd6c
parente7a718627c6f75c8a75056ab09d6aa7ed305aaf8
i3c: master: dw-i3c: Fix missing reset assertion in remove() callback

The reset line acquired during probe is currently left deasserted when
the driver is unbound.

Switch to devm_reset_control_get_optional_exclusive_deasserted() to
ensure the reset is automatically re-asserted by the devres core when
the driver is removed.

Fixes: 62fe9d06f570 ("i3c: dw: Add power management support")
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260320-dw-i3c-v3-1-477040c2e3f5@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/dw-i3c-master.c