Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3433516pxb; Tue, 20 Apr 2021 08:14:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0d2XEu9N8Ai5PVFk0nkKLRuVCbMUd13OElSBhfnEockOsyVn9g821o9wl8tO7CcDHH5Wy X-Received: by 2002:a63:a64:: with SMTP id z36mr17385746pgk.342.1618931653867; Tue, 20 Apr 2021 08:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618931653; cv=none; d=google.com; s=arc-20160816; b=kbAj/q0tqEiY1kbH67Lsy1qdZW1do/R0os7oOMNVqaeHsjQhT/kVzWo3TaJnTk0E0b l80sO8SFRgap4DFsdhUtlhYsfG9jkukuBs/BmD6X0akKIGdmoCitVaqYp8DCjVJQxZwu PVWCM4McZP+4HjfSv3GbdG1J9qdjiz6tyxMSbHq7Q4yR9qeDdgKQeGMNkOBGKPkJj6yi PLkgdPNH12DZyYiFCuX2zcN8WXUAMRA7mNYYG/lXOGL51V5beu73OYKKzC7pRGK0kS4u /rDdQbCvXWUJDAdI2UvdHgq0nJ09pFOV5gwksBwifsg1A2fxAeK0KAtcXCHsyVEhmY89 wZjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=3C0exdyZaQiSGldksQpZfnPH4H6n3fld0R4rJ3LKuto=; b=aF/Bc5Jn7KDWXlsTZO/sbSLcBhT+CZjnA7QHjV4+V7dNjR9w/Qsubq6sYw9W/ReHaC 3m8OfC2s/Bj6gfwwpxai2bbudRswLqozseSo71UzN+ElcyTt8KxfAWuUTv4ToaWEvF5c EtyL1Khr9/Xv+2mO1E+Pk7CXIxP9M6j84rJ0B/9gR4f1i2uOOWHT0EWxN0/L2U908PlH OMgST4uz6VyeITnoDX0qNHYrXaUalCXOP39A3R82N6yDrRv/j6XkTVocmYI2tjt+La70 iIW8KfsEEW8zMsxf+qnQpbviy1kkO8sDLh9HXsKomPSV/OhGiKUTT+y0crGJAZosNy3T 8mvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s2 header.b=faFGkgmY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j8si21119569pfr.23.2021.04.20.08.14.00; Tue, 20 Apr 2021 08:14:13 -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=@xs4all.nl header.s=s2 header.b=faFGkgmY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232627AbhDTPN7 (ORCPT + 99 others); Tue, 20 Apr 2021 11:13:59 -0400 Received: from lb1-smtp-cloud8.xs4all.net ([194.109.24.21]:54893 "EHLO lb1-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230260AbhDTPN4 (ORCPT ); Tue, 20 Apr 2021 11:13:56 -0400 Received: from cust-b5b5937f ([IPv6:fc0c:c16d:66b8:757f:c639:739b:9d66:799d]) by smtp-cloud8.xs4all.net with ESMTPA id Ys3vl5TJaXsivYs3ylst79; Tue, 20 Apr 2021 17:13:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s2; t=1618931603; bh=3C0exdyZaQiSGldksQpZfnPH4H6n3fld0R4rJ3LKuto=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=faFGkgmY+B8OeIIURy0DFsuAbHMupaVe/9aNrM6VvIbe/W57NLoMWWSMESk5QY8Mv n6tLBR4pyo0o91lIGrn6sNl2wmwznlxE830j3WOD2ZfPootYrQ6IRQKP/VtAIl1ytH tLKU4eu62zu42AMFf8fe6XzdBOyF+afxCtaDmzt/mlWZJJWLnOEY1rUWO4QNtp4Mec npKbjyUmVTp0Hp3A15qu/8EDhxNQ5DFdXCP92YdkBt/lBhWs/fAwbLxE/9NyyPADYl MdiH7nRqCaGbMTQ/QfFG1OD+JyUnocoiNtNTkk4/9F0bsfYjzjysfhBmP+JidXVYI8 rRKYhktmGtP0A== Subject: Re: [PATCH 0/2] drm/bridge: dw-hdmi: disable loading of DW-HDMI CEC sub-driver To: Neil Armstrong , Laurent Pinchart Cc: jernej.skrabec@siol.net, jonas@kwiboo.se, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, robert.foss@linaro.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org References: <20210416092737.1971876-1-narmstrong@baylibre.com> <96b9e144-0791-4c19-3e3c-b0e9efb86138@baylibre.com> From: Hans Verkuil Message-ID: Date: Tue, 20 Apr 2021 17:13:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <96b9e144-0791-4c19-3e3c-b0e9efb86138@baylibre.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfDW8hEuWfrPrGvMc0olaEqO/1NZZ2yQB6WunaYVqq8MMrH5Sc3f2aTH42A3BAjZZ79UDFNJG6FEQbmiNEveAXU3jrDh9BPb7rKQsNBZlxBJ8G9LkTDpz qxD/6CMKaS6Mod/qRe9vKOOIJ0qV7CLLV9nRS4hIecITZIXQXzbDAlVTCwWTqHMCorEplxuE+o/YBuut6nfaMaa3Ijr5cKzPw6kVDFlBvZNyPxmRhGZQxrDD lbnmm4/1h7S6WfPi9kBv4XRwTHRmUUsfEvn1n1x31yag5ccdCETr3Mu11F844QoH7Hz9pZ9wJL57yz6y41Ka0ZRq+bj2Wspex/50krDYACnhAjPyU5Urmtjo +lusK7ss2EGSSUnMMynnA9PjXZfNZZo1Y8DpEMmCV6OVxRhhWm2kwStujrbXHcMLFNrrLNmvGJgJIAnhdi9X54VlwkATGdoQUB7XzhATvxXrj2qFPLhowZCr VTzjeVy+XJaKyFVHeN2b+67qyM+FfTCKZWdvDaO7ypk6d4e2gqPC34T4vMA= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/04/2021 13:38, Neil Armstrong wrote: > On 16/04/2021 11:58, Laurent Pinchart wrote: >> Hi Neil, >> >> On Fri, Apr 16, 2021 at 11:27:35AM +0200, Neil Armstrong wrote: >>> This adds DW-HDMI driver a glue option to disable loading of the CEC sub-driver. >>> >>> On some SoCs, the CEC functionality is enabled in the IP config bits, but the >>> CEC bus is non-functional like on Amlogic SoCs, where the CEC config bit is set >>> but the DW-HDMI CEC signal is not connected to a physical pin, leading to some >>> confusion when the DW-HDMI CEC controller can't communicate on the bus. >> >> If we can't trust the CEC config bit, would it be better to not use it >> at all, and instead let each platform glue logic tell whether to enable >> CEC or not ? > > Actually, the CEC config bit is right, the HW exists and should be functional, but > this bit doesn't tell if the CEC signal is connected to something. > > This lies in the IP integration, like other bits under the "amlogic,meson-*-dw-hdmi" > umbrella. > > The first attempt was by Hans using DT, but adding a property in DT for a vendor > specific compatible doesn't make sense. Another idea would be to describe the > CEC signal endpoint like we do for video signal, but I think this is out of scope and > this solution is much simpler and straightforward, and it's more an exception than > a general use case to solve. While a DT property might not make sense in this particular case, I still believe that it is a perfectly valid approach in general: whether or not the CEC pin is connected is at the hardware level decision, it is not something that software can detect. If the designer of the board didn't connect it, then the only place you can define that is in the device tree. Anyway, for meson I am fine with this solution. At least it prevents creating a non-functioning cec device. So for this series: Acked-by: Hans Verkuil Regards, Hans > > Neil > >> >>> Jernej Skrabec (1): >>> drm/bridge/synopsys: dw-hdmi: Add an option to suppress loading CEC >>> driver >>> >>> Neil Armstrong (1): >>> drm/meson: dw-hdmi: disable DW-HDMI CEC sub-driver >>> >>> drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 2 +- >>> drivers/gpu/drm/meson/meson_dw_hdmi.c | 1 + >>> include/drm/bridge/dw_hdmi.h | 2 ++ >>> 3 files changed, 4 insertions(+), 1 deletion(-) >>> >> > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel >