Re: [PATCH v2] media: atomisp: Add lock asserts for mutex protection

From: Dan Carpenter
Date: Fri Aug 15 2025 - 16:05:27 EST


On Fri, Aug 15, 2025 at 09:24:11PM +0300, Abdelrahman Fekry wrote:
> Add lockdep_assert_held(&isp->mutex) to critical functions accessing
> shared device state. This enforces proper locking and detects violations.
>
> Suggested-by: Hans de Goede <hdegoede@xxxxxxxxxx>
> Signed-off-by: Abdelrahman Fekry <abdelrahmanfekry375@xxxxxxxxx>
>
> ---
> v2:
> - Fix Typos
> - tested by building the driver
>
> v1: https://lore.kernel.org/all/20250815170901.32105-1-abdelrahmanfekry375@xxxxxxxxx/

Same comments. Best to wait a day between resends.

regards,
dan carpenter