From patchwork Mon Dec 12 14:55:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2539 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8424E40CCE for ; Mon, 12 Dec 2022 15:55:28 +0100 (CET) Received: by mail-pg1-f199.google.com with SMTP id p7-20020a631e47000000b0047691854a86sf7718885pgm.16 for ; Mon, 12 Dec 2022 06:55:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670856927; cv=pass; d=google.com; s=arc-20160816; b=kvixbdJVGsMRGgbz0rV83u8e877NysiTeXJVswnrVtB8k4z98ozG9+xL4Fy3eFQSEv DF6zyS2WfO3mAnJkGX4SeBE8HyBRvbe7dSu693cS5nNebhqqNKZLZbQsc7usdaa6wbKk ChX5BiUAi0n9vMC+mXH5gqf+xbfpLuC9l5D+ZN4OH5n8ixRbiM+tFGCYER/jZEILWon9 dWZ4KmRwP7brlwsdqZVfnrkEAlWSRFZbnryu6i6LlwZsPgVdBAcOFarlm7wa8ga3kxdF yaFgzEILVOW4egWDgXmXdfcfJdNGsphD92GLEU/2TodrE5XWa7JRjG7W9bNiaXetfW2a WYvQ== 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=Hus34OHip6caMeEJhmI+ej2A6Kytn49RLEVS+ZaHW2A=; b=HCmmL9iaKe00hanIax4EZDvZR/A+CQkEXqtwJ748U/Q6WBEQw5UBzx/kOsCFFjisOx kEPLWIFviqa24haYGsoDATtzt+AbPIkgeAj3zmRw5u9DE/m0LhAsB5+ehEZkyCxkThx4 3cNIQN3ihsxot5Q1F9W0XHApnUZw2p+yh6qPzsCdkbjFH+4q6RM+EfqHO768Pt3spDQb XejrpjT+27dYco7WCL6g7g2GWO0xsCdDxBpOZWHc3RHlCVtod3btKRKzt/MMzooq8vTC Io1gJEvPfnDzCwQEgxXFkbG46pmrfTtNbaQwoCIWJgQtKchQ+Ta7mgNOAKroXmGkX0JR pMRQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gXnyqjcr; 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=Hus34OHip6caMeEJhmI+ej2A6Kytn49RLEVS+ZaHW2A=; b=PU7Pt0xIqcTfEyhI4R+FrK8C0Wm/YdXeIgB73GcXyUgEAvl2V8ZWiSapVmYQGaBycO VWXtEhy0nMdyvRIYhIeo2aMCc4ehlKmm6sGIDhOgUxMRGMOhxVCqolWIa1CEVCD8lj18 Bxcx9CltCluMidycyeGQn86iVOI2uBi3xY38s= 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=Hus34OHip6caMeEJhmI+ej2A6Kytn49RLEVS+ZaHW2A=; b=Tt6zoIuIBCEiEV4sYpAyGNGzdpINuCZjtBxY3SCSXUduQ6d2+8yh7ZIB+DkAfgla7M K+rEFpixi3GbcjSAoIX0NK4DexDZ9zOOxhZTt9iZv9NtV+9jOS1XwYLpNd4zR6e2NQXm pQAZEljtQzgYajXlYXNYR7K/IiyaWjIi8sa+V0j45pXwM/iVRYXJLBMxHLzP/lI3aOzV xpXArZOKsqTS2gYmsZk78B8sRv9cHrwgb5A4/OdhiqYXUULK/1XrAohkvASZobTxmJOt FNhas+/pp75qm3WVlO2un8ydvvibC8MnmzJNmJ9P09UICUFqIE5JNwJi1//WB1PKGqS7 YSdg== X-Gm-Message-State: ANoB5pnGC5/9j7uq3L4k8KY5MyZFNjE9HC9Vrv7ux9uwtPZIKKoMqfsO mRYe58Zi6p/WxWCeDNcmFTKsJDHD X-Google-Smtp-Source: AA0mqf44L761EPzq6QwHTdxf8FJurY8rr0kbhpHWnNz7t6CleG3N6fPchTOMv7PxGwgLlGCWcR0UzQ== X-Received: by 2002:a17:903:153:b0:189:98a0:5f05 with SMTP id r19-20020a170903015300b0018998a05f05mr46857084plc.32.1670856926875; Mon, 12 Dec 2022 06:55:26 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:8601:b0:189:b2b2:56d5 with SMTP id f1-20020a170902860100b00189b2b256d5ls15784079plo.0.-pod-prod-gmail; Mon, 12 Dec 2022 06:55:26 -0800 (PST) X-Received: by 2002:a17:902:e54c:b0:189:c1b4:8fe6 with SMTP id n12-20020a170902e54c00b00189c1b48fe6mr22718031plf.53.1670856925944; Mon, 12 Dec 2022 06:55:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670856925; cv=none; d=google.com; s=arc-20160816; b=XXbmBUxO2gVTwDphAeInjg4Rq0Tf9dFfSPyPB6A6RxJ6lXB4NKZbsCTewXA6IBtjPH SItJ/c24c3Ug+g2Ljb9BL3kLGQFPGdGDIDzPnHypiOG9JoWzSbgtG7JVNyC/V1iI41Nu i+cS3H4rsvGdaMl6DAiAMyyUc7Q7Z9nX75ytmKC3fgSe6mGoruaT7fclqNEWLhPHXeMd ra5QJaKNzz9l6QCk9yrkbaN5qnea6Gr6BettGpLSIG4U4yhDBhg+qyy6uc2CiFvRfjjl AYugctjFQk1Wvldrv90bYaUE3zaWFoS9LNhhXmHZ+ofmqw7DjObo+GXOe8hNvuVH1MA5 l7Lw== 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=NlSuQTrbVzaxIlmPuxUKvQXXdzde89nREfoms55D9Qs=; b=nihwChTa5zqLUHSogYoct8wehOzULAUoSmGK13PinIG6xQ5fGez3FnVccSnSXecFgl FUekBLhBKNaF7ha+m3WXRK5/TishvE7wwg6bH7UJlR/Zh8Zd7lOr1z//lm/SggcRyacd lFCXt6dXVq1BREMn9NnQ2bu2pwz3eY45/DNGxL6pOoGxFFZJoDTllXxc4/gdcjzPteEk yqcOqwt+dsTNobcS2WA3sy9DAIa4ULlaHOsMqG1Ux9Jp0I81He6V4lmlQ+VyZCoNm5LI CteH4dwC9FbCTRt2xHOD9x9OVzlrxcQJh1yF7MZaGEp7/iBh8HXNTCaVL168hiBpYfHJ 4LYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gXnyqjcr; 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 h4-20020a170902748400b00189d96f2646sor4243286pll.78.2022.12.12.06.55.25 for (Google Transport Security); Mon, 12 Dec 2022 06:55:25 -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:902:e811:b0:189:d8fb:152d with SMTP id u17-20020a170902e81100b00189d8fb152dmr23302674plg.25.1670856925633; Mon, 12 Dec 2022 06:55:25 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a809:c713:dc69:f2de:e52f]) by smtp.gmail.com with ESMTPSA id e11-20020a170902784b00b001782aab6318sm6463272pln.68.2022.12.12.06.55.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 06:55:25 -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 v10 1/3] drm: panel: Enable prepare_prev_first flag for samsung-s6e panels Date: Mon, 12 Dec 2022 20:25:06 +0530 Message-Id: <20221212145508.15096-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221212145508.15096-1-jagan@amarulasolutions.com> References: <20221212145508.15096-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=gXnyqjcr; 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 --- Changes for 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 14:55:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2540 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 1E7AD40CCE for ; Mon, 12 Dec 2022 15:55:33 +0100 (CET) Received: by mail-pg1-f198.google.com with SMTP id x79-20020a633152000000b004785d1cf6bbsf7657157pgx.6 for ; Mon, 12 Dec 2022 06:55:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670856931; cv=pass; d=google.com; s=arc-20160816; b=KPqWAQvKG2YpFdcxfkgEHIU+A9CgcZtmyZKeRoGFJlyuVSxBb1bWDNrFi4ok853u2w UpH6d9LcrWqAKbuXKiEdoN6nWDGQwqfP5Ocop4quKEGbgp5YL0gyuoUljXNngdEHmpuc IItk9xa3TEu01TBhFE8H70N7wCo7SPe2am50KAerbP6uTHTKReW5Ne+y7TooOO1eyWm0 /4hsBZ0WCjKEeH3LIY3e1kIaoUZJr55eW64fz9Lyu6zPLAm0FE5AubE20F/YbVBBbrRn IqfPOGsDPskctgTSnFT3S67D0X3uQE5nB1rDht29oUMWcpwsCVGPtxoVSfjiK+xupp6E TY6Q== 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=vADb+38vWJa2OoB7+dOnnnSwgW4zc2FGf/z1LPC5O+c=; b=nKKfAgce7dGPWlGvY+0YAfLeWOC9KlRHvk+p2Y05hgy0i0csb38RXUcYNPbdAchpSU 94mEN/oyD2NI0nthFffD89eII4vTxD/BHreN4B1qwkpe8hWkbwC4N1O1dLmjj5NEnoxn bIf+3ej+RTNexPNBgyspsjoiANVQ4+DLC2PwS5unGj7ImoLbqZUMMWg6fFLl5GfeIbjg FCB/Ad7kIZHlUX3yHSH4lMXFPzK+CweFCcMWmD7m3G02wUfENkVTVSj2RmIknJ7UmwFj lhn+Gy4D4m371TQGQKVm7lVozTN3GRSr7SSifiWkt2nLTnMFndfHZbxNC/Kdwqp7KS4T 21yw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nt1qHxoU; 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=vADb+38vWJa2OoB7+dOnnnSwgW4zc2FGf/z1LPC5O+c=; b=ccbC23fkamKTPJ67tqrNbhES3fOLKkSDrusZbfK47ilROM9MDcW5Kk7O36Z1v8hGFG DpUYbiqiyyy0bSdISegugdrFHv+QsFM8/yoIOzdCRl//oGz8O9GQe0duW9Z/D3ZIBInI wwB8jA2x88nMrtJskM22vnMDd7bOrPaEppZqA= 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=vADb+38vWJa2OoB7+dOnnnSwgW4zc2FGf/z1LPC5O+c=; b=eG3NCgWVWeFrmPnWpogzAHT19k1+x0NaPjBzn8xghE3fkeTSgkKnXcmM7bz3FfLqYY GubFpXhnA0/kNqoj8tUmEaWvR4od9aUkhPPFyFMAvNseGKECXePBFdfT+gXQ/e3YK5/X Y6Dw6EK7owQv9te4NcDV+8CrZm9SlpvqN/LtHSsGqq1w9vq4G8z2XSlZVlFSVe6V4u/N rZMgDKCR3qAynTrsY1wECxBA6Mj46z34KkmTWQcneC6Tm2CS+iC4JJnbCTmVko6TX7vN EhF6oekbr5njf1WB9HeBJBhH1rl5VAmXSnc4RjSgalBVH61sh4YzoCb2N+kumx2k4nBU 2nYg== X-Gm-Message-State: ANoB5pl/6oTbjsK706poQYtfCjfFuq1jXSZKUnZcQOxsYsL271c9D4/Z ZFHxX9KvX3mbqF8WPKneU+ONbGWo X-Google-Smtp-Source: AA0mqf6zmZKSGiek2dAjuugiAgIKn6UyNzJTZLYGGmYYkSY5w98eti3vhqP8/SOiawSWW98O3blSsQ== X-Received: by 2002:a17:90b:3c0b:b0:219:e2f1:81ad with SMTP id pb11-20020a17090b3c0b00b00219e2f181admr17805326pjb.19.1670856931751; Mon, 12 Dec 2022 06:55:31 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:e305:b0:186:af8a:6095 with SMTP id q5-20020a170902e30500b00186af8a6095ls15733789plc.4.-pod-prod-gmail; Mon, 12 Dec 2022 06:55:31 -0800 (PST) X-Received: by 2002:a17:902:9897:b0:189:9ee0:cc8e with SMTP id s23-20020a170902989700b001899ee0cc8emr16153782plp.57.1670856930799; Mon, 12 Dec 2022 06:55:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670856930; cv=none; d=google.com; s=arc-20160816; b=yTEscQv+24U8ECLrpAJJic+/oWG8qnlK95F0Awwv/wwGfjQD5PhFn+6KYW3St7ToZQ ehCkZuITgeCwLHoemTj72B5jmNGMpIO55OG45FmCnK7EW8Exfs8Fr0Ra1LsjknzzS/CX dBW3tOUoc/1/DzHFOpAgwqcmue2fSYMDxmk3F+NRYkAjkvZQqioj/8l6k+WjwrVawV3M hJLLtHq5P5Fq8CIU06cmUgtc3RAFwXyJpjzljqhYPNNqBTaiZVShwWoxHxeZwRakPNT1 eCa2rDQlQQF0EgI0Y2KspRpCzRO9WYapUVzpXOsFliF5TIg7VIa4FSTFMXaag2iAAtkd vIlA== 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=v4ea8rvmGnrS/8sRSsoYglrzM9FWA5fUizBf/l/CVMc=; b=Sj0u7zvFCYDBrXeiSnBd67xqJdKla/bNyrsuQKXMRL9azM4o4AgWVFKBMTOp3jcxQH 6RyI/STjy7YmAJCx1IG/m6FyXlU/8IxUuyDjTOzMeGR5L3cPyX4Zkcvlli8VzDOnfM7V a9nCXJ3/3zd9JWkQAzPjRDkIqOT/x4YqUm54yu3KFOTQA1/vp4WBikqj7dNXTKwlDbNf BKUOkCZWMf7aqylvkv4eEjJQf3zLD96jwM4lLPNhpQtOFB4ihGD8awiYU7+rg4D4Qj57 2szgkJSymCkNd8jF2OXkoyGPoToc8OMwConiEtm+w2iDOjLlb/HzdQR+mAb7U11F8Kd/ JvHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nt1qHxoU; 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 o11-20020a170902778b00b001890ee320b9sor4190538pll.17.2022.12.12.06.55.30 for (Google Transport Security); Mon, 12 Dec 2022 06:55:30 -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:902:6b05:b0:186:b063:32e with SMTP id o5-20020a1709026b0500b00186b063032emr17616981plk.62.1670856930519; Mon, 12 Dec 2022 06:55:30 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a809:c713:dc69:f2de:e52f]) by smtp.gmail.com with ESMTPSA id e11-20020a170902784b00b001782aab6318sm6463272pln.68.2022.12.12.06.55.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 06:55:29 -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 v10 2/3] drm/bridge: tc358764: Enable pre_enable_prev_first flag Date: Mon, 12 Dec 2022 20:25:07 +0530 Message-Id: <20221212145508.15096-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221212145508.15096-1-jagan@amarulasolutions.com> References: <20221212145508.15096-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=nt1qHxoU; 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 --- Changes for 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 14:55:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2541 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 CEB1C40CCE for ; Mon, 12 Dec 2022 15:55:37 +0100 (CET) Received: by mail-pl1-f200.google.com with SMTP id c12-20020a170902d48c00b00189e5443387sf10623579plg.15 for ; Mon, 12 Dec 2022 06:55:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670856936; cv=pass; d=google.com; s=arc-20160816; b=gw3tZpmIzvI8DppSuqnsB4260o6aiLGTW3aqBpbWTMCv4q+UlaVN7oWUiWBljOfWVI YDndfurm+mcE7u4FQwJ+//u+8TarXfp719aDHzHANJirle7oJ04Ojov6tFrUb9UgHpPW hrn+ZK+R1hufqL7oiUOhCxrG0c+BocGshvz8M2f9S0AJOuD3xuCQuhxm+k0ue2YYD3h3 Alg7dVmycTAxMBxeNkbHBNlTeXovUIo7zqkMWeV5C4KuO/CyU4n4A0oLyXTtE+N1jus6 EQh1HeNWCOCfzLqvnC1ui8UpErUSF0pC2nJ4TqagQibUIrthf6tSwh9SaLr2GhB0gKqa 661w== 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=d2Au4olZnbJ3W4O+wgqgaid2/iHKZpS1z1hPdlv9L7U=; b=ykBKD4ldNYhJ5Nhf9dCskrs/H8K+cElidX7bEh4T5cn9WPLOY+Ozx4KiWq8+78Lbde HzSFxiILfgYgAQZNlIr6GeK1bKdoN/LjpqCZH0YBoDDRW5ICGFveJ5jGb0lIAe3WQg4B tgdED8lffLJDWaH7p5m2POijLOHBb3nN5Itz6EH5L4DfrgeaUtD02uQmCJ1Gtli3FciN /NoN+Xn6gyDkcuPmRCxYBvCZRJ8tz9okv14nvt4zoJUtRbBmGa6MQCf45121Xx81gBrg IG4DUaeeviAlIiWcPwVGF6d8VcirOQ2ADWNQKSxJZuBIOT525UZnei/+cqmGshZ/MSPs l4gQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BuTOUmaR; 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=d2Au4olZnbJ3W4O+wgqgaid2/iHKZpS1z1hPdlv9L7U=; b=HiIAKA354u8bBCsIiaYmfI7P12sAYcvf7r2KvoRrpHIU889aqOza0j7AN5J+x7+9l3 arzW/J5chfQSIuiC4S38KJ56j9JAvrsq8mAEH+t8Dq3vAlyf6pXfP7/4UssdtQ6U7kxy VUuRbApglKlkPcclDGbTzN6FYLyMcOCMJhI6k= 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=d2Au4olZnbJ3W4O+wgqgaid2/iHKZpS1z1hPdlv9L7U=; b=XnLQm3qqhsSHpPrqJIIGZkG0FPn67Xx/OrloSbLlNIloGIOXY+oUZZX1fiaWYfr1yR BTPewHrnYVD5moeGgfonrQzlcN/pkIoXON7P/AYEDCHC1mrMjSE2UZ6pB8i3TO53IwU1 uP6YEqqFJQcn++refv4ICIADzqrGur86hrAFa49ufex5CX1V5XVgI7BWWU1hQ8iXILrB g/0VFVNC59I0xa42ue8lSPGKMfS5w7Q5SEp7Pl8ceh9Gvfq2cB1bDe7Bv+w7o6gSHqgF E7zJa59hmFxU2y3XXq+QG8A74pIXnKXrrCmzaxi0Qbmjbp9xKxCLATiPF/ZFCRArnxIz 94cw== X-Gm-Message-State: ANoB5plOtWiT9tsEx4QMW909zgcr8OYzDVB18K+GOCL8G6IvGisQX+4v smrwQlEbEyxQewxsrim1o1yejaCL X-Google-Smtp-Source: AA0mqf45/Wb/6Wmb7IjbwVIiqGGDMlJTgtCH2OQI+sTWiiSFPbZBglFD0zuzX1KjHPDTZ+nQAw8Y9w== X-Received: by 2002:a65:64d1:0:b0:478:980a:53fb with SMTP id t17-20020a6564d1000000b00478980a53fbmr22681258pgv.484.1670856936479; Mon, 12 Dec 2022 06:55:36 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:7143:b0:202:a0c3:702 with SMTP id g3-20020a17090a714300b00202a0c30702ls17104554pjs.1.-pod-control-gmail; Mon, 12 Dec 2022 06:55:35 -0800 (PST) X-Received: by 2002:a17:902:d717:b0:188:fc68:d366 with SMTP id w23-20020a170902d71700b00188fc68d366mr16756535ply.40.1670856935614; Mon, 12 Dec 2022 06:55:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670856935; cv=none; d=google.com; s=arc-20160816; b=E3eX2ti6fYFZJig+hKjgqNVJ0s0d/uC/XJ0DQSYBRkeScK6xH0tcP4gQZUHL57eMss kEE+GbrAuSulVQEk+sn6AYLZRw2MGHaR9mqFMeE51PTSXGq+ws5A8uIb61ppFwSVwBwM b9zSRPGLJpTEuuoxKPvH7Mu+20nIPsgWjZsrMRKnRqkQjstJQxCBJ63z9v/b8UCHDPYR uxMjY7dMNnSbILFODOmZ/fgEcnbviU2u9WAt/2rFkO1YB7E7PRkX95mt1WEo0YsFfpo0 pUrxxLQKiMgwO16EQLlepREE0MY0Oi3eO2GMogW3LuJYWqey1Kmhd6kuKXZSNOWR+5Mm 2JLQ== 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=y/y5vw0u9kB/6hX1ihxQilGZuqMG9YrydhtDvt3iYOI=; b=MjG9E8B5+4ncYeY+/kVmW/2KwW8Yx5nblwrTxCHlgL5BOj8cnwGAqneLefpgZlv0Uh PxePKYx+dGkdegJeDCncebc3X8xYqwsaF3v08hXj/gPRXNCJ8X/JQ36d8BuTumyl9GLg Ma0XeG5D9yjCcnyy/z4K6tr5Immbb/tamwFHV99DGf74Kgt+Ke0JVI3c/HllJYG33oDR uV2azPpCHn21LL+DOz5hH3L7YJZ7/YbkUbZE/Cv/74J9j/AkQ32w5LiZdBWAWJqg+qGz JKalJ1iIm0tyT3zBcVvsYdk5RitRZJKZa9XkLgfoTv3vmlz6xp3r1yunm+NLUmAkphs4 A0Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BuTOUmaR; 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 q10-20020a170902daca00b00186c3728de2sor4250339plx.86.2022.12.12.06.55.35 for (Google Transport Security); Mon, 12 Dec 2022 06:55:35 -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:902:b494:b0:188:635d:4ca9 with SMTP id y20-20020a170902b49400b00188635d4ca9mr17072148plr.2.1670856935321; Mon, 12 Dec 2022 06:55:35 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a809:c713:dc69:f2de:e52f]) by smtp.gmail.com with ESMTPSA id e11-20020a170902784b00b001782aab6318sm6463272pln.68.2022.12.12.06.55.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 06:55:34 -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 v10 3/3] drm: exynos: dsi: Restore proper bridge chain order Date: Mon, 12 Dec 2022 20:25:08 +0530 Message-Id: <20221212145508.15096-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221212145508.15096-1-jagan@amarulasolutions.com> References: <20221212145508.15096-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=BuTOUmaR; 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. Reviewed-by: Marek Vasut Signed-off-by: Marek Szyprowski Signed-off-by: Jagan Teki --- Changes for v10: - collect Marek review tag drivers/gpu/drm/exynos/exynos_drm_dsi.c | 8 ++++++-- 1 file changed, 6 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..e5b1540c4ae4 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.