From patchwork Tue Dec 7 22:28:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 521623 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp16628imb; Tue, 7 Dec 2021 14:29:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9cANBuzaIbdyaHJ1k5Tc+SlMV+j4GbwAhF8ymlmvU+MV1xGgsLX2bCyHCDayCSbJrzerj X-Received: by 2002:a17:902:a40e:b0:143:ca72:be9d with SMTP id p14-20020a170902a40e00b00143ca72be9dmr54705568plq.67.1638916161180; Tue, 07 Dec 2021 14:29:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1638916161; cv=none; d=google.com; s=arc-20160816; b=sXzOW2afnKTzbofwRjKLMskHXDxrMCADrFctVxZX6kFETG5TJfNKMb62RFcsvMCOgb EJSR1qlnMXuErNh6GUnao4qgdS1XDpeWKHd+QNV84yiVR6lWA+GDaTURwP/75NJ8Auq0 F98k0aBW+DV2gNAhPppHGHyA5q8isRiSU6mvydq0jFIzUXRlwcnZoxWYi3FZt4NgTe5y 35CGBOqykcs/7s4IVB+nripoAWWb5X4/H/5rwJKVfygnHZ2PQHjAarZ2HdlqB+I9m2IK jYRuGWhFO9JAecgDSD1zCv7mzsnbYGVeIwQYLVsu5Pj/0b739Xk5e9xYXbLAj9J+B5pH WL5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :delivered-to; bh=tMJvV86m/ZeXgXgTnYzA2Z7tIMKoHvAbqCoassUZvfg=; b=bg6CT06fy+Px0VP2jKdNwr8meL/VVMrfnkp+lMP0WoYKaoBSkJEPvDQkMJNlyR48el iSvsivwLni6xYPMQV7bv55gq/fuIJqOrJ+U6Vz41kxbDpuyNmFmXYoxLS/+pr8Z2lUhw i1Q4MZKi4PJRo1RLoNwE/m/Zq2dvtZIRJqa1doAV3lZErmlQTVt9++WI/jrH+FFlN8x5 4FiXnKSdu0vuvhdHtz9isipecgmYRl4dd3Nf7HlW3TdOJyZhrmZL+GwSKF/6CbYVwrUh avecV2rSRXWzesj90gnhr4PLfmo0F0WQNnHCSAfk70eIX7p5rLKcx8gaaxTjsWLocxGY xKmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SaZyruxC; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id e11si1088591pgs.11.2021.12.07.14.29.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Dec 2021 14:29:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SaZyruxC; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0C7DB6E0DB; Tue, 7 Dec 2021 22:29:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by gabe.freedesktop.org (Postfix) with ESMTPS id C01796E0DB for ; Tue, 7 Dec 2021 22:29:13 +0000 (UTC) Received: by mail-lf1-x131.google.com with SMTP id bu18so1773051lfb.0 for ; Tue, 07 Dec 2021 14:29:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tMJvV86m/ZeXgXgTnYzA2Z7tIMKoHvAbqCoassUZvfg=; b=SaZyruxCjfmMTKQ3ALXyShb0kwDg0MKN7K54apM4VaZqUmVv7HYqTTlSpoYa0QGmTk qr5PPp/k4j5M4LlSIGGah1zRV5Goixoukf4zK7o8xinPE9XDOCFxz8hb5oxZ4WRlDFHM +3mNA38J1lcLoqqwlaWw++tLn3kPiVCtzCAPGFx/PIUFitZcuGnYgbmPlR1a+e5cHDXp uVi/254IT0Aw2g3uxaaMTlecTVKMTpLX9HT2wQ7aZiKLaotoawSQ/7WUu+G2PLRAX2xa jk1aQLvrIYwV/NVR1FOzIgZRzrsetKEm0FS13WXMcY12dFl90H72FuOHTj3+OWiCjIE2 j7SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tMJvV86m/ZeXgXgTnYzA2Z7tIMKoHvAbqCoassUZvfg=; b=MixJTrExo1N5xTwZo3Fxq2GYfydRp3bXmHvyuFYcWFg7AnREVFr/al9FJNxuPX5wpN 4Al/ijUlR9WMXNVKR5DLTmh82K+0Mgt/xEE2BXShR3wu8K1zt5qZuLikLr7PmyMrzod5 +aIxq4xPRgwNpTdhOkUNUx5wyTFAxDg10DOcOu74cwMYrISd8btB+0WyZjfEVe6Ay6xy dORUAkIJI+CjXFfQTV4LX6vSEk99HX7TkSOYFyEpv3vEwSYdT0IKbunzIIEusHNnlIst Ylm7GPxJCCvUaKO3T361DCq3vApo9DmdOXmHUmwQIfKOdmD5dq5/nUjrF55pPr2eQ80b b1Og== X-Gm-Message-State: AOAM533wiPkrohgWxKiPoyoYNaax0D5ztyPpyRQIzcaDzL2rrl3UoDAQ /9yH0KLM9ZIjkJogVmLQAdV4iw== X-Received: by 2002:a05:6512:16a4:: with SMTP id bu36mr44052612lfb.255.1638916152061; Tue, 07 Dec 2021 14:29:12 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id p22sm79423lfe.257.2021.12.07.14.29.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Dec 2021 14:29:11 -0800 (PST) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Subject: [PATCH 0/2] drm/msm/dsi: switch msm/dsi to DRM_PANEL_BRIDGE Date: Wed, 8 Dec 2021 01:28:59 +0300 Message-Id: <20211207222901.988484-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Boyd , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Currently the DSI driver has two separate paths: one if the next device in a chain is a bridge and another one if the panel is connected directly to the DSI host. The later functionality is already suppurted by the panel-bridge driver, which wraps drm panel into the drm bridge instance. Using it will remove the need for special handling of drm_panel and drm_connector inside the DSI driver. With these patches in all cases the DSI driver will see the chain bridges which either support bridge-connector or allocate the connector on their own. ---------------------------------------------------------------- Dmitry Baryshkov (2): drm/msm/dsi: move DSI host powerup to modeset time drm/msm/dsi: switch to DRM_PANEL_BRIDGE drivers/gpu/drm/msm/dsi/dsi.c | 32 +--- drivers/gpu/drm/msm/dsi/dsi.h | 10 +- drivers/gpu/drm/msm/dsi/dsi_host.c | 20 +-- drivers/gpu/drm/msm/dsi/dsi_manager.c | 296 ++++++---------------------------- 4 files changed, 61 insertions(+), 297 deletions(-)