Received: by 10.192.165.156 with SMTP id m28csp981335imm; Wed, 18 Apr 2018 01:43:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+4JcOTodSbWKCQ77HLlzZ+B4pRCafWCYcf9eZoIa8o5DAZaUrkvpHnvFAMk/QeNbZtpoOc X-Received: by 10.101.78.145 with SMTP id b17mr1040988pgs.350.1524041009562; Wed, 18 Apr 2018 01:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524041009; cv=none; d=google.com; s=arc-20160816; b=tTRurQcI8FnmETdxkSp3wPVds5a9pWoa80cgQCXhQMy7g9RFIPPuM8Qnqau/PgJFn3 YxrjRAODkJXuENIS2gnlSTiIvfkFkNbSvXx59vjgarj6k4FFwgjWuJTktv2BE3P+F16G 7Bj+95AFr63TXl0hx96T+Do0XLvCZx0PxBJJh4N0/1NSu/lZfABm+mC3jOybYOZI1hOU PZoq9p+M3QYZTiqxKjDJvuzBRsiiiDADpqjh+kjVprgq27QOtgJ+h0LQi/xeSfCHIim+ rQXgO8UmgotYdDHU8O+/tM/w0y04IU/GLOX01O3arpz9SI1JKAfWzgfVuRjo0ciSPOe0 KWDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=g/qAvyPNJjAyEKMm4f0YAWBXRJfbe+lJGCxyoWg1I0M=; b=jl47aDSpPYidGNQ0zWgz6Jow9FvgYW0g0JpnUVGJpe4pE7rtdEJM6hit0uoWt/xLYq ynK7dY/Crpbi+hqvI8X7S0pHMAvx4VbuLVG11zdQlUCil0uIwETzsNZh6s3DxQLfbUY3 m8ktOe4fEPwPQSEKdfVdc/wk0aHSM8WQjnJ2VV5Vo3/b761q27Z9HLlMXPeuHktv2aTe zNd22TnyD5Eig2f6+TZnIWWYEwWs2ArZaFjH6X+SOR1EGhER7e2F8cM5O/q75eZY66lB oYbdh2rDXoTOihoBW+2J4mR+0J0gslRWeQulfwdeOyXwNjRgu/4TQph+0tsMZCB2F5Dc BCzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si715695pgc.166.2018.04.18.01.43.15; Wed, 18 Apr 2018 01:43:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753657AbeDRIld (ORCPT + 99 others); Wed, 18 Apr 2018 04:41:33 -0400 Received: from mail.bootlin.com ([62.4.15.54]:55668 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514AbeDRIlb (ORCPT ); Wed, 18 Apr 2018 04:41:31 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 68B4720861; Wed, 18 Apr 2018 10:41:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAmiens-652-1-190-101.w83-192.abo.wanadoo.fr [83.192.189.101]) by mail.bootlin.com (Postfix) with ESMTPSA id B82A620693; Wed, 18 Apr 2018 10:41:28 +0200 (CEST) Date: Wed, 18 Apr 2018 10:41:28 +0200 From: Boris Brezillon To: Peter Rosin Cc: linux-kernel@vger.kernel.org, David Airlie , Rob Herring , Mark Rutland , Nicolas Ferre , Alexandre Belloni , Boris Brezillon , Daniel Vetter , Gustavo Padovan , Sean Paul , Laurent Pinchart , Russell King - ARM Linux , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 5/6] drm/atmel-hlcdc: add support for connecting to tda998x HDMI encoder Message-ID: <20180418104128.6747ad47@bbrezillon> In-Reply-To: <0155b3cc-29ce-fa43-5588-b465c6ee064a@axentia.se> References: <20180417131052.16336-1-peda@axentia.se> <20180417131052.16336-6-peda@axentia.se> <20180418093649.2c304f29@bbrezillon> <0155b3cc-29ce-fa43-5588-b465c6ee064a@axentia.se> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Apr 2018 10:02:12 +0200 Peter Rosin wrote: > On 2018-04-18 09:36, Boris Brezillon wrote: > > On Tue, 17 Apr 2018 15:10:51 +0200 > > Peter Rosin wrote: > > > >> When the of-graph points to a tda998x-compatible HDMI encoder, register > >> as a component master and bind to the encoder/connector provided by > >> the tda998x driver. > > > > Can't we do the opposite: make the tda998x driver expose its devices as > > drm bridges. I'd rather not add another way to connect external > > encoders (or bridges) to display controller drivers, especially since, > > when I asked DRM maintainers/devs what was the good approach to > > represent such external encoders they pointed me to the drm_bridge > > interface. > > From the cover letter: > > "However, I don't know if the tilcdc driver is interfacing with the > tda998x driver in a sane and modern way" > > So, which way is the future? Should bridges become components or should > existing bridge-like components no longer be components? Are there others? Well, what I've been told a while ago is that drm_bridge will take over drm_encoder_slave and custom drm_encoder/drm_connector implementations when it comes to representing bridges. AFAIU, using the component framework to bind all elements of the pipeline to the display controller is orthogonal to how you represent elements in the pipeline. I mean, you could have a bridge that registers as a component so that display controllers drivers who want to use the component framework don't have to re-code the component-to-bridge glue every time, and those who don't use the component framework can still get access to the bridge.