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);