From: Luca Ceresoli <luca.ceresoli@bootlin.com>
To: Shengjiu Wang <shengjiu.wang@gmail.com>
Cc: Maxime Ripard <mripard@kernel.org>,
Shengjiu Wang <shengjiu.wang@nxp.com>,
andrzej.hajda@intel.com, neil.armstrong@linaro.org,
rfoss@kernel.org, Laurent.pinchart@ideasonboard.com,
jonas@kwiboo.se, jernej.skrabec@gmail.com,
maarten.lankhorst@linux.intel.com, tzimmermann@suse.de,
airlied@gmail.com, simona@ffwll.ch, lumag@kernel.org,
dianders@chromium.org, cristian.ciocaltea@collabora.com,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
victor.liu@nxp.com, shawnguo@kernel.org, s.hauer@pengutronix.de,
kernel@pengutronix.de, festevam@gmail.com, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, p.zabel@pengutronix.de,
devicetree@vger.kernel.org, l.stach@pengutronix.de,
perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org
Subject: Re: [PATCH v5 4/7] drm/bridge: dw-hdmi: Add API dw_hdmi_set_sample_iec958() for iec958 format
Date: Fri, 19 Sep 2025 17:08:24 +0200 [thread overview]
Message-ID: <20250919170824.63df1d6e@booty> (raw)
In-Reply-To: <CAA+D8AP8eJ8_pueq1ZSb-ORzTJbNT7HOwKFOO5ZCXqgqoQ1qGQ@mail.gmail.com>
Hello Shengjiu,
On Fri, 19 Sep 2025 11:43:05 +0800
Shengjiu Wang <shengjiu.wang@gmail.com> wrote:
> Hi Luca
>
> On Wed, Sep 10, 2025 at 6:29 PM Shengjiu Wang <shengjiu.wang@gmail.com> wrote:
> >
> > Hi
> >
> > On Tue, Sep 9, 2025 at 2:39 PM Maxime Ripard <mripard@kernel.org> wrote:
> > >
> > > Hi,
> > >
> > > On Wed, Sep 03, 2025 at 06:41:05PM +0800, Shengjiu Wang wrote:
> > > > On Tue, Sep 2, 2025 at 12:52 AM Luca Ceresoli <luca.ceresoli@bootlin.com> wrote:
> > > > >
> > > > > Hello Shengjiu,
> > > > >
> > > > > On Thu, 21 Aug 2025 15:31:28 +0800
> > > > > Shengjiu Wang <shengjiu.wang@nxp.com> wrote:
> > > > >
> > > > > > Add API dw_hdmi_set_sample_iec958() for IEC958 format because audio device
> > > > > > driver needs IEC958 information to configure this specific setting.
> > > > > >
> > > > > > Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
> > > > > > Acked-by: Liu Ying <victor.liu@nxp.com>
> > > > >
> > > > > [...]
> > > > >
> > > > > > +void dw_hdmi_set_sample_iec958(struct dw_hdmi *hdmi, unsigned int iec958)
> > > > > > +{
> > > > > > + mutex_lock(&hdmi->audio_mutex);
> > > > > > + hdmi->sample_iec958 = iec958;
> > > > > > + mutex_unlock(&hdmi->audio_mutex);
> > > > > > +}
> > > > >
> > > > > Apologies for jumping in the discussion as late as in v5, but I noticed
> > > > > this patch and I was wondering whether this mutex_lock/unlock() is
> > > > > really needed, as you're copying an int.
> > > >
> > > > Thanks for your comments.
> > > >
> > > > Seems it is not necessary to add mutex here. I just follow the code as
> > > > other similar functions. I will send a new version to update it.
> > >
> > > Let's not be smart about it. Next thing you know, someone will add
> > > another field in there that would absolutely require a mutex and now
> > > you're not race free anymore.
> > >
> > > Unless there's a real concern, the mutex must stay.
> > >
> >
> > Ok, thanks for comments. Then Patch v6 need to be dropped.
> >
> > Is there any other comments for this Patch v5?
> > If no, can this series be accepted?
> >
>
> Can we have a conclusion that keeps the mutex as Maxime's comments?
If Maxime wants the mutex to be kept, it's fine.
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2025-09-19 15:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-21 7:31 [PATCH v5 0/7] drm/bridge: imx: Add HDMI PAI driver on i.MX8MP Shengjiu Wang
2025-08-21 7:31 ` [PATCH v5 1/7] dt-bindings: display: imx: add HDMI PAI for i.MX8MP Shengjiu Wang
2025-08-21 7:31 ` [PATCH v5 2/7] ALSA: Add definitions for the bits in IEC958 subframe Shengjiu Wang
2025-08-21 7:31 ` [PATCH v5 3/7] drm/bridge: dw-hdmi: Add API dw_hdmi_to_plat_data() to get plat_data Shengjiu Wang
2025-08-21 7:31 ` [PATCH v5 4/7] drm/bridge: dw-hdmi: Add API dw_hdmi_set_sample_iec958() for iec958 format Shengjiu Wang
2025-09-01 16:52 ` Luca Ceresoli
2025-09-03 10:41 ` Shengjiu Wang
2025-09-09 6:39 ` Maxime Ripard
2025-09-10 10:29 ` Shengjiu Wang
2025-09-19 3:43 ` Shengjiu Wang
2025-09-19 15:08 ` Luca Ceresoli [this message]
2025-09-22 3:02 ` Liu Ying
2025-09-23 1:29 ` Shengjiu Wang
2025-08-21 7:31 ` [PATCH v5 5/7] drm/bridge: imx: add driver for HDMI TX Parallel Audio Interface Shengjiu Wang
2025-08-21 7:31 ` [PATCH v5 6/7] arm64: dts: imx8mp: Add hdmi parallel audio interface node Shengjiu Wang
2025-08-21 7:31 ` [PATCH v5 7/7] arm64: dts: imx8mp-evk: enable hdmi_pai device Shengjiu Wang
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=20250919170824.63df1d6e@booty \
--to=luca.ceresoli@bootlin.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=conor+dt@kernel.org \
--cc=cristian.ciocaltea@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=dianders@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=l.stach@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=lumag@kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=p.zabel@pengutronix.de \
--cc=perex@perex.cz \
--cc=rfoss@kernel.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=shengjiu.wang@gmail.com \
--cc=shengjiu.wang@nxp.com \
--cc=simona@ffwll.ch \
--cc=tiwai@suse.com \
--cc=tzimmermann@suse.de \
--cc=victor.liu@nxp.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.