[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e916a445-f7bd-4213-ac66-cf39f6c5001b@web.de>
Date: Wed, 19 Jun 2024 09:55:25 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Jie Gan <quic_jiegan@...cinc.com>, coresight@...ts.linaro.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Konrad Dybcio <konradybcio@...il.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Mathieu Poirier <mathieu.poirier@...aro.org>,
Mike Leach <mike.leach@...aro.org>, Rob Herring <robh@...nel.org>,
Suzuki Poulouse <suzuki.poulose@....com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Bjorn Andersson <andersson@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jinlong Mao <quic_jinlmao@...cinc.com>, Song Chai
<quic_songchai@...cinc.com>, Tao Zhang <quic_taozha@...cinc.com>,
Tingwei Zhang <quic_tingweiz@...cinc.com>,
Trilok Soni <quic_tsoni@...cinc.com>,
Yuanfang Zhang <quic_yuanfang@...cinc.com>, quic_liuxin@...cinc.com,
quic_sijiwu@...cinc.com, quic_xinlon@...cinc.com, quic_xueqnie@...cinc.com,
quic_yanzl@...cinc.com, quic_yijiyang@...cinc.com, quic_yuanjiey@...cinc.com
Subject: Re: [PATCH 2/3] coresight: Add coresight slave register driver to
support data filter function in sysfs mode
…
> +++ b/drivers/hwtracing/coresight/coresight-csr.c
> @@ -0,0 +1,315 @@
…
> +static int __csr_set_etr_traceid(struct coresight_device *csdev,
> + uint32_t atid_offset, uint32_t traceid,
> + bool enable)
> +{
…
> + spin_lock_irqsave(&drvdata->spin_lock, flags);
> + CS_UNLOCK(drvdata->base);
…
> + CS_LOCK(drvdata->base);
> + spin_unlock_irqrestore(&drvdata->spin_lock, flags);
> + return 0;
> +}
…
Would you become interested to apply a statement like “guard(spinlock_irqsave)(&drvdata->spin_lock);”?
https://elixir.bootlin.com/linux/v6.10-rc4/source/include/linux/spinlock.h#L574
Regards,
Markus
Powered by blists - more mailing lists