[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ab8a17d0-9505-4e81-b5ec-4a3025c48245@web.de>
Date: Sun, 8 Sep 2024 11:11:23 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Algea Cao <algea.cao@...k-chips.com>,
Cristian Ciocaltea <cristian.ciocaltea@...labora.com>,
dri-devel@...ts.freedesktop.org, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-rockchip@...ts.infradead.org,
kernel@...labora.com, Andrzej Hajda <andrzej.hajda@...el.com>,
Andy Yan <andy.yan@...k-chips.com>, Conor Dooley <conor+dt@...nel.org>,
Daniel Vetter <daniel@...ll.ch>, David Airlie <airlied@...il.com>,
Heiko Stübner <heiko@...ech.de>,
Jernej Skrabec <jernej.skrabec@...il.com>, Jonas Karlman <jonas@...boo.se>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Mark Yao <markyao0591@...il.com>, Maxime Ripard <mripard@...nel.org>,
Neil Armstrong <neil.armstrong@...aro.org>, Rob Herring <robh@...nel.org>,
Robert Foss <rfoss@...nel.org>, Sandy Huang <hjc@...k-chips.com>,
Sascha Hauer <s.hauer@...gutronix.de>,
Thomas Zimmermann <tzimmermann@...e.de>
Cc: LKML <linux-kernel@...r.kernel.org>, Alexandre Arnoud <aarnoud@...com>,
Luis de Arquer <ldearquer@...il.com>
Subject: Re: [PATCH v5 2/4] drm/bridge: synopsys: Add DW HDMI QP TX Controller
support library
…
> +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c
> @@ -0,0 +1,708 @@
…
> +static int dw_hdmi_qp_i2c_xfer(struct i2c_adapter *adap,
> + struct i2c_msg *msgs, int num)
> +{
…
> + mutex_lock(&i2c->lock);
…
> + dw_hdmi_qp_mod(hdmi, 0, I2CM_OP_DONE_MASK_N | I2CM_NACK_RCVD_MASK_N,
> + MAINUNIT_1_INT_MASK_N);
> +
> + mutex_unlock(&i2c->lock);
> +
> + return ret;
> +}
…
Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&i2c->lock);”?
https://elixir.bootlin.com/linux/v6.11-rc6/source/include/linux/mutex.h#L196
Regards,
Markus
Powered by blists - more mailing lists