From patchwork Fri Sep 16 18:17:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2361 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CA9A33F36F for ; Fri, 16 Sep 2022 20:18:28 +0200 (CEST) Received: by mail-pj1-f70.google.com with SMTP id d1-20020a17090a2a4100b00202ec7968c0sf208975pjg.6 for ; Fri, 16 Sep 2022 11:18:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663352307; cv=pass; d=google.com; s=arc-20160816; b=RY9Mmfkl4QWSX+4UpH5iMGbuB1z29TYbk14hJKwzlUBlcg5hrwiGuwGMvibQrTni/M tcqI2heggED0n1z3T9vHkD1Yued7H6032lgTsy9vDA3atgAcSxsTNCHXABFyXQ3OeQ4i t/oUCYIcz3a2QPIQfqzG1xrT9+90K4+cFP7TB39s+9h4dWlta66vpu26U6/GU2UZYFX1 1X0MRojK98OxGJhjavWo5Gf/bV+29fBuvVYTzqZ79R813f4XAMU7jbhm/pXTxj2bxBeh pmz5+92RpGKNsCM9ch3z5xoHiH1oHsqDZ5F4Wm4n5OBAWib2+0alNaCuWIi4XZuKmRF5 /oqQ== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=+j6S7KWRrW+z7MWKREiotV1/d00Ctu3D9rPqTN5J150=; b=Yi4CxHhKMpJud/tGj5pII1p3arjHepmNsntOay0PeEmxyv71uyAlYMrS5UJAFWFXYC JJBxF9PemEDPvLK1N+Fpc1vL/nDaSw46LC6YfY8Bev2BM07kQFGXyOFO0mJT0ZjMC8I+ MUE4+ae/V/x+2YfZ54zLcK57E84/Bzdw/TKO+yUXX1QdFFW8YNbYqzM00ycFR54HM17R gPBcmGT9a3LB4+HEa95tLi96wklHhHmfdQ1b91EvX8I3Ktuogs69jUKZd4MwdB4mQ+BA FD2NtJWPQPs/H3glEK75B0ze3X2mB6z42FlFua+qOQPfnFhgdzt9gV7YGh54Xi68IXOm ViMQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=W1QEp6HF; 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=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date; bh=+j6S7KWRrW+z7MWKREiotV1/d00Ctu3D9rPqTN5J150=; b=KIzJuiS5tkSaL6q6MLyGA9k4OeLymnzVqmTBcP7tBqVBvM/Z4wYvNXYUmwv5CRasCq R2Wv9oaxtec0aiIIR3oXlDjcrR8jYkN2cI8jANQEwiN2ijQgNNf2YbhFSzZXSQP1/rlz VjOn3X27aBENWrCKoWyrAGH0ja/jQMgYC29mc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date; bh=+j6S7KWRrW+z7MWKREiotV1/d00Ctu3D9rPqTN5J150=; b=G9z81InQISDZTQ8U4vEIay582ui+h99IfrgCFg1gsjYNyjlWp1ZQBx3WLt8hKF/aCd PJmY9Md872AbujgdcorwZKgwtYeVQN7kZ3dDMNjBhSSq3HMX9lC+Y+qxnjWLbfeaPImP zuLDjz8oy7r4DVzWTuEYOL1A0bDOyqheoR+s9ElebPUII/Mpv2HNfwWIA6i3/8T9dDQi aPg0nXbgJJLuMuo3JPg0P/HnZ/mckaBcw0hbYOeYCgHgCiexhS1XT8BhK0luWqVuyQUQ fmTUuHO3k7DU3mxxTs1ayyAwT+eN5kEX0OnXMIvPOW13FbMI5iL6dD29VoT1TpeiVW79 nuFQ== X-Gm-Message-State: ACrzQf0Ys+YGVd2bKE3QlZ0POweHk9kWBnOKIucBDNDizBP1OZA2T9oq v373mPKNG7+xVP2h8+GVEQe95S5t X-Google-Smtp-Source: AMsMyM4jlBmMNyf42WIzeth6tQydInMTT+0PZkmtDR57CunleObxji8tjgbnoVOUYs9WWdHTGAB8CQ== X-Received: by 2002:a05:6a00:15c4:b0:54a:13f1:1118 with SMTP id o4-20020a056a0015c400b0054a13f11118mr6198138pfu.52.1663352307476; Fri, 16 Sep 2022 11:18:27 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:b88c:b0:200:8151:e64c with SMTP id o12-20020a17090ab88c00b002008151e64cls1927769pjr.0.-pod-control-gmail; Fri, 16 Sep 2022 11:18:26 -0700 (PDT) X-Received: by 2002:a17:90b:4f4b:b0:200:876b:c1c8 with SMTP id pj11-20020a17090b4f4b00b00200876bc1c8mr18244645pjb.32.1663352306630; Fri, 16 Sep 2022 11:18:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663352306; cv=none; d=google.com; s=arc-20160816; b=n8mlFghkq8DiqfRwuQpocyjT/L2duWwygmJ7HsQqw/FA0jDjtTgiinnDYfQQW2CEis 9a1BO/okaxGZjECG5CmBjO38O1uFDPeX1WaYBC3nw/G79svg23dY82TJ33uP+N12R+17 0X162C2AmmTR/45SotGpz+XSQ5Q2LcycVV9t/rrOzMj6z18aJFjEVhn4Dr5EtKNBEBTv TIol5VKK6qnCqinOmDcB/be97hjI1fPywMKgN+Gk4CvO2xRQ9vlILjWh6e33pbG1i4TI ugCv/Y6w2uMTnTFXyuHlBL1+IfpShZfa68eaf5pMBQ9Vxs5wKN3VohOJnLNM9TjNwXvM iysQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=evpdRiLLPj8Lu/GCT1crgCmnHzo/7eQnkgWkH42QQ/k=; b=Ig9v5jKLuEZncltx3u7t0dwvh8vc8NthA4RMWuyBvzgGYs0K72U22YgCQx8elOl1Ss HpYAyWbO7Uc5dF/9Y1p8R65mpxwrXFWacu6/AwgMs/k3TSUR8mvs8A5/hyWjZS8l5jrK 6qv1gpSr3q12iHxxqbMzQZLPfN2KDG/Fg7w1c5lb1oraEsspteeKg+XyR+5SdruQ8vLh pk6hvoNHiVJWS/NN/SWgmECPFgyxIvSaQC6P+I2crBY2370SHDlpFR7+9iDt5qCmbqja RBgJCqUZuKau3l34gfUFLh45Bpd6cEmwwsDZdtnx8ndE26W+bOT/vuq3KvagPJ+811nr FFoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=W1QEp6HF; 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 n17-20020a170902e55100b00176a84bbc0fsor8842739plf.92.2022.09.16.11.18.26 for (Google Transport Security); Fri, 16 Sep 2022 11:18:26 -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:db0a:b0:178:2636:b6de with SMTP id m10-20020a170902db0a00b001782636b6demr1104299plx.58.1663352306312; Fri, 16 Sep 2022 11:18:26 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a073:ae5d:6ee4:5c2f:6733]) by smtp.gmail.com with ESMTPSA id d14-20020a17090a6a4e00b002007b60e288sm1770000pjm.23.2022.09.16.11.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 11:18:25 -0700 (PDT) From: Jagan Teki To: Andrzej Hajda , Inki Dae , Marek Szyprowski , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Frieder Schrempf , Fancy Fang , Tim Harvey , Michael Nazzareno Trimarchi , Adam Ford , Neil Armstrong , Robert Foss , Laurent Pinchart , Tommaso Merciai , Marek Vasut Cc: Matteo Lisi , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team , linux-amarula , Jagan Teki Subject: [PATCH v5 01/11] drm: exynos: dsi: Restore proper bridge chain order Date: Fri, 16 Sep 2022 23:47:21 +0530 Message-Id: <20220916181731.89764-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220916181731.89764-1-jagan@amarulasolutions.com> References: <20220916181731.89764-1-jagan@amarulasolutions.com> 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=W1QEp6HF; 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: , From: Marek Szyprowski Restore the proper bridge chain by finding the previous bridge in the chain instead of passing NULL. This establishes a proper bridge chain while attaching downstream bridges. v5: * exclude the NULL replacement in exynos_dsi_host_attach v4: * none v3: * new patch Signed-off-by: Marek Szyprowski Signed-off-by: Jagan Teki --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index ec673223d6b7..f4e3d2518ad0 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1428,7 +1428,8 @@ static int exynos_dsi_attach(struct drm_bridge *bridge, { struct exynos_dsi *dsi = bridge_to_dsi(bridge); - return drm_bridge_attach(bridge->encoder, dsi->out_bridge, NULL, flags); + return drm_bridge_attach(bridge->encoder, dsi->out_bridge, bridge, + flags); } static const struct drm_bridge_funcs exynos_dsi_bridge_funcs = {