From patchwork Sun Feb 14 19:40:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12087411 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12203C433E0 for ; Sun, 14 Feb 2021 19:42:55 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC03D64DD8 for ; Sun, 14 Feb 2021 19:42:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC03D64DD8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=zK46M3jDc06aFGJgZIyrL3oe2sg2IZKJSlO9pK8sm1U=; b=qEYM2JMZ6OPBcJy4nhnmIHGejq h+AVp5JJ2fvO0tA4kltBk+OqAbmIGs6T+ZAGhyK5Co5XJJ5tuMihCwG6qKZqMjbVywLnt3sJmJtvP EuilHDIElQ2VRBh1kIfhQPa5Zk0zT29G5qta1q/dIoA6qSs5HP9ES1/PEGS3MNekvS4YA/Ip+dmbJ 7nzNM6MQrlSZd3isDs5XxnhL00b7s0Lqo8PryH/G2TvvJmFUENOgN5dmnVpi06wTEiSV4AF193Ibs nXHtC3Y9xPTWLpQl2QF/ZCw2YNifPQErwHdVBkriuYelReKgEq/QfSJpF7Le/sQzYgPFhmLtoEZuB cJmxpeVQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBNGp-0003qg-Da; Sun, 14 Feb 2021 19:41:27 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBNGm-0003pa-B8 for linux-arm-kernel@lists.infradead.org; Sun, 14 Feb 2021 19:41:25 +0000 Received: by mail-pl1-x635.google.com with SMTP id ba1so2561083plb.1 for ; Sun, 14 Feb 2021 11:41:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OEU9K8O8lr+3rHXwRQA55P8y6nBOsd6z61f8CIpxwRw=; b=F0Qgyf6v2tiZz7YJnxvZ8eJHpLZZL5anVhqVpyWbyWbL0II9dBc6u/HvOM2jr5iVe6 72nvcuVeFokurb2dJiyhOkaW/kZ/Hz2ZMBlVZ5MY5Vn9AELfyVaA3bXomHFZdVTCZjEF hnwLFmiIHcOEXarki46T+SdiRs3IcxQXk2ILA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OEU9K8O8lr+3rHXwRQA55P8y6nBOsd6z61f8CIpxwRw=; b=hWhZzrHUy6O+mXLRyJYSQ7Gz19Qufb3cdf7eF16qS+496JQZYlU/KOUAsB8jYPLKxG iEReUBohl3R9GOdplhe83Gegl6Wn/QfRTWiQVyB8SuObpTNLQSr3ChotXKrAChLKB92M h6jP9lyyvECB7/AQFwT0v6WOANdFxshPN/ZeC7Q3fg5CQThUBSacMAeVQjQ+tjwZqdZN ZmnRxxTuHppBuctJCOGQzm3oQFPkrdBtHgNq2IfvZpQ+6FuJv6+qo7jbpIWPUbuuD3LK c/k4ljpu/vpkE7C4wCFiTwsDBUG3Dsb6hGNyvzXbLKaqG+nAi7Nl597WduRCjG/l/RuW TWlQ== X-Gm-Message-State: AOAM531yVfkQx6GO2r9TK+XV8qdIPs+KVIgs5KncktAzRyqcuQzB9UCE wAEMUn5fTyMHy/g2t2u1b7vToA== X-Google-Smtp-Source: ABdhPJzuRDJWAxPCuSeDZkNIGM/J3GwrRrwVFw+NjiOftQtrJh5oLckq92dQmblysU6ylnUPSswJKA== X-Received: by 2002:a17:90a:dc82:: with SMTP id j2mr1522625pjv.99.1613331678340; Sun, 14 Feb 2021 11:41:18 -0800 (PST) Received: from ub-XPS-13-9350.domain.name ([45.249.78.214]) by smtp.gmail.com with ESMTPSA id 125sm15129247pfu.7.2021.02.14.11.41.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Feb 2021 11:41:17 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Laurent Pinchart Subject: [PATCH v3 0/7] drm: sun4i: dsi: Convert drm bridge Date: Mon, 15 Feb 2021 01:10:55 +0530 Message-Id: <20210214194102.126146-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210214_144124_551735_DE6094BF X-CRM114-Status: GOOD ( 11.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jagan Teki , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series convert Allwinner DSI controller to full functional drm bridge driver for supporting slave panel, bridges. Here, are the previous version changes[1]. The key concern about these changes is about kms hotplug which indeed not compatible with bridge conversion. However, I did try several ways to support hotplug with the bridge but it's resulting in a deadlock where bind never attach bridge until bridge pointer found and bridge pointer cannot found until bind finishes. Any inputs on this would be appreciated. [1] https://lwn.net/Articles/783127/ Any inputs? Jagan. Jagan Teki (7): drm: sun4i: dsi: Use drm_of_find_panel_or_bridge drm: sun4i: dsi: Add bridge support drm: sun4i: dsi: Convert to bridge driver drm: sun4i: dsi: Separate code for bridge pre_enable drm: bridge: Queue the bridge chain instead of stacking drm: sun4i: dsi: Use drm_panel_bridge, connector API [DO NOT MERGE] ARM: dts: sun8i: bananapi-m2m: Enable S070WV20-CT16 panel arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts | 85 ++++++++++++ drivers/gpu/drm/drm_bridge.c | 4 +- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 128 +++++++++---------- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 11 +- 4 files changed, 150 insertions(+), 78 deletions(-)