From patchwork Fri Dec 9 15:23:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 13069742 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9031CC4332F for ; Fri, 9 Dec 2022 15:26:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YbWyEiD2db2G3OSY3xMMwjtAcKEPJ1X/cx/zCKnxOjI=; b=CVBqYohsWtVBT6 +ds3/ST6BSUOrdaWYss6p/A/YYD9PmqV9A/8b0ORl2l1lOUA4/ga+8hbSDF47/KWDhYBStrvvu366 JFuezvNVAvPygm1oL/vAgucJx3KkBCzKtYiiVr6iK935sfctyJqWGL5Kk2Z9x/pQcmGKQpYu/eE2G 3TkksZ4zqkb/C1/iOmzbx1IDGIl1BIyhSK55ZKWB+vRNgSqxdzTS7xd7x+dtmzdLj5qNiJJPPXdO3 h3U1mzlXhEjX4tMMe1MlJbA6zEaVa5zjdySOQKbRpm7V0cuh2EUlX6gkP4xlch6e4N8/coZnfa+rq 0bcBlu+YK+IJKrA6u2ww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3fFZ-008y1c-1n; Fri, 09 Dec 2022 15:25:21 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3fFI-008xms-AC for linux-arm-kernel@lists.infradead.org; Fri, 09 Dec 2022 15:25:07 +0000 Received: by mail-pl1-x62a.google.com with SMTP id s7so5213642plk.5 for ; Fri, 09 Dec 2022 07:25:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H0bkfE/NcofHpZ784ykKYOCGEROmx5jroWhn+xMWIFY=; b=eJ9/BncMiZUP6tyio2c5dxhR4akKO8sbrLzdigRs0sWHSF2tDdt8HHFUTamDhZqS1y Se98Nh1glWWeK0/aPQmisXFcUNTIT5gVajJadORR47SozG+o8lKQerc4DDjfQYFYv0zJ nwp4DnvtDf3SdjXO8RYhMVPN01NIU24glAQ1Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H0bkfE/NcofHpZ784ykKYOCGEROmx5jroWhn+xMWIFY=; b=K2E8ybsY2mwEceOukLFPC8BXEl8eP+lNVGVd+ZzFLM3oVOv7mKf6Dn0gWYHMyTyILm bI4qw+//QOwrA1FnhNGvUhtoJdNuXseP7UHORY1Gg2QqePvSomhGabKCf555sDclVIlq lTLxlTbfzjmr/liWqjdRJyqapMt6t/fQ8myg2Tn4QkPAcV+E7KMcwVDpngZGHzPFGzEK m9+a2CMzx9cAWHJI4768k2ZVCIvUVvRdvtXHADr53XXetV70/oQd+LYBR/Oa42CtJR9N 0hJVQLt8REbY740QCyUCw1Xe+ndIwjLljT7FACXCw+GyiXdFy+yq/oHFuh8DKQ2dKGWI +vag== X-Gm-Message-State: ANoB5pl1GpSbMSpcMgaTaZYOzaZ5OjHCgquuCxkR2rIrjRstlZK0Jmof Y2K42AC4oxloZa0A+KxrhMSfEw== X-Google-Smtp-Source: AA0mqf7FzJBBotDaa2r+o1ZDMAzGBSGDePLkRq8t9eln0607UPuyfEwdDluW2xioJrmKEHZSLoHHkA== X-Received: by 2002:a17:902:6bcc:b0:186:d89d:f0c1 with SMTP id m12-20020a1709026bcc00b00186d89df0c1mr5247211plt.42.1670599503903; Fri, 09 Dec 2022 07:25:03 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a809:6ba1:bbda:c542:ba0b]) by smtp.gmail.com with ESMTPSA id x14-20020a170902ec8e00b00188c5f0f9e9sm1477587plg.199.2022.12.09.07.24.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 07:25:03 -0800 (PST) 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 v9 02/18] drm/bridge: tc358764: Enable pre_enable_prev_first flag Date: Fri, 9 Dec 2022 20:53:27 +0530 Message-Id: <20221209152343.180139-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221209152343.180139-1-jagan@amarulasolutions.com> References: <20221209152343.180139-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221209_072504_404119_EC790751 X-CRM114-Status: GOOD ( 10.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Marek Szyprowski Enable the drm bridge pre_enable_prev_first flag so that the previous bridge pre_enable should be called first before the pre_enable for the tc358764 bridge is called. This makes sure that the previous bridge should be initialized properly before the tc358764 bridge is powered up. Signed-off-by: Marek Szyprowski Signed-off-by: Jagan Teki --- Changes for v9: - new patch drivers/gpu/drm/bridge/tc358764.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/tc358764.c b/drivers/gpu/drm/bridge/tc358764.c index 53259c12d777..f85654f1b104 100644 --- a/drivers/gpu/drm/bridge/tc358764.c +++ b/drivers/gpu/drm/bridge/tc358764.c @@ -369,6 +369,7 @@ static int tc358764_probe(struct mipi_dsi_device *dsi) ctx->bridge.funcs = &tc358764_bridge_funcs; ctx->bridge.of_node = dev->of_node; + ctx->bridge.pre_enable_prev_first = true; drm_bridge_add(&ctx->bridge);