Re: [PATCH net-next v11 1/5] net: dsa: yt921x: Check lock status with lockdep_assert_held_once()
From: Andrew Lunn
Date: Mon Aug 31 2026 - 19:30:15 EST
On Mon, Aug 31, 2026 at 12:38:54PM +0800, David Yang wrote:
> mutex_is_locked() was used to check the lock status. While it should not
> be triggered unless a bug is introduced, it does not warn on lock being
> held by another thread. Fix it with lockdep helpers.
>
> Fixes: 186623f4aa72 ("net: dsa: yt921x: Add support for Motorcomm YT921x")
> Signed-off-by: David Yang <mmyangfl@xxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew