From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6AEEBC76195 for ; Mon, 27 Mar 2023 08:15:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E0BEF860C9; Mon, 27 Mar 2023 10:14:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Qaff7BBg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E7E5F86093; Mon, 27 Mar 2023 10:12:50 +0200 (CEST) Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C6F8B86093 for ; Mon, 27 Mar 2023 10:12:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=clamor95@gmail.com Received: by mail-lj1-x22a.google.com with SMTP id o20so5056886ljp.3 for ; Mon, 27 Mar 2023 01:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679904746; 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=Z9yJLgNNm86W408EWgxyvPPN6XhxsETzZVXMChCIIS0=; b=Qaff7BBg6x63bNdf7zPObWTIqwd8OuBaLw35nkoEmy6T5BBNF/byIMtnT26giye4og mA8IWYgs1cX8lr8dULx5SXNvFw9SGKZTPXGEoOH7+GEZCP8QzxSa/8oSkvbYEU/TCzB6 fLAoIFEWbWlLrakXEoxRUGEkp7uwhQWXxPWWSkGKmI9weIu2zhI5Mzmv1hPCJc0HbZdb NWLVxMQhEwlcxzG2tDDBRrXMo9TV7ft8mSNGETpDgReFzy0u5DahBfQD/L/Gu3Tpc9rk iRRpaMGThuuLbFus84MytECbuhcKVqxbGDqzWpJhBEWrwflBPYRAPpWn0PARY1VL9Kbl hyaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679904746; 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=Z9yJLgNNm86W408EWgxyvPPN6XhxsETzZVXMChCIIS0=; b=EUkSMhb6LxEQ3IkOyekmWtXHaArvMeDbPV9a6eeU8ewT1gvdJFaiE2LeV6DeZIgwRX lzQ6mjMr2l6ppkMyU72R4YcIBeuvGVyb/JI9EhzTI2f0upXqSsMD85rtZmIujp9Gqd34 EbzfmFE+Kx2H87h0L2RHIqzGenrOO53m8mxXF0QJf6KjrCMLTliyTV4c+a3ifWUENzmt aIgLpbcVuUzat8t0Wx/UB0OCiAUfSNokutamjmhdNeBO9HTtngfELG8QXReQtEmRxoZJ 5okyjYvqvQzB2OiD0USLDrrx4+FYlunTz0DTD7pTC332LMkJPNgqP2h2PSyK01i4AsZU kK7g== X-Gm-Message-State: AAQBX9f/UAxPKWUR9ioz9ocUdDdVYdHsP9mEoDLkuz1/PRPsfNK5UC4F fSUD8iiIVq/WE/Bcj7izWXY= X-Google-Smtp-Source: AKy350ZvNlbZtu2Oa8AhlN3Cnk55Q49j14p8jcFY5a2tL6c2h8BZTcYf4X27BkU9RHkUMoPjL0r8Gg== X-Received: by 2002:a2e:964e:0:b0:298:c19f:467f with SMTP id z14-20020a2e964e000000b00298c19f467fmr3631575ljh.51.1679904746062; Mon, 27 Mar 2023 01:12:26 -0700 (PDT) Received: from xeon.. ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id z2-20020a2e8402000000b002a32238ea10sm1460263ljg.53.2023.03.27.01.12.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 01:12:25 -0700 (PDT) From: Svyatoslav Ryhel To: Tom Warren , Anatolij Gustschin , Simon Glass , Svyatoslav Ryhel , Marcel Ziswiler , Thierry Reding , Maxim Schwalm , Dmitry Osipenko , Nicolas Chauvet Cc: u-boot@lists.denx.de Subject: [PATCH v3 07/11] video: tegra-dc: add panel_set_backlight call Date: Mon, 27 Mar 2023 11:11:46 +0300 Message-Id: <20230327081150.4585-8-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230327081150.4585-1-clamor95@gmail.com> References: <20230327081150.4585-1-clamor95@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Tegra DC driver does not call panel_set_backlight, which can result in absence of backlight on device. Fix this by calling panel_set_backlight with BACKLIGHT_DEFAULT just after panel_enable_backlight. Tested-by: Robert Eckelmann # ASUS TF101 T20 Tested-by: Nicolas Chauvet # Paz00 Tested-by: Andreas Westman Dorcsak # ASUS TF T30 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Svyatoslav Ryhel --- drivers/video/tegra20/tegra-dc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/video/tegra20/tegra-dc.c b/drivers/video/tegra20/tegra-dc.c index e279650922..00462fa188 100644 --- a/drivers/video/tegra20/tegra-dc.c +++ b/drivers/video/tegra20/tegra-dc.c @@ -4,6 +4,7 @@ */ #include +#include #include #include #include @@ -345,6 +346,12 @@ static int tegra_lcd_probe(struct udevice *dev) return ret; } + ret = panel_set_backlight(priv->panel, BACKLIGHT_DEFAULT); + if (ret) { + debug("%s: Cannot set backlight to default, ret=%d\n", __func__, ret); + return ret; + } + mmu_set_region_dcache_behaviour(priv->frame_buffer, plat->size, DCACHE_WRITETHROUGH); -- 2.37.2