From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756646AbdELISB (ORCPT ); Fri, 12 May 2017 04:18:01 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:49678 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750713AbdELIR6 (ORCPT ); Fri, 12 May 2017 04:17:58 -0400 Date: Fri, 12 May 2017 10:17:46 +0200 From: Boris Brezillon To: Eric Anholt Cc: dri-devel@lists.freedesktop.org, Archit Taneja , Andrzej Hajda , Laurent Pinchart , CK Hu , Philipp Zabel , Yannick Fertre , Philippe Cornu , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 5/7] drm/ltdc: Use the panel-bridge helper. Message-ID: <20170512101746.17805ef8@bbrezillon> In-Reply-To: <20170511183128.25085-5-eric@anholt.net> References: <20170511183128.25085-1-eric@anholt.net> <20170511183128.25085-5-eric@anholt.net> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 11 May 2017 11:31:26 -0700 Eric Anholt wrote: > Another 100 lines of boilerplate gone. Bridges aren't supported yet, > but will be trivial to add later. > > Signed-off-by: Eric Anholt > --- > [...] > @@ -1082,28 +993,13 @@ int ltdc_load(struct drm_device *ddev) > > DRM_INFO("ltdc hw version 0x%08x - ready\n", ldev->caps.hw_version); > > - if (ldev->panel) { > + if (ldev->bridge) { > encoder = ltdc_rgb_encoder_create(ddev); > if (!encoder) { > DRM_ERROR("Failed to create RGB encoder\n"); > ret = -EINVAL; > goto err; > } You should have a call to drm_bridge_attach() somewhere, otherwise your panel (and its connector) will not be registered. > - > - connector = ltdc_rgb_connector_create(ddev); > - if (!connector) { > - DRM_ERROR("Failed to create RGB connector\n"); > - ret = -EINVAL; > - goto err; > - } > - > - ret = drm_mode_connector_attach_encoder(connector, encoder); > - if (ret) { > - DRM_ERROR("Failed to attach connector to encoder\n"); > - goto err; > - } > - > - drm_panel_attach(ldev->panel, connector); > } >