From: Markus Elfring <Markus.Elfring@web.de>
To: Alex Lanzano <lanzano.alex@gmail.com>,
Mehdi Djait <mehdi.djait@bootlin.com>,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org
Cc: LKML <linux-kernel@vger.kernel.org>,
Christophe Jaillet <christophe.jaillet@wanadoo.fr>,
Conor Dooley <conor+dt@kernel.org>,
Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@gmail.com>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>, Rob Herring <robh@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>
Subject: Re: [PATCH v3 2/2] drm/tiny: Add driver for Sharp Memory LCD
Date: Mon, 29 Jul 2024 13:00:47 +0200 [thread overview]
Message-ID: <0b1ee6f7-b24d-49a6-ba90-d917c864ecf4@web.de> (raw)
In-Reply-To: <20240729014311.1746371-3-lanzano.alex@gmail.com>
…
> +++ b/drivers/gpu/drm/tiny/sharp-memory.c
> @@ -0,0 +1,684 @@
…
> static int sharp_memory_update_display(struct sharp_memory_device *smd,
> + struct drm_framebuffer *fb,
> + struct drm_rect clip,
> + struct drm_format_conv_state *fmtcnv_state)
> +{
…
> + mutex_lock(&smd->tx_mutex);
> +
> + /* Populate the transmit buffer with frame data */
…
> + mutex_unlock(&smd->tx_mutex);
> +
> + return ret;
> +}
…
Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&smd->tx_mutex);”?
https://elixir.bootlin.com/linux/v6.10.2/source/include/linux/mutex.h#L196
Regards,
Markus
next prev parent reply other threads:[~2024-07-29 11:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-29 1:42 [PATCH v3 0/2] " Alex Lanzano
2024-07-29 1:42 ` [PATCH v3 1/2] dt-bindings: display: Add Sharp Memory LCD bindings Alex Lanzano
2024-07-29 6:13 ` Krzysztof Kozlowski
2024-07-29 1:42 ` [PATCH v3 2/2] drm/tiny: Add driver for Sharp Memory LCD Alex Lanzano
2024-07-29 11:00 ` Markus Elfring [this message]
2024-07-29 12:05 ` Alex Lanzano
2024-07-29 12:28 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0b1ee6f7-b24d-49a6-ba90-d917c864ecf4@web.de \
--to=markus.elfring@web.de \
--cc=airlied@gmail.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=conor+dt@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=krzk+dt@kernel.org \
--cc=lanzano.alex@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mehdi.djait@bootlin.com \
--cc=mripard@kernel.org \
--cc=robh@kernel.org \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®