Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2601663pxb; Sun, 17 Oct 2021 20:10:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwss5PAIl0uuYtr895On4auqyaGhW132CLjebx1yijjIyXZ0oJk9IDzutBj4YP8QMbj4Ngo X-Received: by 2002:a17:90a:6b4f:: with SMTP id x15mr44571171pjl.233.1634526659011; Sun, 17 Oct 2021 20:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634526659; cv=none; d=google.com; s=arc-20160816; b=jKJSx7EJMxHcdn1RFvWrEszI4CU41lMAQDmBLKOWjBhV2XpOGd+EII8UUdUnC1wq0H SmNTNnJVEGS+illPIQUDpmk+VVZzdovOTSCfjK8ZKs1U0IRkgVlzLfufjFTT5gy2m1lk 9cLINR2h05ptbEP1gxbwnDG+V9I5Ak4WbP3onKcUL7Fh+94FlFMizDC+GlSgEVAkHopO CtjZ1hAmRAgoPUHHK5VDjPfcnv4nF5tYLj8ryI94en6AbOzFVfhaG2CLHNWH6GtDu/3X 519Z8AV8zpWQCX1ksGEIVxFW0FQUACADRlcTck5bxO5FHPrhRrLW7zwInK9mkt8WclYx ddYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KEPuILzn8A/tb4FgOT0nL/Q0aVprlx+TzeMfH0xSkng=; b=piYrdKfqGeCmRaqCbIejJMbI1XcI5zljKHfV8+Eg41ZmpDtYTW3+GaCLtqaqjYW20s BmFsGvji7Q9vxdsSivCZGTYAFQTJtO+5grITl73F8SqSwfrc3IS04UWwL2vavYBD5edN 3yKRVrTYF28NXJsE3kHeutil9xPLrxcEw0H8ASvlNv/r6wWoJw1zLuYOoNZDvnoDvqca 49x/PLmYIAVlENXRmnTIQwTgSNvf0AkXv06mE6Nkti7XLxXg8QIzL6vEOWcSxyNSJuql k0YZ2Znaiku0RjBhY5FwCBQuAHcsx3UjvkUfTeSfTijZ+Hazg8vOb8o8kJDjOYi/734d tQqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=ItI+9yo9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si18888839pgp.521.2021.10.17.20.10.46; Sun, 17 Oct 2021 20:10:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=ItI+9yo9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238939AbhJOWJY (ORCPT + 98 others); Fri, 15 Oct 2021 18:09:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238929AbhJOWJX (ORCPT ); Fri, 15 Oct 2021 18:09:23 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60A27C061570 for ; Fri, 15 Oct 2021 15:07:16 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id a25so43356145edx.8 for ; Fri, 15 Oct 2021 15:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KEPuILzn8A/tb4FgOT0nL/Q0aVprlx+TzeMfH0xSkng=; b=ItI+9yo9glXHT4IvBd+1RhAfsc5PnfbvkeLAGL38PcdKsXZ0kscSOA0bux1h24L5AJ R9R923qh5I98RpB26cp7oC8SgLgt1VkEEMJ9v5mrRWLB1BeDwW6nscU9ilENcIYSxyFR l2TYYmwAaRLibcHsp/u7Xxl6vz6eI4BCJROzsYU+NAe8Dwf/SOSko4OM57bipfymsKl7 8LHRUcAlVr/YJb0tQpfu1BQjLPZM9X+9chhaob3Um5k9LGik3zZIiHquzNUWrpSIxi9o fYAHJ4eVoB+YkbDPLh5p/XlwO8l6U1zuZXxM05N13qkTxXFg0p1oGGvGUDgxLspsPxLx EwZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KEPuILzn8A/tb4FgOT0nL/Q0aVprlx+TzeMfH0xSkng=; b=yTfhMyVtQ2FjWijaX0CiXMIbnlPmQisUJf9WbMGmvQqRZOAyVQUx7Q6PyHtZxMlugj zHCK5Ykgg96QdnPjIFvck6Ua9JcBLpsRh+34I+kCUqpVxggP/tH2oSTVgdR5GKK66l2x Tj1F/9gFgY3NhqD3w4rcbQ8aa1rjUsIWSSAvCM8WejH4h8HXxLRZPimBfJ7VXHcfoBNs 5tFvpqlnkk7QsMPlitdFmoep4mquWT8WevqA6925SDjWzM6T3P+jQXlnGm4NFf5WKPP2 k+4aZ1i3zqk/QW38jbMwSY+sGtVd7GhAabOEjRAgeqOIqyr5CQtCTZ+mLI+DB/XAsi+e gPKg== X-Gm-Message-State: AOAM531vslNUWXO+/ERxpEOqJLyLmB8IG9AzsHYv0dacDeFIhD3+m7jV /288Ue7Mg7bA8IqRSj+TWcx3edEIQCo0YwpANt2od1kX89E= X-Received: by 2002:aa7:cb41:: with SMTP id w1mr21546574edt.327.1634335634903; Fri, 15 Oct 2021 15:07:14 -0700 (PDT) MIME-Version: 1.0 References: <20211015141107.2430800-1-narmstrong@baylibre.com> <20211015141107.2430800-5-narmstrong@baylibre.com> In-Reply-To: <20211015141107.2430800-5-narmstrong@baylibre.com> From: Martin Blumenstingl Date: Sat, 16 Oct 2021 00:07:04 +0200 Message-ID: Subject: Re: [PATCH v2 4/6] drm/meson: encoder_hdmi: switch to bridge DRM_BRIDGE_ATTACH_NO_CONNECTOR To: Neil Armstrong Cc: daniel@ffwll.ch, Laurent.pinchart@ideasonboard.com, sam@ravnborg.org, dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Neil, On Fri, Oct 15, 2021 at 4:11 PM Neil Armstrong wrote: > > This implements the necessary change to no more use the embedded > connector in dw-hdmi and use the dedicated bridge connector driver > by passing DRM_BRIDGE_ATTACH_NO_CONNECTOR to the bridge attach call. > > The necessary connector properties are added to handle the same > functionalities as the embedded dw-hdmi connector, i.e. the HDR > metadata, the CEC notifier & other flags. > > The dw-hdmi output_port is set to 1 in order to look for a connector > next bridge in order to get DRM_BRIDGE_ATTACH_NO_CONNECTOR working. > > Signed-off-by: Neil Armstrong > Acked-by: Sam Ravnborg another great piece which helps a lot with HDMI support for the 32-bit SoCs! I have one question below - but regardless of the answer there this gets my: Acked-by: Martin Blumenstingl [...] > + pdev = of_find_device_by_node(remote); I am wondering if we should use something like: encoder_hdmi->cec_notifier_pdev > + if (pdev) { > + struct cec_connector_info conn_info; > + struct cec_notifier *notifier; > + > + cec_fill_conn_info_from_drm(&conn_info, meson_encoder_hdmi->connector); > + > + notifier = cec_notifier_conn_register(&pdev->dev, NULL, &conn_info); > + if (!notifier) > + return -ENOMEM; > + > + meson_encoder_hdmi->cec_notifier = notifier; > + } and then move this logic to meson_encoder_hdmi_attach() This would be important if .detach() and .attach() can be called multiple times (for example during suspend and resume). But I am not sure if that's a supported use-case. Best regards, Martin