From patchwork Fri Apr 29 08:59:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1927 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E39733F02E for ; Fri, 29 Apr 2022 10:59:57 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id q13-20020a638c4d000000b003821725ad66sf3568340pgn.23 for ; Fri, 29 Apr 2022 01:59:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1651222796; cv=pass; d=google.com; s=arc-20160816; b=Siiz7oVYIT9UqrNrBrMwxEI5oifUdcwgLQZ+IrLIOUQfwJJJLRYTZ1QIgnOHIF2/Y2 sglBl3KnBZ3//e9kV+t7DaQxfcB7TK8f3Qjt4xFAmqWIUIlOEoqQMZmFG1CW4pssw6L6 T1kLYME+uxpgI2H0k4wruYcP5IugjYmwTBlbr4eOIp+o2+0jN9TY34r66UVH8fQFT73l /1bb8Wjs6S61XsfcxfdqsN5gceJGCJOC0CHtGQvStfe+RO7UMGP/xU8DKKE6jJk/tfv0 LAIrYExgNnWC5CedGkqkoYgO/SOiIrGEUZ7yrJQjGC8Ap+Ccnw6rCWUsceCJQaoPtc8W kINg== 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=pwKY3769hs6vEMR4q1x3alkC+QAADZi4YIDnMb3ud/k=; b=E0+Gmg9EnUpGIdv6jHfM49/SKOKpmpq3aSQEQQGL3ZjjLkjfzZUWKjTTZedMWW2e1B iEsWWXEjzFh/hSe0eEurSKTglvfoYIfK8UxJ34IKgfKj7QG5aZ3hIjP632emBKd0O8uo iAlWEDlNpEQZnnW4W944asDdPEHSQyAT3xM9rPZG1dSetMMxOQNmT2DGl85IpWi5WnxP xrNTAmv0GrGw4gBMRdVwYeUn/iiAyT3cBdTL47uTFsGbam0+3JFdcZ9prlHK++Bk44Fw +Ar2U2S4RVF2jdo+dXVYvevVch6fAOxJVm6IvkJQS41Yfv0etFTdvE5kDHe+MKjWv2AW wlXQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MAc+Cq2V; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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=pwKY3769hs6vEMR4q1x3alkC+QAADZi4YIDnMb3ud/k=; b=lpZjVMoYta3hUsQsV/9gpBbaozOKKVurVcX2QCckid3g7s/kxsoGgTfBT8N508Joso o+pdeSAunlxuHyW8xs32SuLHQtnfz44+/84AcOzTznIEHmP8GFyv5TimROgSl5c7Najo C0bFYn0h8upe2ay96SO9xJzS8emUoT00hbLIQ= 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 :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=pwKY3769hs6vEMR4q1x3alkC+QAADZi4YIDnMb3ud/k=; b=Xpu5JNmhmQfoQ00HBMMJQmfEK1fAr8WZ8nNmjcY3DJIbu7eJ7YLOFKW3z2xJyPCe3/ 4nitSa15jn2i6esxMg5PUhuN+eo8HdhGSgZJwjDbYAL/na+lWJqQwp0HXt6G6ZgaPzhV p8xw9lKq+lbi6GkUd4SNwFyQWaVKnJZeaDm79dGr+VUwB8j50B4LXt2f8f+z+/2icnhs oyAkCpW93vibzM0EQjAJqK5AayBy2euWEzUrxqYDWKIBRMBCwhFyjHoRDECkLYGQm/9b UGFmsl3R5JIG6iuX6EikXrRrebyEnAN5FNkc9GCfQakK2j6kpZNZNGnOdL0rMWbvIyPd N78w== X-Gm-Message-State: AOAM531J53LFs1qI/P9TKWmcxFAMRBNBKLhxteYD7XHmIoxMDpoytl7H zXSqEHxqmGShglE54XoPwnmqjP6Y X-Google-Smtp-Source: ABdhPJz96xuqRP4q4QhjBVLHklr0o5PLWl1/HmljOLKhqbUQncrR4FMjCXQdF+1qk3G0WbNQspvK1g== X-Received: by 2002:a65:6b92:0:b0:39c:c97b:1b57 with SMTP id d18-20020a656b92000000b0039cc97b1b57mr32408635pgw.517.1651222796552; Fri, 29 Apr 2022 01:59:56 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:ce90:b0:15d:150f:3445 with SMTP id f16-20020a170902ce9000b0015d150f3445ls1875787plg.8.gmail; Fri, 29 Apr 2022 01:59:56 -0700 (PDT) X-Received: by 2002:a17:90b:4b0f:b0:1d9:f28f:735a with SMTP id lx15-20020a17090b4b0f00b001d9f28f735amr2786163pjb.160.1651222795713; Fri, 29 Apr 2022 01:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651222795; cv=none; d=google.com; s=arc-20160816; b=loemXYD02IyEfX4GYuVWQSH5DgS9zCgAReWAmGBVex3HFrAtPPRj94oeSuwDGKuk6m bE6a7PxlzZQaaNX3orVm8DFPtxPZQtjmsfCxLUGif1dQJEBic2KimF1ki1T0w/QbvbhM Q9eDI8LsCrnii1r5EGa/nq27yvleQYzRN5g10OVVSuoikUwyU1kJjrGS+NnPZbrTTo/g nQ4oISiFJIECXPpEKnClrG8YNncVzmau7mWO7/XVw/3Bm5gwDVTJd45F97G7PrpHJqB1 6rxkDDcll3lGwrtzkknTlW1XHDSMB6blTFAe9LKU0oRgceY5kPyuHPnCPbh8zq0xgLab SKfg== 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=cfQQ6kIuyBuouEPLJ2XzvmY09Tm8WP7/zlQvfxQJkSk=; b=KrK9gUmiXe18PwJWGvH4xR5WQrxI6/0iVyosHy0Uc21IfhO7/Umj1kG2Rvxy1yWtCS Hpc/0Zt+IUR9zFQJS4IVrxgxfS4nKTDj0RaUMDCrhhRU7Ue+RXkcHHp83tlNxP7SVdo1 s/S6c20wMZFKdkTE1PHak6r1H/jCCkuLcgHCvSKVVNQD+uvbImZqlVrddgSZfmHrRWgI CdVy6v/EoHJSUHPNQUGLtj5ILUVbrfeSGaT8C5N/GvY2JRVaE+bs9zkvkfzaQGaEEh3W G0MgfKA3PnoAzoc6EofCeuHbOxIE/mffryDuKRGygM6SbgsvEBexeQDhFc9lCQvIoW1+ K9zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MAc+Cq2V; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 y20-20020a170902b49400b0015a0bbc65ddsor3197484plr.70.2022.04.29.01.59.55 for (Google Transport Security); Fri, 29 Apr 2022 01:59:55 -0700 (PDT) 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:902:f544:b0:15c:fa6f:2630 with SMTP id h4-20020a170902f54400b0015cfa6f2630mr28260580plf.110.1651222795391; Fri, 29 Apr 2022 01:59:55 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a0a9:b5c3:f85c:afa7:cae9]) by smtp.gmail.com with ESMTPSA id y4-20020a056a00190400b004fac0896e35sm2453085pfi.42.2022.04.29.01.59.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 01:59:54 -0700 (PDT) From: Jagan Teki To: Linus Walleij , Maxime Ripard , Laurent Pinchart Cc: dri-devel@lists.freedesktop.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [RESEND 1/2] Revert "drm: bridge: mcde_dsi: Drop explicit bridge remove" Date: Fri, 29 Apr 2022 14:29:46 +0530 Message-Id: <20220429085947.1699963-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=MAc+Cq2V; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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: , commit <3730bc6147b0> ("drm: bridge: mcde_dsi: Drop explicit bridge remove") has removed downstream bridge as it's prior commit <3d7039e1e649> ("drm: bridge: mcde_dsi: Switch to devm_drm_of_get_bridge") added devm_drm_of_get_bridge for looking up if child node has panel or bridge. However commit ("Revert "drm: of: Lookup if child node has panel or bridge") has reverted panel or bridge child node lookup from devm_drm_of_get_bridge as it breaks the non-trivial cases the first child node might not be a panel or bridge. So, revert this commit to switch the previous behavior of looking up child panel or bridge. Signed-off-by: Jagan Teki Reviewed-by: Linus Walleij --- Notes: Nothing changed for RESEND. drivers/gpu/drm/mcde/mcde_dsi.c | 44 ++++++++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/mcde/mcde_dsi.c b/drivers/gpu/drm/mcde/mcde_dsi.c index 083a4728654d..5651734ce977 100644 --- a/drivers/gpu/drm/mcde/mcde_dsi.c +++ b/drivers/gpu/drm/mcde/mcde_dsi.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -38,6 +39,7 @@ struct mcde_dsi { struct device *dev; struct mcde *mcde; struct drm_bridge bridge; + struct drm_panel *panel; drivers/gpu/drm/mcde/mcde_dsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mcde/mcde_dsi.c b/drivers/gpu/drm/mcde/mcde_dsi.c index 960b49ea2ee5..083a4728654d 100644 --- a/drivers/gpu/drm/mcde/mcde_dsi.c +++ b/drivers/gpu/drm/mcde/mcde_dsi.c @@ -1122,6 +1122,7 @@ static void mcde_dsi_unbind(struct device *dev, struct device *master, { struct mcde_dsi *d = dev_get_drvdata(dev); + drm_bridge_remove(d->bridge_out); regmap_update_bits(d->prcmu, PRCM_DSI_SW_RESET, PRCM_DSI_SW_RESET_DSI0_SW_RESETN, 0); }