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

Dan Carpenter
2025-08-15T20:04:09Z

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@redhat.com>
> Signed-off-by: Abdelrahman Fekry <abdelrahmanfekry375@gmail.com>
>
> ---
> v2:
> - Fix Typos
> - tested by building the driver
>
> v1: https://lore.kernel.org/all/20250815170901.32105-1-abdelrahmanfekry375@gmail.com/

Same comments. Best to wait a day between resends.

regards,
dan carpenter