Re: [PATCH 3/9] driver core: warn should device_move try to move a need_parent_lock device
From: sashiko-bot
Date: Thu Sep 17 2026 - 13:30:48 EST
> Currently, no device has need_parent_lock set and is moved by
> device_move. need_parent_lock is only set by the usb bus and very
> few device types ever use device_move.
>
> Add a warning to device_move to catch should it ever be used on a
> device with need_parent_lock set. The combination would break
> the immutable relationship needed between parent and child for
> need_parent_lock when locking and unlocking both.
>
> Suggested-by: Tarun Sahu <tarunsahu@xxxxxxxxxx>
> Signed-off-by: David Jeffery <djeffery@xxxxxxxxxx>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260917163744.191748-1-djeffery@xxxxxxxxxx?part=3