From patchwork Mon Dec 12 18:29:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2545 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6522F3F1DA for ; Mon, 12 Dec 2022 19:29:39 +0100 (CET) Received: by mail-pl1-f200.google.com with SMTP id u15-20020a170902e5cf00b001899d29276esf11109827plf.10 for ; Mon, 12 Dec 2022 10:29:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670869778; cv=pass; d=google.com; s=arc-20160816; b=QIIxiDjXAr64Wj92sH/G7Z9nlGkzT1A93Ky/J7WTC7zmQKcZHWJbYwEw77xO+As6HQ JM5LHbOCoj85+knUCNIPjV4GiAZH3ZUCnY2u3H2mwET+noD45ZHJEtXcz4bBLnN6KxKa IkOelmHCZPDXH1cRvYzUc2sKZYa9/Q3WO9pkicpZzRhq7L3m4/0pJS4wtfHqpA/VYGN0 lG0RB0Ep0HonWY6qaYsoQWRUAl80rz9UiCA+uiBm86xSmLEjT54MquL0lB+HGizt89iL gUcUUZNY5HDKiQxXmh4QUDs6mQU1L54W8OmkiKakfU3WYtCN4LOtdScu0r91z8WIJWrw D0hg== 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:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=87ElvYaY1fg81RE0Kg5y1byGRVeZSPIIdod9mZMJDKM=; b=pzDzSB2TwA1DWXbLba7SNnwsX5WayIVwL8h3iN3ShlxMcYUytnVsJ8MBrDkYtCKhVj kH+Jp6gNCMtNp5iM84aDCfRGZHCIkSwi3Xe8p6Mn4d6gM+qGbFw1QSumqSYok3Moipim v2nU1XTvG0ZUOAdD0b6xYJhVt35KWkMd/IqGYoR+iIJ4enFitDjhz4CnSTRNW9PyaJqZ azSBhzpaQR7Azda7PKkm3mk9di5JSYjMsCgspglasLfZjEIBD84QHRvUlIa9G7qowAre PaUkc10hVGyl6yyJ9Vz1H58MdedZcS20t4ecoHoZK8YRMEUZkFVTmHZVUsMrcCeO4Ov+ N5Nw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BnDGNHVr; 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: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=87ElvYaY1fg81RE0Kg5y1byGRVeZSPIIdod9mZMJDKM=; b=ZQFxotItth6awI2UMQ05U+GWzTahvC25IUOOlImENPlhT5MRNfrU5/FFbgayxEJEdN vU0VuiWMnMrzbnpnoXS3xmMZH2LkiTyi1ykgoboZhCecQs4H4Y8RuueGDOW9jew/qkyY zrp++gxgMa46G5D0JnFzTOBNyIdh/MTaM8MRw= 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 :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=87ElvYaY1fg81RE0Kg5y1byGRVeZSPIIdod9mZMJDKM=; b=0rPZA9RP0nmzCnhqYTOp/Qri6vx97cnBLoiLpxGRxctlnt4esjRWXpL2vk/yJDMuh8 tWmtVWsIWdLbfQK769Ge2LcHxyDpmGKVOJamT/lMeKtAPt6REw+8o5xvEgJLycNSFFhp 1CZfmAedAA9QEKKeF6lDHl24RArDGtC2e/rijl2IxwDbDyVxaDdvdgI3TOUg94WPz+wa ZA/qyItVKwcUbqpjj9GgSc41bo9xw+auYkTXkzEASJW1hVXiJGJxpvQZEgJxCXtJMCYF Bhwp6362H2LYB66PxcpTAl1PmDqRxpzMHM09AL6DFJydvSCal501db7QiA9CHogbdLup cr3w== X-Gm-Message-State: ANoB5pk3+o+aFqG4l8NEhoJy0nQy4tvNpwb544a6evUfNn4V9zbFOxNS ZIHL7quCcwC3aTYonNuKqz76Rch+ X-Google-Smtp-Source: AA0mqf7KqyXopCuT31KLfJd4lyVhUicFbkJu9xlxrNv95YkYYkNm3672LLIANrUW0A9HeulDYBcVSw== X-Received: by 2002:aa7:815a:0:b0:562:d99c:2f66 with SMTP id d26-20020aa7815a000000b00562d99c2f66mr85024038pfn.42.1670869778051; Mon, 12 Dec 2022 10:29:38 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:903:2151:b0:189:33cd:635 with SMTP id s17-20020a170903215100b0018933cd0635ls16220360ple.5.-pod-prod-gmail; Mon, 12 Dec 2022 10:29:37 -0800 (PST) X-Received: by 2002:a17:903:1341:b0:189:e4e:792c with SMTP id jl1-20020a170903134100b001890e4e792cmr16512832plb.64.1670869777107; Mon, 12 Dec 2022 10:29:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670869777; cv=none; d=google.com; s=arc-20160816; b=HdJh/b3OHYJ21SolTqfdYU57Y/x30f0uvK9kNFSD/fZa/pBUvc8zwWLTZjFHwOSgtC ChS+2sYQhQRIkzSaqek1x1tLLVL7OdX+DmEYlsBz+UEsNjNNg/+KDQHWSE67V+U32bTw VFufAwbLhyxwV/oJxUB8msfGUVdJp8qSgksiGCAGghz3DQyUb7QJIxWG68q5vU9+OXg5 fpdTMruXBTNOfuP0mSRkbQkFS1UtmRgwT7fY5MVL3FHOWYKqc9UvDqdMT+vZfyBz2PBs ssRNnPC6s40RMo/eHpHUuMxGldqF0Jdw6Sc5NbgrrZHmqcjGDS+CbT/T22JRi3RkLcsB SN5A== 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=R+Av/2b/ycy/RF3odcL3zI/UzS7FDZGXbIff6fnk4N0=; b=zduqlPkk520+jDy+A9cp/BqscmHko8lYcgrG8RW/PYo3EzPuNJ72oksxYp2Ai18eiy iHNkfcHTkWhu5EeYEDhypjUTSMDCjeqxD7tOtuL9BxqgkoQ5mS3mQF3NAh3pfTwZRpsq hZTIsQuE/lcEmS62XvWnIXD/fhFtQtSk0HpqMH9I3wnEZRYZJ+wB9J5zcEC6EpaL41re gigbrvxR2v/+YmuNRQofg3fdnYALZm95+CfKwmoPcZ2GZrnxk1FsvemlO/+l6Hbsg2mM QToRozN9ghK7Q1/IERmo/aD0R8ZQv2mikrKWvW9k/6flsvNXJeoae7UopXxuT9iPLvHy TtjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BnDGNHVr; 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 h7-20020a170902ac8700b00189b096cd03sor4610774plr.2.2022.12.12.10.29.37 for (Google Transport Security); Mon, 12 Dec 2022 10:29:37 -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:a05:6a20:69a0:b0:9d:efbe:52ae with SMTP id t32-20020a056a2069a000b0009defbe52aemr27929032pzk.30.1670869776804; Mon, 12 Dec 2022 10:29:36 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a809:c713:dc69:f2de:e52f]) by smtp.gmail.com with ESMTPSA id n28-20020a634d5c000000b0046fefb18a09sm5357998pgl.91.2022.12.12.10.29.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 10:29:36 -0800 (PST) From: Jagan Teki To: Marek Szyprowski , Inki Dae , Seung-Woo Kim , Kyungmin Park , Neil Armstrong , Robert Foss , Andrzej Hajda , Sam Ravnborg Cc: Marek Vasut , linux-samsung-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-amarula , Jagan Teki Subject: [PATCH v11 1/3] drm: panel: Enable prepare_prev_first flag for samsung-s6e panels Date: Mon, 12 Dec 2022 23:59:21 +0530 Message-Id: <20221212182923.29155-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221212182923.29155-1-jagan@amarulasolutions.com> References: <20221212182923.29155-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BnDGNHVr; 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 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: , Enable the drm panel prepare_prev_first flag so-that the previous controller should be prepared first before the prepare for the panel is called.     samsung-s6e3ha2, samsung-s6e63j0x03 and samsung-s6e8aa0 are the effected samsung-s6e panels for this change.     This makes sure that the previous controller, likely to be a DSI host controller should be initialized to LP-11 before the panel is powered up. Signed-off-by: Marek Szyprowski Signed-off-by: Jagan Teki Reviewed-by: Frieder Schrempf --- Changes for v11, v10: - none drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c | 1 + drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c | 1 + drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c | 1 + 3 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c b/drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c index 5c621b15e84c..1355b2c27932 100644 --- a/drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c +++ b/drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c @@ -731,6 +731,7 @@ static int s6e3ha2_probe(struct mipi_dsi_device *dsi) drm_panel_init(&ctx->panel, dev, &s6e3ha2_drm_funcs, DRM_MODE_CONNECTOR_DSI); + ctx->panel.prepare_prev_first = true; drm_panel_add(&ctx->panel); diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c b/drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c index e06fd35de814..3223a9d06a50 100644 --- a/drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c +++ b/drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c @@ -462,6 +462,7 @@ static int s6e63j0x03_probe(struct mipi_dsi_device *dsi) drm_panel_init(&ctx->panel, dev, &s6e63j0x03_funcs, DRM_MODE_CONNECTOR_DSI); + ctx->panel.prepare_prev_first = true; ctx->bl_dev = backlight_device_register("s6e63j0x03", dev, ctx, &s6e63j0x03_bl_ops, NULL); diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c b/drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c index 54213beafaf5..362eb10f10ce 100644 --- a/drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c +++ b/drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c @@ -1018,6 +1018,7 @@ static int s6e8aa0_probe(struct mipi_dsi_device *dsi) drm_panel_init(&ctx->panel, dev, &s6e8aa0_drm_funcs, DRM_MODE_CONNECTOR_DSI); + ctx->panel.prepare_prev_first = true; drm_panel_add(&ctx->panel); From patchwork Mon Dec 12 18:29:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2546 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6B8963F1DA for ; Mon, 12 Dec 2022 19:29:44 +0100 (CET) Received: by mail-pg1-f198.google.com with SMTP id r22-20020a63ce56000000b00478f1cfb0fbsf8043154pgi.0 for ; Mon, 12 Dec 2022 10:29:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670869783; cv=pass; d=google.com; s=arc-20160816; b=zGgUSRUvJXknWfITNAixdxTutlpf935xaYA/PniY9ZvZFS8+zyNtcVDTgYNMGs4F7P PRmFpU145azV7XrhLNx0/G9XZVKiJaytwaUQkdPG4ZZlFGqRZni4CF+5bL8MMga0qBBO vzaq//uGrtssJj0+Yx7hce/HbYL2yJ/o/jhRKQ7NZnj6DLliVjQJ+4Yu/Xfxj5XbLouz BpajMKcSoDkO/xVQ/pJmjZKCCbHDosX4uq3JFuURnJICeQ50jvjVIs4TsmA9Te0Jbrj+ xJBI/W9dst8BKHB5lZvjKynql0ZBJIFGl+X4n5vuzpzesubVQEX7KhYd5o82vMJRlLPf QFDA== 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=TgADT6cHP8XnKJAfEW9/76DK4yUeQPMZ/tskrFu/pbw=; b=HsEjZmXTJH3ex0/V8SEQ+WkybvBMn7MOycg7G7e4jIgU0Qk4ZYukPwJSSCXZF9q2TA EwvREEehMxoBznliCfRGv0IE1tZ5ZqWw9cjJp558YQDWOoCC0p3pwiASVSK5UGfW41LA Q3IPxHma7qLiBarCXMxBz2TvIqb9xoa+4/sB/EdJ2mD7+TS5jfzEmJSm6AJp0oVZb6Qs 1dyF18ic4jvNtnaZguCQQYpKYKhY5upX9ekCTydA9pJgmEcDTP3PCJeHsjs1+Zsfk2o6 lxv5RFcH94p1McDQq47NJfQCmG1P1qyC3qvmlosJlVZU3ShTOt853NIZkwfqfupAaoLB SaHQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JAKFVzLS; 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:message-id:reply-to; bh=TgADT6cHP8XnKJAfEW9/76DK4yUeQPMZ/tskrFu/pbw=; b=AloHcn89myBLBD9XZDQs+5PDUlmiqSipfXLgz55QRwrzZOCGJONpLi80qZ6w4LD6K+ 5y22J+W/z2rIi5V6knPUIts5uNLRODxH+wt7vLtubHLwIn9dQ618fOVV4kfsm7fvNxxw Z0yxtyJWAPcxok4qWbpUzCofO4saxksuBNLFw= 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:message-id:reply-to; bh=TgADT6cHP8XnKJAfEW9/76DK4yUeQPMZ/tskrFu/pbw=; b=r1Bc9QTPJz2D5VV8yPf625qIyEw978rWsa/1doaU1Ie8/JhYV7RCOUPjFbdHjHgnuT nAd2F3Ggkx9t3HbZRFOY7Sevp18ZllR7QLuajm+Z3s6EJbwNJ3V9w1sOG4qVacQLTg6d cYdc/bbW+RvxsdfJsss0fWVqRKEkLNTP6UyDJoryqTp1lcs12HPP/23jrE8y/8Og2D/y 3QVyEJSO8MBFyb7447Q+WNmqA+tlt1IxQK/JwDdopqMrWQfWIOKOVdwAdXOuiAH36dhs a68xx928mcK+K3ltMeCMCd90wdELjVSgCbvkLquuhKywxXYvJHXW+af6FjxxcqVuuyrK mOZw== X-Gm-Message-State: ANoB5pkMadRhjx8LzrutIDpRZeo56mLZQ23nQrOm18Gas4zh8ZOj9iY8 9fhHgbRK69ObUUWudBTh75svFRi9 X-Google-Smtp-Source: AA0mqf5n0G79ThPea8wIZPBdjG4rmIGjmqKJW6th17DQUtmdOha3VgI6VN7KlIgAJNyP6xvYeVRqNw== X-Received: by 2002:a17:902:b086:b0:18e:ca8a:27fc with SMTP id p6-20020a170902b08600b0018eca8a27fcmr567862plr.160.1670869783124; Mon, 12 Dec 2022 10:29:43 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:ed49:b0:178:3881:c7e3 with SMTP id y9-20020a170902ed4900b001783881c7e3ls16197581plb.11.-pod-prod-gmail; Mon, 12 Dec 2022 10:29:42 -0800 (PST) X-Received: by 2002:a05:6a21:8cca:b0:9d:efd3:66e5 with SMTP id ta10-20020a056a218cca00b0009defd366e5mr21863509pzb.44.1670869782280; Mon, 12 Dec 2022 10:29:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670869782; cv=none; d=google.com; s=arc-20160816; b=YfmANOFh+5VVLmbAVXsROZVhfxSb2pOagF4ttes/JUKKk0tnHqL5PX59oIv9c+riam qtvS+htki4dXP5Ls5kd1MAOMhnJDkNd/RExDSv1bCrDK+9SPxkQj2kNU/Sf0tAu05P5q 1+Vq6I+aTInZ7yL3RLhqcDcFRSIGQibJLA+8LCHCW1y4CDue2mnobUsp6yYBN5vV/zPU UJFarFK6MvvPkeHhvfbfjqdI5uazeXmkkvCklrKDN8S1Rnu7/ljPzSlBorxr1tdKVdxg HXEZdarmJjJ0u3PSZ2eCMS35/cqv6EQsu8KrgPlw9WnJho0RcOixvDWqJCqqcXubAVmq 8uXQ== 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=jCpxaDaTA56dGN7NJsLyTmoxT4H5IRGMLzpnnHDD7q8=; b=m35t+55RDTUg0L3DZpECpKWANRPB6ATARweYFE/VxPNacmsBYe/hXCsTKPZY2nJow9 PhI8IVTXyVqhLb2I/k6MTQ2FRPGdgsLGWZzvaqcgFFq1KI9dXZ8iHV4X5Q047U9nP6VG Xramcm5xRl7Dy3VtFWNB55WlRcoFJoGeqCMZRkzsuavaKlbpasEK1GGtTFy5wpwyNhOf MaefJ1xPFwC1GWjr6XO4FiAbDwf3rU5taZzJSUHe3cH5AM8RdEZz9UjPdY0TlhSrXdbc PPU+sXjweSAj4ZxZ7Axewl8cPDZ8bdef82GHLvNm1GlM7lUsB45UHnsup1/ctbPoKnyy XZpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JAKFVzLS; 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 ja2-20020a170902efc200b00178b5bd4335sor4482949plb.0.2022.12.12.10.29.42 for (Google Transport Security); Mon, 12 Dec 2022 10:29:42 -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:903:1d1:b0:189:c47b:af27 with SMTP id e17-20020a17090301d100b00189c47baf27mr23141709plh.10.1670869781961; Mon, 12 Dec 2022 10:29:41 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a809:c713:dc69:f2de:e52f]) by smtp.gmail.com with ESMTPSA id n28-20020a634d5c000000b0046fefb18a09sm5357998pgl.91.2022.12.12.10.29.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 10:29:41 -0800 (PST) From: Jagan Teki To: Marek Szyprowski , Inki Dae , Seung-Woo Kim , Kyungmin Park , Neil Armstrong , Robert Foss , Andrzej Hajda , Sam Ravnborg Cc: Marek Vasut , linux-samsung-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-amarula , Jagan Teki Subject: [PATCH v11 2/3] drm/bridge: tc358764: Enable pre_enable_prev_first flag Date: Mon, 12 Dec 2022 23:59:22 +0530 Message-Id: <20221212182923.29155-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221212182923.29155-1-jagan@amarulasolutions.com> References: <20221212182923.29155-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=JAKFVzLS; 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 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 Reviewed-by: Frieder Schrempf --- Changes for v11, v10: - none 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); From patchwork Mon Dec 12 18:29:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2547 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 B028D3F1DA for ; Mon, 12 Dec 2022 19:29:49 +0100 (CET) Received: by mail-pj1-f70.google.com with SMTP id o18-20020a17090aac1200b00219ca917708sf434797pjq.8 for ; Mon, 12 Dec 2022 10:29:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670869788; cv=pass; d=google.com; s=arc-20160816; b=pGSujwAd5JjOzra3dqmBAyJZsY67yHGdrLHQ0DiF9kcKk9PsP1J13nGfvFRN5QCRaG PHFa0powR5NVI0igOjpx8w1SKsrAoYuuQ8HFA7NZ9zmX4839xGbjCvl7iEOJB50MXvCH pRvKWVI2Fut/F6ZPKS7QvD4BwdicgXU9jc2IhKImDJYLWU6mD3bHpE7HAxmw9XBXTLdf ARMTCRA4hEnXZ/3uVehZOefm963BQ/N87dQ9ZauXmAfrvoKPGFHeI7c5j1cynN18MpzN fcwO4uscDbarCJ2Lr1QVMGfTwHnifRKVb7ca/tUFUpfap8ozVR68/Klr5b44bq6J+a9r yTAA== 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=Ad00E/Q4GFPsoPpt94axr+8ndxM9prseWstVAvqb4PU=; b=z7aeOwnIkt4EiWnq5jwYfb06hDh+5Wl0fDsCImBznNUuf2/YnT2S22O2rVxONK2xhr YgcDbScF6RNMR0vcZxyYJF4myPvyWNyv32TRcFinUIqQ39YTjZLFErsazKBiChNYzK+j 7GQgJqmxMv1w3xaURFDRkHVJD31O8LxaTxcuQCRoA0jSjc1dmQcC+Ugbymy9yrsTYSaW ORicbk1TbidfuKR16xkq7mXFvWxjJ5XI6jShlhfIRpbDmuQUv07wF+8jGEn6QIXcrIeP JLT/c773Hcy3yLMgi5ZMxzUQ+djAdk/Skwl9CM+U0Kbz5HRpi1zJzhELRZdMDh/iW5xl GWgQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Gh4sGxHl; 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:message-id:reply-to; bh=Ad00E/Q4GFPsoPpt94axr+8ndxM9prseWstVAvqb4PU=; b=nns/TJ+eReSScIU/ZqnpVb9zp2yvmegObHYeiacxha/T3CgxOdIE56VFCzbF852hjA zjXavMk2uW6f2SiTZnFIfYDjsviFbnHyvAWZfu/jnhT8PAArDTpW+6ABRzi+XXEvezJt bajrs6kkZuLF1+sVpWNFmqmJvQ4c2sPIhuWus= 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:message-id:reply-to; bh=Ad00E/Q4GFPsoPpt94axr+8ndxM9prseWstVAvqb4PU=; b=hERnvGdTwpKfce8DFwDbo2lSKtAk17hBhdzj8zvvRyVH/8ZF0F4lh/6q8NP8YNkqjH CvXklLFSZOwyd2APX24UokbvjC8CwszVVFBhZM8KR4JPN+KYlzxwdRHROW/PiTbaiyq8 4P4BBQD0ODk+8lQ7NpW9gVsxAlBfsRD0aUbNpfwi/3VCuRzDHD6I9nALCCVfkOFG9rVL Kgv0PRKc+W1CT96cPJoKmTVDjPSvulQmMrqui0eAsoqhHnu/SY3TVi7iA08WYOg4YQRF GYWY7aWy7xxEnJtmfEFNGqv2MXtNqkujjVwpLG2Qm5C7nBfX86VudlSHyZ5wVfVV+tl1 Kc+Q== X-Gm-Message-State: ANoB5pk82KgTe+rw0/RnT6Uq7ffeyPc0hK0V5BLw2O07jNmow0zQLGc8 TifuQiYVjiDN9AGFyZvUo6ZMFIUc X-Google-Smtp-Source: AA0mqf7+bTErR1cEVh2XZ21yULlnwxt/N0IYpRvzLNnH/8jKTT+4/sClXdLt+uk9/Gx/p8q3ECiFPQ== X-Received: by 2002:a17:902:700c:b0:18f:438a:cfe3 with SMTP id y12-20020a170902700c00b0018f438acfe3mr472299plk.124.1670869788357; Mon, 12 Dec 2022 10:29:48 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:7894:b0:178:5938:29de with SMTP id q20-20020a170902789400b00178593829dels16240509pll.2.-pod-prod-gmail; Mon, 12 Dec 2022 10:29:47 -0800 (PST) X-Received: by 2002:a17:902:7088:b0:188:d4ea:252c with SMTP id z8-20020a170902708800b00188d4ea252cmr17509988plk.6.1670869787491; Mon, 12 Dec 2022 10:29:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670869787; cv=none; d=google.com; s=arc-20160816; b=NQRq4jN/Nj+yABsORNu2zPAfnrZpx0J2MBjU1H+xLPcNldIZFT3BB9ZJ23a8nvy3f6 VHaUxia0UztvsrH65NYtHWS8hQBB6uUzKfp13i9cOLTyUuXlBPummAyQfUzZlZO1xN5S I6z9mXJUSbZWlGfEADEpaxZSzVXZnd7hmHpZqsYhn2tFKD57X+cNTfwKEsxlTSvXS5za 0pKTCFddUcBo+ANTAq9B1cL9PxiaHpa3Xg3KwpRtjAHFVRbB19UEEybTTOPkD9LlTFir 1ME5OMb0FY4o0Ea7Laxj4ISKllSKcApjO8O03uoAcf7FtEMLmxCw7li00HhSTrRjJc/u Ghgg== 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=+3thu+TFV75UQnUKi5H5iMkprh+mVb/ueAKw6cINH6Y=; b=zRWqSPKa9/1SO2BkVDmmzVGJ32E6lUyHTlpFOEvrY0ROLFhXnYBcjPoxsMHGosPIlh qkczY9DcXzawQONK2skRMN+Nfy0bTxZ2NDxW9izX1jyX8Fdyrty1m9mD+5e/mcsc4SBL 42CukfsOnKCB+7r6qJ+BCvXuYiuKZO6m6d5VbQOWPAQOE6jiDAHt5q+xzvH3tOaDSbRj zwISd0tohC21WYZxvbaKDjBaIwVreXYLluI1czllXI6YXSYoEIJgqqnmiCvvrzqbheqA Qdzj8YSLQOHyQS99ombaLRx8Jbp0aPLxIuKHUJhaJCxFKsLjieE5I3K9qpand0ZyfPba u50w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Gh4sGxHl; 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 e2-20020a170902744200b001895afb6979sor4530186plt.182.2022.12.12.10.29.47 for (Google Transport Security); Mon, 12 Dec 2022 10:29:47 -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:a05:6a21:3996:b0:a7:345a:1024 with SMTP id ad22-20020a056a21399600b000a7345a1024mr22612382pzc.50.1670869787169; Mon, 12 Dec 2022 10:29:47 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a809:c713:dc69:f2de:e52f]) by smtp.gmail.com with ESMTPSA id n28-20020a634d5c000000b0046fefb18a09sm5357998pgl.91.2022.12.12.10.29.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 10:29:46 -0800 (PST) From: Jagan Teki To: Marek Szyprowski , Inki Dae , Seung-Woo Kim , Kyungmin Park , Neil Armstrong , Robert Foss , Andrzej Hajda , Sam Ravnborg Cc: Marek Vasut , linux-samsung-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-amarula , Jagan Teki Subject: [PATCH v11 3/3] drm: exynos: dsi: Restore proper bridge chain order Date: Mon, 12 Dec 2022 23:59:23 +0530 Message-Id: <20221212182923.29155-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221212182923.29155-1-jagan@amarulasolutions.com> References: <20221212182923.29155-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=Gh4sGxHl; 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: , 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. Reviewed-by: Marek Vasut Signed-off-by: Marek Szyprowski Signed-off-by: Jagan Teki Reviewed-by: Frieder Schrempf --- Changes for v11: - add bridge.pre_enable_prev_first Changes for v10: - collect Marek review tag drivers/gpu/drm/exynos/exynos_drm_dsi.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index ec673223d6b7..9d10a89d28f1 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 = { @@ -1474,7 +1475,10 @@ static int exynos_dsi_host_attach(struct mipi_dsi_host *host, drm_bridge_add(&dsi->bridge); - drm_bridge_attach(encoder, &dsi->bridge, NULL, 0); + drm_bridge_attach(encoder, &dsi->bridge, + list_first_entry_or_null(&encoder->bridge_chain, + struct drm_bridge, + chain_node), 0); /* * This is a temporary solution and should be made by more generic way. @@ -1709,6 +1713,7 @@ static int exynos_dsi_probe(struct platform_device *pdev) dsi->bridge.funcs = &exynos_dsi_bridge_funcs; dsi->bridge.of_node = dev->of_node; dsi->bridge.type = DRM_MODE_CONNECTOR_DSI; + dsi->bridge.pre_enable_prev_first = true; ret = component_add(dev, &exynos_dsi_component_ops); if (ret)