[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c64a0c92-4528-4c87-ac2e-00ee2ec666ad@web.de>
Date: Mon, 4 Nov 2024 14:06:56 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Shu-hsiang Yang <Shu-hsiang.Yang@...iatek.com>,
Project_Global_Chrome_Upstream_Group@...iatek.com,
linux-mediatek@...ts.infradead.org, linux-arm-kernel@...ts.infradead.org,
linux-media@...r.kernel.org, devicetree@...r.kernel.org,
dri-devel@...ts.freedesktop.org, linaro-mm-sig@...ts.linaro.org,
Angelo Gioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Christian König <christian.koenig@....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>,
Sumit Semwal <sumit.semwal@...aro.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
Hidenori Kobayashi <hidenorik@...omium.org>,
Shun-Yi Wang (王順億) <Shun-Yi.Wang@...iatek.com>,
teddy.chen@...iatek.com, yaya.chang@...iatek.com,
Yunke Cao <yunkec@...omium.org>
Subject: Re: [PATCH 05/10] media: platform: mediatek: add isp_7x camsys unit
…
> +++ b/drivers/media/platform/mediatek/isp/isp_7x/camsys/mtk_cam.c
> @@ -0,0 +1,4168 @@
…
> +void mtk_cam_dev_req_try_queue(struct mtk_cam_device *cam)
> +{
…
> + spin_lock(&cam->running_job_lock);
> + job_count = cam->running_job_count;
> + spin_unlock(&cam->running_job_lock);
…
Under which circumstances would you become interested to apply a statement
like “guard(spinlock)(&cam->running_job_lock);”?
https://elixir.bootlin.com/linux/v6.12-rc6/source/include/linux/spinlock.h#L559
Regards,
Markus
Powered by blists - more mailing lists