[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f88557ca-536f-4ea4-ac13-e20fb296195c@web.de>
Date: Tue, 30 Jul 2024 17:00:17 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Florian Sylvestre <fsylvestre@...libre.com>,
Julien Stephan <jstephan@...libre.com>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Paul Elder <paul.elder@...asonboard.com>, linux-media@...r.kernel.org,
devicetree@...r.kernel.org, linux-mediatek@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, Andy Hsieh <andy.hsieh@...iatek.com>,
Angelo Gioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Conor Dooley <conor+dt@...nel.org>, Krzysztof Kozlowski
<krzk+dt@...nel.org>, Matthias Brugger <matthias.bgg@...il.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>, Rob Herring <robh@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v6 4/5] media: platform: mediatek: isp_30: add mediatek
ISP3.0 camsv
…
> +++ b/drivers/media/platform/mediatek/isp/isp_30/camsv/mtk_camsv30_hw.c
> @@ -0,0 +1,413 @@
…
> +static int mtk_camsv30_runtime_resume(struct device *dev)
> +{
…
> + mtk_camsv30_setup(cam_dev, fmt->width, fmt->height,
> + fmt->plane_fmt[0].bytesperline, vdev->fmtinfo->code);
> +
> + spin_lock_irqsave(&cam_dev->buf_list_lock, flags);
…
> + mtk_camsv30_cmos_vf_hw_enable(cam_dev);
> +
> + spin_unlock_irqrestore(&cam_dev->buf_list_lock, flags);
…
Under which circumstances would you become interested to apply a statement
like “guard(spinlock_irqsave)(&cam_dev->buf_list_lock);”?
https://elixir.bootlin.com/linux/v6.11-rc1/source/include/linux/spinlock.h#L572
Regards,
Markus
Powered by blists - more mailing lists