Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2780568pxx; Sun, 1 Nov 2020 09:40:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMI5/yJd06F23VZSVMrv5EMmSonJDEHGaFS/p2RlLuxuyS760he4ogRHrKyaKiRY9cd2S8 X-Received: by 2002:a17:906:560f:: with SMTP id f15mr11501067ejq.553.1604252430944; Sun, 01 Nov 2020 09:40:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604252430; cv=none; d=google.com; s=arc-20160816; b=dk6kDWhixsh9RhzxX8hJghicShW8Bfe/WwfkW8oKdgzlfDzGd6Wv272XVGUGSLHKA3 yg35U/A7HV3nqg14DbxHSfOenWmaFcIepgCZPmrC1zQm2XDhXo+a9NnJ/6UfGLGbsLe8 xoUOO4yT4WhKjJrn8x5fbvhiF0SllJeKpofq9zuXYe3axV39h1likf8YhF2Spp93msN5 wzL/DDkZBMRpAI/6p9MS+dq36HuEs63QntzpSb3pXV+UBhcgDlhrvcTnYaBjjYybSe6M eubBm0AIyRPNXG0xRg8DmAGmjFh17sHuCBH9sNnVrLQ4DTen2pA/Ea/N9RCnrhHYda7r oByA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=WcO9DWsCRl5kTkOM1Y1VS7L/6yAGNPP/gYAWrgA/aq4=; b=jKzi7oiVzIaHlztBqNAyyXiTwMu2xdvd3LrXIxhl7q9MwFmduMpnb4a6Yup4v9NItd dUWkQTlz5O2l0xzI19v8RpemMg1KTsrJC1fP/uIdNpYvGx+oMFuRD1x/gDoXExLR6I74 hdIv/d2kCt2AcHSHH0w+Xgx6q1D15nm7nVRv/taPIQ9iBK4LSaXIkoA/EbQI25WMhHxr aYIVYbfFr9bue7ldJHjHNBwpvXIGDP6hzZAKT+hPOIWQJNce9hwIpdqFswYyk9sinw2/ pgS1WEoUwoHr8ADlMhPdXPJIl7xbiOQsVge+BLoC9MkAoohNegb1alXbGxR5+eJrEWZd i3FQ== 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 z22si5003302ejx.130.2020.11.01.09.40.05; Sun, 01 Nov 2020 09:40:30 -0800 (PST) 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 S1727119AbgKARhr (ORCPT + 99 others); Sun, 1 Nov 2020 12:37:47 -0500 Received: from asavdk4.altibox.net ([109.247.116.15]:37168 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727033AbgKARhq (ORCPT ); Sun, 1 Nov 2020 12:37:46 -0500 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 asavdk4.altibox.net (Postfix) with ESMTPS id BFF278048A; Sun, 1 Nov 2020 18:37:42 +0100 (CET) Date: Sun, 1 Nov 2020 18:37:41 +0100 From: Sam Ravnborg To: Stephen Boyd Cc: Andrzej Hajda , Neil Armstrong , Jernej Skrabec , Jonas Karlman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Douglas Anderson , Sean Paul , Laurent Pinchart Subject: Re: [PATCH v2 0/4] drm/bridge: ti-sn65dsi86: Support EDID reading Message-ID: <20201101173741.GA1293305@ravnborg.org> References: <20201030011738.2028313-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201030011738.2028313-1-swboyd@chromium.org> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=VafZwmh9 c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=7gkXJVJtAAAA:8 a=cm27Pg_UAAAA:8 a=P1BnusSwAAAA:8 a=RwHePtW7AAAA:8 a=e5mUnYsNAAAA:8 a=umv6ho0nhVORNbC8ZGUA:9 a=CjuIK1q_8ugA:10 a=E9Po1WZjFZOl8hwRPBS3:22 a=xmb-EsYY8bH0VWELuYED:22 a=D0XLA9XvdZm18NrgonBM:22 a=FqraQwd7dyEg5dwJgZJs:22 a=Vxmtnl_E_bksehYqCbjh:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen. On Thu, Oct 29, 2020 at 06:17:34PM -0700, Stephen Boyd wrote: > This patch series cleans up the DDC code a little bit so that > it is more efficient time wise and supports grabbing the EDID > of the eDP panel over the aux channel. I timed this on a board > I have on my desk and it takes about 20ms to grab the EDID out > of the panel and make sure it is valid. > > The first two patches seem less controversial so I stuck them at > the beginning. The third patch does the EDID reading and caches > it so we don't have to keep grabbing it over and over again. And > finally the last patch updates the reply field so that short > reads and nacks over the channel are reflected properly instead of > treating them as some sort of error that can't be discerned. > > Stephen Boyd (4): > drm/bridge: ti-sn65dsi86: Combine register accesses in > ti_sn_aux_transfer() > drm/bridge: ti-sn65dsi86: Make polling a busy loop > drm/bridge: ti-sn65dsi86: Read EDID blob over DDC > drm/bridge: ti-sn65dsi86: Update reply on aux failures Series looks good. You can add my a-b on the full series. Acked-by: Sam Ravnborg I can apply after Douglas have had a look at the patches he did not r-b yet. Any chance we can convince you to prepare this bridge driver for use in a chained bridge setup where the connector is created by the display driver and uses drm_bridge_funcs? First step wuld be to introduce the use of a panel_bridge. Then add get_edid to drm_bridge_funcs and maybe more helpers. Then natural final step would be to move connector creation to the display driver - see how other uses drm_bridge_connector_init() to do so - it is relatively simple. Should be doable - and reach out if you need some help. Sam > > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 108 ++++++++++++++++++-------- > 1 file changed, 75 insertions(+), 33 deletions(-) > > Cc: Douglas Anderson > Cc: Laurent Pinchart > Cc: Jonas Karlman > Cc: Jernej Skrabec > Cc: Sean Paul > > base-commit: 3650b228f83adda7e5ee532e2b90429c03f7b9ec > -- > Sent by a computer, using git, on the internet > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel