Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1263581ybh; Thu, 23 Jul 2020 04:41:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/xG/drj1Sg5bysQv09X03CTnyIZROQE3UfLJBEW1OwGnJv3drbt71yy7ZsRDXt+NPplaH X-Received: by 2002:a17:906:b08:: with SMTP id u8mr2173821ejg.401.1595504513630; Thu, 23 Jul 2020 04:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595504513; cv=none; d=google.com; s=arc-20160816; b=PvbftRnSXQN3whm5F0ByuyypyOVsl9egzmW1Kgl3H7LOTXUOxJQofTiLamZnxh2CaH lYp+HaNA2OHa2tMz9ZNXuBJn0mVmL15tjxeYHvn1tJRGlXAU9SPoF7JVtBTAAAzCLK7x JtVb4wQpiynRREl0VyoCem3u7GY6JFcEXdsmZ2RAlhyqcpKk8fF7QAqA+kzvARisurzT SfCqaPbcDCMao2wRCJENh/qMu7j1x7LJm5QkJuBojCtQJzFEbG1q0VuhyoaZJXy9DI5o AeBq+giNmKakYxqbuPdL+Yg68MoAQs7Le+Wgu1QVD5tkU1pU76mXWDfAjrMpATmrIT9n DStQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=xMtj9P7Nfiyyz4IZRSalqz7xX9bPg+O+qHtTdjGhG/Q=; b=YTmfArn18+eBeQO4CC9/SpEWZa/YVOA4pFCIh2iLXAOjw5du1XL4Ynv9UebrRoaeJj 5bVoOmGF0HrfVSUSky/6wrmuvjvKQXwnquFzpTLkJ7MN9YqrxnxVuN3rqrBYOt1lg3Lv YZyPWKHJb04ueOmYfIDSFyXw5R1SffYufyOHIDmIex42g5LvLmYG81pZ6XsH9BbJMXzs MNsW35kBJw+E8jJ5vlg7h4zwWV4G2jXfnxee9tWMBXz6ar1SS/uCIXJD7hmlxyhXKQRZ Jybiu3nAv+v6pWK0vOaJszgu39zZnykOKdD35CCZV+C9pdTONF09sEAjxzqeGC9JfaYS MH/w== ARC-Authentication-Results: i=1; mx.google.com; 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 of23si1735898ejb.414.2020.07.23.04.41.31; Thu, 23 Jul 2020 04:41:53 -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; 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 S1728306AbgGWLjW (ORCPT + 99 others); Thu, 23 Jul 2020 07:39:22 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:50804 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725846AbgGWLjW (ORCPT ); Thu, 23 Jul 2020 07:39:22 -0400 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 8E93320053; Thu, 23 Jul 2020 13:39:14 +0200 (CEST) Date: Thu, 23 Jul 2020 13:39:12 +0200 From: Sam Ravnborg To: Vinod Koul Cc: Laurent Pinchart , Daniel Vetter , David Airlie , Rob Clark , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Andrzej Hajda , Neil Armstrong , Jonas Karlman , Jernej Skrabec , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Emil Velikov , Srinivas Kandagatla , John Stultz Subject: Re: [PATCH v5 3/4] drm/bridge: Introduce LT9611 DSI to HDMI bridge Message-ID: <20200723113912.GA535520@ravnborg.org> References: <20200708103559.132300-1-vkoul@kernel.org> <20200708103559.132300-4-vkoul@kernel.org> <20200719171806.GA55541@ravnborg.org> <20200722131430.GJ5833@pendragon.ideasonboard.com> <20200723104151.GY12965@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200723104151.GY12965@vkoul-mobl> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=f+hm+t6M c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=MEg9e8l0tn4fy5IhjskA:9 a=CjuIK1q_8ugA:10 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 23, 2020 at 04:11:51PM +0530, Vinod Koul wrote: > Hi Sam, Laurent, > > On 22-07-20, 16:14, Laurent Pinchart wrote: > > > > +static int lt9611_bridge_attach(struct drm_bridge *bridge, > > > > + enum drm_bridge_attach_flags flags) > > > > +{ > > > > + struct lt9611 *lt9611 = bridge_to_lt9611(bridge); > > > > + int ret; > > > > + > > > > + if (!(flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR)) { > > > > + dev_err(lt9611->dev, "Fix bridge driver to make connector optional!"); > > > > + return -EINVAL; > > > > + } > > > > > > This should say that the display driver should be fixed. > > > If a display driver expects this bridge to create the connector > > > it would not work. > > > > Actually, for new bridge drivers, connector creation should be optional > > from the start. We don't want a failure in that case, the feature should > > be implemented. > > Yes this is causing issues for me now !. The patch 4/4 adds support in > msm/dsi but causes regression on qualcomm laptops with ti-sn65dsi86 eDP > bridge. I tried to fix that up with changes like Laurent has done for > adv7511, but it hasnt worked yet for me (remote debug of this is bit > painful) > > So I am going to drop patch 4 from this series and add support for both > DRM_BRIDGE_ATTACH_NO_CONNECTOR set and cleared (like we have in adv7511) > so that it can work in both cases, while I fix all bridge uses of > msm/dsi and then we can drop these. Does that sound okay to you folks? Yes, sounds like a good plan. Only when all display drivers are migrated over can we drop all the workarounds in the bridge drivers. I had hoped all users of this bridge was converted - alas that was not the case. Sam