Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1078629ybz; Sat, 25 Apr 2020 10:29:01 -0700 (PDT) X-Google-Smtp-Source: APiQypJFzrwAKn+kyIe0EImf2e800cK6lmO4Vl3MpVIiAQeIKGn+MhWo6UpmNkHOYVh5gHtCtfWl X-Received: by 2002:a17:906:7804:: with SMTP id u4mr12894430ejm.328.1587835741650; Sat, 25 Apr 2020 10:29:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587835741; cv=none; d=google.com; s=arc-20160816; b=UQYJ+8L2mqBeChl5mtNZfSh2DBoNAOLfK8veda8P5va10mmYy+rYBVP/ropLaiCW5f imj1R8wXZCyB1GsDgOuTNq8yFJBPa8J01reEWV2k6OMyOnpYCPTxAfyp/JsH8DNQB4HS weDNxoHX8zn/+inuCORLNBPNoFHBTz/cZvf+VanXRp60GiCuPiPu8EL63YHlc9VIVtzT yqdf12nQsHMfB9/z+l5eorWovsNyi3m/7I/l6D8khGk8SfTOfEJIR6I5hMu4+zY3U57F gQfI426OaYG0OYeCtDjZ2ZkZqfV8ndvcixoaO7AOFdjqx/4EuYEzRylFeJhzN/6s02iM 4FxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tW0GHS0FpunZnbzNIVo0/dSaN/znHlFWtLlg9/Eq28I=; b=nl/N2Pna8cUdX+xHQH3d6KQHhfvOCufqktr5EibF0gLS06fuaJbcF4h18lPAELLsEf pSTD74GcQz7eruaoMC7HlTmmUfQIDTIf/iF+88buDPlvzFDj/nGwO9o8famPQQZ03n1a 698Pi0BwKHyeURoZlyxXHwu2chc56BBbhGhe1Qcjg3cEC1PPjsPMAvODvUjmd+i36LXe g2mXVVcrZ3sVHV2WKKSqo9O9NFbiSP4n7VN8Bq3oLM34lGoKdGdDOZHr2dgWQ6Bv1dq2 kpTmB0UNnXNEbI/AVOd7neQj9r1yRTOAMcg8AQmD6R/jbMKH6JLWLe++L1WIZ2jZbbjK IAlA== 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 v11si5269676edy.483.2020.04.25.10.28.17; Sat, 25 Apr 2020 10:29:01 -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 S1726208AbgDYRXp (ORCPT + 99 others); Sat, 25 Apr 2020 13:23:45 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:45892 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726145AbgDYRXo (ORCPT ); Sat, 25 Apr 2020 13:23:44 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (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 AFB6C804B9; Sat, 25 Apr 2020 19:23:40 +0200 (CEST) Date: Sat, 25 Apr 2020 19:23:34 +0200 From: Sam Ravnborg To: Enric Balletbo i Serra , Chun-Kuang Hu , Philipp Zabel Cc: linux-kernel@vger.kernel.org, Collabora Kernel ML , Chun-Kuang Hu , Jernej Skrabec , drinkcat@chromium.org, Jonas Karlman , David Airlie , Thomas Zimmermann , dri-devel@lists.freedesktop.org, Neil Armstrong , Andrzej Hajda , linux-mediatek@lists.infradead.org, Laurent Pinchart , hsinyi@chromium.org, matthias.bgg@gmail.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 0/7] Convert mtk-dsi to drm_bridge API and get EDID for ps8640 bridge Message-ID: <20200425172334.GA30970@ravnborg.org> References: <20200417150614.2631786-1-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200417150614.2631786-1-enric.balletbo@collabora.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=MOBOZvRl c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=kj9zAlcOel0A:10 a=VwQbUJbxAAAA:8 a=cm27Pg_UAAAA:8 a=D19gQVrFAAAA:8 a=7gkXJVJtAAAA:8 a=e5mUnYsNAAAA:8 a=C1xfsh8iGGs-51XnUgAA:9 a=CjuIK1q_8ugA:10 a=AjGcO6oz07-iQ99wixmX:22 a=xmb-EsYY8bH0VWELuYED:22 a=W4TVW4IDbPiebHqcZpNg:22 a=E9Po1WZjFZOl8hwRPBS3:22 a=Vxmtnl_E_bksehYqCbjh:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 17, 2020 at 05:06:07PM +0200, Enric Balletbo i Serra wrote: > The PS8640 dsi-to-eDP bridge driver is using the panel bridge API, > however, not all the components in the chain have been ported to the > drm_bridge API. Actually, when a panel is attached the default panel's mode > is used, but in some cases we can't get display up if mode getting from > eDP control EDID is not chosen. > > This series address that problem, first implements the .get_edid() > callback in the PS8640 driver (which is not used until the conversion is > done) and then, converts the Mediatek DSI driver to use the drm_bridge > API. > > As far as I know, we're the only users of the mediatek dsi driver in > mainline, so should be safe to switch to the new chain of drm_bridge API > unconditionally. > > The patches has been tested on a Acer Chromebook R13 (Elm) running a > Chrome OS userspace and checking that the valid EDID mode reported by > the bridge is selected. > > [1] https://lore.kernel.org/lkml/20200210063523.133333-1-hsinyi@chromium.org/ > > Changes in v3: > - Replace s/bridge/next bridge/ for comment. (Laurent Pinchart) > - Add the bridge.type. (Laurent Pinchart) > - Use next_bridge field to store the panel bridge. (Laurent Pinchart) > - Add the bridge.type field. (Laurent Pinchart) > - This patch requires https://lkml.org/lkml/2020/4/16/2080 to work > properly. This patch is now applied to drm-misc-next. IMO this patchset could go in now. > - Move the bridge.type line to the patch that adds drm_bridge support. (Laurent Pinchart) > > Changes in v2: > - Do not set connector_type for panel here. (Sam Ravnborg) > > Enric Balletbo i Serra (7): > drm/bridge: ps8640: Get the EDID from eDP control > drm/bridge_connector: Set default status connected for eDP connectors > drm/mediatek: mtk_dsi: Rename bridge to next_bridge > drm/mediatek: mtk_dsi: Convert to bridge driver > drm/mediatek: mtk_dsi: Use simple encoder > drm/mediatek: mtk_dsi: Use the drm_panel_bridge API > drm/mediatek: mtk_dsi: Create connector for bridges All patches: Acked-by: Sam Ravnborg > > drivers/gpu/drm/bridge/parade-ps8640.c | 12 ++ > drivers/gpu/drm/drm_bridge_connector.c | 1 + > drivers/gpu/drm/mediatek/mtk_dsi.c | 276 ++++++++----------------- > 3 files changed, 96 insertions(+), 193 deletions(-) > > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel