Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1429161ybz; Thu, 16 Apr 2020 09:01:09 -0700 (PDT) X-Google-Smtp-Source: APiQypIZUzgR3lk9Q4KVyyhDMp5Ye8KHIaK1iDDP8clooOfjnqf3ioYzCwlReU/pKDwDd4dI8aQ4 X-Received: by 2002:a50:c2c2:: with SMTP id u2mr30134297edf.140.1587052869128; Thu, 16 Apr 2020 09:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587052869; cv=none; d=google.com; s=arc-20160816; b=0XZGNaHf2oEwG+BiPGO2f6jcPZW42sN8LpbwxiWvJTRsKPpdRqZ0Yfebax6YTKwmfl D5FRiR63IdRxYPqiiGPT0DZl4rAgZEHqaYMBat/jJMdpPIRXCs8Qp3ozfSSYO/g+9QnB QRq/u3T91OFEuVKdveupL8HoDjRA0TcBMFaWVjikBPoebmyoy9pemwF+4IkFiDGymazF /92ENrtt9Mq4Pk3mECb1MXavtriUk4UYUvTqhHANvl+BvUDjFzzsezoZyK8bIHmXKHne vgR35Ncw6OhTaojuiG1Wwm9wLBDKEbkECVYZ5jXIWVrfFuAD2MIPcJ1uRNNT7mr4zJtG 9j1w== 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 :message-id:date:subject:cc:to:from; bh=3inWmlWdn2V4cEJcoLCQr7oB8fVPDZNKIh3Hp7IY2qc=; b=WF6RERgGBdHTjhIKiCYCYKlvoviTvphT7ii+1/oU6qAq7Ar6j4ZBz5JQxeLu6+u1sh KY1rR7u67Cjm4uEiRFotxJaPanI86fYlTq2vhPZKcPKQz3XqBiPzfi8fQ9IggkJGp81b MxurYYVh1mGd0gCrAfxH4qivb0r8GZu16L0wqPQdQrWhll0mOnn3ge62wWseu6EA/TTP 5d2SSabjhmgpbl4q0z7B8iSM9mep2ER6kRMWzpwErlfU2pPg/g5bYZVVrnWRRxL/ICJW 8qT8Pn6UQ1hLx02O3wLsRyBBCWMhgR4g7bk1fxj56NZ1qOw1QX10IFQWRqZVHBlqZJ1K od5w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a32si13217660ede.140.2020.04.16.09.00.40; Thu, 16 Apr 2020 09:01:09 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2442909AbgDPP6i (ORCPT + 99 others); Thu, 16 Apr 2020 11:58:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2442870AbgDPP53 (ORCPT ); Thu, 16 Apr 2020 11:57:29 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A67E9C061A0C for ; Thu, 16 Apr 2020 08:57:29 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 6D65F2A22A6 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, laurent.pinchart@ideasonboard.com, Andrzej Hajda , Chun-Kuang Hu , Daniel Vetter , David Airlie , Jernej Skrabec , Jonas Karlman , Laurent Pinchart , Maarten Lankhorst , Maxime Ripard , Neil Armstrong , Philipp Zabel , Thomas Zimmermann , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 0/7] Convert mtk-dsi to drm_bridge API and get EDID for ps8640 bridge Date: Thu, 16 Apr 2020 17:57:12 +0200 Message-Id: <20200416155720.2360443-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 drivers/gpu/drm/bridge/parade-ps8640.c | 12 ++ drivers/gpu/drm/drm_bridge_connector.c | 1 + drivers/gpu/drm/mediatek/mtk_dsi.c | 280 ++++++++----------------- 3 files changed, 101 insertions(+), 192 deletions(-) -- 2.25.1