mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Neil Armstrong <neil.armstrong@linaro.org>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
	Maxime Ripard <mripard@kernel.org>
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>,
	"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
Subject: Re: [PATCH v3 08/10] drm/display: bridge-connector: handle CEC adapters
Date: Wed, 29 Jan 2025 17:44:31 +0100	[thread overview]
Message-ID: <c676ef1a-3b08-4342-b4da-d0b525f2f55b@linaro.org> (raw)
In-Reply-To: <qe7cm52nozxvawm6yjzbvfarwoiokpwkr26s66tkypgrsztc7t@vnzbek6i4qhr>

On 29/01/2025 00:44, Dmitry Baryshkov wrote:
> On Tue, Jan 28, 2025 at 05:14:06PM +0100, Maxime Ripard wrote:
>> On Sun, Jan 26, 2025 at 03:29:13PM +0200, Dmitry Baryshkov wrote:
>>>   /* -----------------------------------------------------------------------------
>>>    * Bridge Connector Initialisation
>>>    */
>>> @@ -633,6 +711,21 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
>>>   			if (ret)
>>>   				return ERR_PTR(ret);
>>>   		}
>>> +
>>> +		if (bridge->hdmi_cec_adapter_name) {
>>> +			if (!bridge->funcs->hdmi_cec_enable ||
>>> +			    !bridge->funcs->hdmi_cec_log_addr ||
>>> +			    !bridge->funcs->hdmi_cec_transmit)
>>> +				return ERR_PTR(-EINVAL);
>>> +
>>> +			ret = drm_connector_hdmi_cec_register(connector,
>>> +							      &drm_bridge_connector_hdmi_cec_ops,
>>> +							      bridge->hdmi_cec_adapter_name,
>>> +							      bridge->hdmi_cec_available_las,
>>> +							      bridge->hdmi_dev);
>>> +			if (ret)
>>> +				return ERR_PTR(ret);
>>> +		}
>>
>> Maybe we can use a different bridge feature flag to trigger the CEC code
>> support instead?
> 
> it is possible, but what is the possible usecase? DP drivers should be
> using DP_AUX CEC instead. And I think there are no other kinds of
> bridges which implement CEC support. Meson driver does something strange
> by registering CEC notifier from meson_encoder_hdmi. I think instead
> this should be moved to the DW HDMI bridge itself
> 

It was done before bridge_connector has any support for CEC to keep the
functionnality, I'll be happy to switch to this.

Neil

  reply	other threads:[~2025-01-29 16:44 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-26 13:29 [PATCH v3 00/10] drm/display: generic HDMI CEC helpers Dmitry Baryshkov
2025-01-26 13:29 ` [PATCH v3 01/10] drm/connector: add CEC-related fields Dmitry Baryshkov
2025-01-28 10:33   ` Maxime Ripard
2025-01-28 13:12     ` Dmitry Baryshkov
2025-02-05 14:28       ` Maxime Ripard
2025-02-06  3:08         ` Dmitry Baryshkov
2025-01-26 13:29 ` [PATCH v3 02/10] drm/display: add CEC helpers code Dmitry Baryshkov
2025-01-28 10:36   ` Maxime Ripard
2025-01-28 12:17     ` Dmitry Baryshkov
2025-02-05 14:27       ` Maxime Ripard
2025-02-05 15:01         ` Dmitry Baryshkov
2025-02-19  9:19           ` Maxime Ripard
2025-01-26 13:29 ` [PATCH v3 03/10] drm/display: hdmi-state-helper: handle CEC physical address Dmitry Baryshkov
2025-01-26 14:10   ` Dmitry Baryshkov
2025-01-28 10:29   ` Maxime Ripard
2025-01-26 13:29 ` [PATCH v3 04/10] drm/vc4: hdmi: switch to generic CEC helpers Dmitry Baryshkov
2025-01-26 13:29 ` [PATCH v3 05/10] drm/display: bridge-connector: hook in CEC notifier support Dmitry Baryshkov
2025-01-28 16:14   ` Maxime Ripard
2025-01-28 21:47     ` Dmitry Baryshkov
2025-01-26 13:29 ` [PATCH v3 06/10] drm/bridge: move private data to the end of the struct Dmitry Baryshkov
2025-01-28 16:08   ` Maxime Ripard
2025-01-26 13:29 ` [PATCH v3 07/10] drm/display: hdmi-cec-helper: add bridge-related functions Dmitry Baryshkov
2025-01-26 13:29 ` [PATCH v3 08/10] drm/display: bridge-connector: handle CEC adapters Dmitry Baryshkov
2025-01-28 16:14   ` Maxime Ripard
2025-01-28 23:44     ` Dmitry Baryshkov
2025-01-29 16:44       ` Neil Armstrong [this message]
2025-01-29 18:32         ` Dmitry Baryshkov
2025-01-26 13:29 ` [PATCH v3 09/10] drm/bridge: allow limiting I2S formats Dmitry Baryshkov
2025-01-28 16:11   ` Maxime Ripard
2025-01-28 23:45     ` Dmitry Baryshkov
2025-02-05 14:29       ` Maxime Ripard
2025-01-26 13:29 ` [PATCH v3 10/10] 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=c676ef1a-3b08-4342-b4da-d0b525f2f55b@linaro.org \
    --to=neil.armstrong@linaro.org \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=airlied@gmail.com \
    --cc=andrzej.hajda@intel.com \
    --cc=dave.stevenson@raspberrypi.com \
    --cc=dmitry.baryshkov@linaro.org \
    --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=maarten.lankhorst@linux.intel.com \
    --cc=mcanal@igalia.com \
    --cc=mripard@kernel.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

all inboxes | Powered by JetHome®