From: Maxime Ripard <mripard@kernel.org>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: "Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Dave Stevenson" <dave.stevenson@raspberrypi.com>,
"Maíra Canal" <mcanal@igalia.com>,
"Raspberry Pi Kernel Maintenance" <kernel-list@raspberrypi.com>,
"Andrzej Hajda" <andrzej.hajda@intel.com>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Robert Foss" <rfoss@kernel.org>,
"Laurent Pinchart" <Laurent.pinchart@ideasonboard.com>,
"Jonas Karlman" <jonas@kwiboo.se>,
"Jernej Skrabec" <jernej.skrabec@gmail.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
"Dmitry Baryshkov" <lumag@kernel.org>
Subject: Re: [PATCH v5 03/11] drm/connector: add CEC-related fields
Date: Tue, 29 Apr 2025 17:33:15 +0200 [thread overview]
Message-ID: <20250429-rainbow-jumping-boar-dbbb3c@houat> (raw)
In-Reply-To: <ac890d36-f61a-456b-9833-4615f691eed6@oss.qualcomm.com>
[-- Attachment #1: Type: text/plain, Size: 1337 bytes --]
On Tue, Apr 15, 2025 at 12:10:06PM +0300, Dmitry Baryshkov wrote:
> On 14/04/2025 17:52, Maxime Ripard wrote:
> > Hi,
> >
> > On Mon, Apr 07, 2025 at 06:11:00PM +0300, Dmitry Baryshkov wrote:
> > > +/**
> > > + * struct drm_connector_cec - DRM Connector CEC-related structure
> > > + */
> > > +struct drm_connector_cec {
> > > + /**
> > > + * @mutex: protects all fields in this structure.
> > > + */
> > > + struct mutex mutex;
> > > +
> > > + /**
> > > + * @funcs: CEC Control Functions
> > > + */
> > > + const struct drm_connector_cec_funcs *funcs;
> > > +
> > > + /**
> > > + * @data: CEC implementation-specific data
> > > + */
> > > + void *data;
> >
> > Is there a reason we don't just skip that data? The only user I'm seeing
> > so far are the helpers, and they only put the cec_adapter pointer in
> > there.
> >
> > Can't we pass the connector to CEC and make the adapter part of drm_connector_cec?
>
> It will be either cec_notifier or cec_adapter +
> drm_connector_hdmi_cec_funcs. Initially I sketched a union here, but then I
> thought that a void pointer makes more sense. It allows us to make CEC data
> helper-specific. For example, cec-pin might store platform callbacks here.
> DP CEC might need to store AUX pointer, etc.
Ah I see, that makes sense.
Thanks!
Maxime
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 273 bytes --]
next prev parent reply other threads:[~2025-04-29 15:33 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-07 15:10 [PATCH v5 00/11] drm/display: generic HDMI CEC helpers Dmitry Baryshkov
2025-04-07 15:10 ` [PATCH v5 01/11] drm/bridge: move private data to the end of the struct Dmitry Baryshkov
2025-04-07 15:10 ` [PATCH v5 02/11] drm/bridge: allow limiting I2S formats Dmitry Baryshkov
2025-04-07 15:11 ` [PATCH v5 03/11] drm/connector: add CEC-related fields Dmitry Baryshkov
2025-04-14 14:52 ` Maxime Ripard
2025-04-15 9:10 ` Dmitry Baryshkov
2025-04-28 16:42 ` Dmitry Baryshkov
2025-04-29 15:33 ` Maxime Ripard [this message]
2025-04-07 15:11 ` [PATCH v5 04/11] drm/connector: unregister CEC data Dmitry Baryshkov
2025-04-14 14:44 ` Maxime Ripard
2025-04-14 14:47 ` Maxime Ripard
2025-04-15 9:03 ` Dmitry Baryshkov
2025-04-29 15:35 ` Maxime Ripard
2025-04-29 16:46 ` Dmitry Baryshkov
2025-04-07 15:11 ` [PATCH v5 05/11] drm/display: move CEC_CORE selection to DRM_DISPLAY_HELPER Dmitry Baryshkov
2025-04-14 14:36 ` Maxime Ripard
2025-04-07 15:11 ` [PATCH v5 06/11] drm/display: add CEC helpers code Dmitry Baryshkov
2025-04-14 14:58 ` Maxime Ripard
2025-04-15 16:01 ` Dmitry Baryshkov
2025-04-29 15:40 ` Maxime Ripard
2025-04-30 11:25 ` Jani Nikula
2025-04-07 15:11 ` [PATCH v5 07/11] drm/display: hdmi-state-helper: handle CEC physical address Dmitry Baryshkov
2025-04-07 15:11 ` [PATCH v5 08/11] drm/vc4: hdmi: switch to generic CEC helpers Dmitry Baryshkov
2025-04-14 14:41 ` Maxime Ripard
2025-04-15 9:04 ` Dmitry Baryshkov
2025-04-07 15:11 ` [PATCH v5 09/11] drm/display: bridge-connector: hook in CEC notifier support Dmitry Baryshkov
2025-04-14 14:59 ` Maxime Ripard
2025-04-07 15:11 ` [PATCH v5 10/11] drm/display: bridge-connector: handle CEC adapters Dmitry Baryshkov
2025-04-14 15:05 ` Maxime Ripard
2025-04-07 15:11 ` [PATCH v5 11/11] drm/bridge: adv7511: switch to the HDMI connector helpers Dmitry Baryshkov
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=20250429-rainbow-jumping-boar-dbbb3c@houat \
--to=mripard@kernel.org \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=dave.stevenson@raspberrypi.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=kernel-list@raspberrypi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lumag@kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mcanal@igalia.com \
--cc=neil.armstrong@linaro.org \
--cc=rfoss@kernel.org \
--cc=simona@ffwll.ch \
--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
Powered by JetHome