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: 1630 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id DD4E33F158 for ; Sun, 14 Feb 2021 20:41:21 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id t13sf5673032pfg.13 for ; Sun, 14 Feb 2021 11:41:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613331680; cv=pass; d=google.com; s=arc-20160816; b=QcJVxyvPwAge0ghdqilHLGVbj+DFh1FvXXCg/D7Z6+DYc17xfVwx0se7DEFLJAxzbG rirs5lDDXvdhQHABMBX0mVFtMnzE3CmxZE6uREhv9vM+jjwj8/xc8qvQoXnRSm9O30bu b8fZHxkU4gxblNpgoDib/FsHiOg/Ml/zJFs4afhWnZfzlo21el2RVKBMyyihfWvmMuKw 6LH2rHJs+HrmvK6WK5BwRX6WMyUDm3FfGu4muljYUqWgWuj+2sd0SyKVTqaMIJvqQ33L mwemASOCbmoX+tBcRen2WngNbUBBBud0XwejTe/868Gr+j0js2BlLo2WiyualVfpjh2G vvxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=9fZfcLDliY2PsmNSAwlX6Y6TE+fJ2pphO4XwMHww37Q=; b=BpiB24GAsPQZQDCQ29liKECQjbLOCTIgIBU2wG/140uU7s+E3w9OXbcyhp26bvb5UR c/0sah2TxXf/Ox+2iVabM1UIJX5os8IppGrFy1UOAlSbwNBNr+4lHkKnxenEqtqoEvGd Zk1s5RCXSilSlfdm+Kp7QanmcEApTMAvcmQDmoGuQuF5a5u0d7zPHAWmDVmbfPanjkQj 9CH0tz1T+eARgb/4CPK/o+y55DbN95XubVkoxPEYoxW+vZFKZzD1omdiML5f1Y6aigaB Of2hl2UXkcUtdmhfuoLnbTJLTMzlOQJDiV6IpjamKuaovC96WNASAQaymD5wS2/QepPe nAEA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=F0Qgyf6v; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=9fZfcLDliY2PsmNSAwlX6Y6TE+fJ2pphO4XwMHww37Q=; b=k4h0xkJQ/kpJ4U0MDtLKYQylDf2TKkj/xNt2AobyDj87vtiLMUIEZP7h4FJhAvV8gT xvZyuRypL05VUnS3mGSzhH5I3b01AfRvpjFIjlmZQDTX/bMaVgvFrmyAhLByRbOZYPOt QFUbWuxxBd+8Tj1Gz6SPnRP96oGwft3l65MQE= 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 :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=9fZfcLDliY2PsmNSAwlX6Y6TE+fJ2pphO4XwMHww37Q=; b=m7lM2wPhJVsd2bmGXeo1GbHT3zR24X6VI0zibZf3pXVia8Bq0JYL4516vwrpjIrW6n LmIK0SX5DI3VuZ4Nx9EyVMD1XWOMldaSmBkKUR6tzcZzMykA71oGL8QiEuOldv+xkVAV MruWINoSUOEuAZ8MWII3pPfR+nYlqBNylBPSN1lN1+R7Dy0152uJFAQ9JKmOLxmYfXEw xvsanQK0C4pTuYKdx83+MLp4+NqyZj/yuunTEGtl/8g4avuR8ooLaRWK8W9xKkZ7jlsz lgfNDlZt/7xrJOPMhnOOiGMwbZ3zHBwjlgJuvIZuBZxst0f+B/m8jEhHblWoqOSEcfj6 RS3w== X-Gm-Message-State: AOAM531pS9BvgcG4Gqm/8ojMGhyo7v/HqlQU7tDXYCSBFoJFq/+hCdc5 8z5bgwih8+0r/4AKbYL6E3GEX+qK X-Google-Smtp-Source: ABdhPJw263bG+XgQ31KNGkHurOC/92pzp0ve4kZd1qM47aU54K7TtDWcBt+dwhhY8a6wEjxsDrQkWQ== X-Received: by 2002:a63:c54c:: with SMTP id g12mr11973444pgd.449.1613331680128; Sun, 14 Feb 2021 11:41:20 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:7a55:: with SMTP id v82ls4844388pfc.1.gmail; Sun, 14 Feb 2021 11:41:19 -0800 (PST) X-Received: by 2002:a62:ed10:0:b029:1e6:2447:f8ba with SMTP id u16-20020a62ed100000b02901e62447f8bamr12305900pfh.61.1613331679412; Sun, 14 Feb 2021 11:41:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613331679; cv=none; d=google.com; s=arc-20160816; b=ucqCXepBG3o4G+4S5lRKPguszCvcPQ5T1XmPTOmipYV6OzHe1l1OsOI/d1trwhHacj 0NUVo1Kv4DraS164nhuI7+JWJPBNQ1VZTUcn8W2QZVYfQ9c47IZyrWySQmRpkXv08wUT GwapGwosVfLDMdZ1GiSiQllt0jD+qrppgV1oDrfzMUV7zYp9P3in1AiQfNJ07xofx1vh MHP2qwkJaAYpLF3sibW+wacdZhj+ZIraDnTbNRGtTv5Z0U4ctDu/1/Zctn6GBbtpEuO6 OgOoXiYHIR9NrcRTyP8fWeGEpONEXPxMHF0oDqE4AmUHZp1+R2uwrQcR6Nz0rfJbDwUC BwRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=OEU9K8O8lr+3rHXwRQA55P8y6nBOsd6z61f8CIpxwRw=; b=lWnu9+JHSwpO6+Ic1meH9noq+93lguzYil+FLHlkxiI7zRDDFsXqIW3DUceN+gRyVK lQrfaDjdFzNzKErV0WPcr3qQRKU9NCE6Q57Eqt++ABsUTMExkZ8d+ItLzltnxZ5vxgIJ IP4vyYT4qt4B4j/ktvxCJ7953qfj0D/lSfb/QLMBdhGDbFt2nqDBJ9rwbl6J+w3NqzO3 +RRZ7SyRWqurSMLhQhhuIekWiEgBHuNVAmjfxKLHZzKytALeINHgQ8M0BNWxY1RjVMnu UJ5GLjUPfmd9TUkF0vvH/qJJ7tZ8rwaAXKO9xMuEbAJK5VVKd/pdfH6Sv4lRkkK33gT0 NlsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=F0Qgyf6v; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id j14sor6442942pjn.0.2021.02.14.11.41.18 for (Google Transport Security); Sun, 14 Feb 2021 11:41:18 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; 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 Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki 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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=F0Qgyf6v; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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(-)