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 6BE9DC6FA8E for ; Sun, 26 Feb 2023 18:22:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 72CE3859BA; Sun, 26 Feb 2023 19:21:13 +0100 (CET) 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="VW2Shzy4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A75EB85981; Sun, 26 Feb 2023 19:20:40 +0100 (CET) Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (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 B8E0785947 for ; Sun, 26 Feb 2023 19:20:36 +0100 (CET) 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-lf1-x132.google.com with SMTP id m6so5707861lfq.5 for ; Sun, 26 Feb 2023 10:20:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=VW2Shzy4jP214xPzf543g7GY31I3zflrfOFDwE8lVmwMx3r9fMVqG9175KLxKtQZre q0LgmemlXucB9B2FItkTVJrdKJhvBQtR6JJ7Y+Smkk2VHCJIvgWqw4CGGZU08+W6MRbn 4vNAqQGo0cCCx15V9jbmRueDvpGhUfgM9iDl4nG7d6Sgj4c+4zMhsWFq37sMsT7yg+VL o5pSNElsrTP+qLHyfZO1gEzKRFDF+7ekm/zgh/tZfbQSdUCjjoxvfRhwPtz5cRW2n7L0 C3r63T3/WH/TDP87vjom0DOm4hCDQ8kkrkR2PG4UMy45mUOOKg2PeW6CmMavFuIfcwD6 xZyQ== 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=Z9yJLgNNm86W408EWgxyvPPN6XhxsETzZVXMChCIIS0=; b=n9rPBX9LNSAfXrig2XyaocqH3QAWOT1KcizMXFfO4vZ0npknB+eKY0xl+6grkO81gm /aj15LN8aewz3+gq9pW3KsqrwoBiARutGO4CmVPLOQiZt9izrfh2lQ6k6hBuYl1By0aT FeVz9Noek4wetWNOhd7mkZ6cgQH9BSmvnWtiaUrB7H5xlt93HSuRn2P4QXN4gKlmLX+2 lfac9dt3ZsfHVjfO0RE5ILq5VRRkDxT5cwTKZovhmNsqEQ2zZhsHW8YUZuTVFxY2YyKC JKX6ImClh4bF8H291iFo1MDRASBEA8XGSVN+6YUBeHrnoGhMZrjxUrxeW0u9rbZBkY6W Z7Ew== X-Gm-Message-State: AO0yUKV9FR6h6oDhwfw6Q51MySmLQy64X3qUulYTrgBFAfeTD9KxyUD7 MPe6+aVAf3QX+7dpHZAKtEXL7oNWdFI= X-Google-Smtp-Source: AK7set9zpCdmO+YkZJA/vnoLjqPmk02m0dGiODazcneYa8OAvJ+uHrLTNW5hKmIJB5LXWHghXCTTog== X-Received: by 2002:ac2:538e:0:b0:4cc:53e2:5387 with SMTP id g14-20020ac2538e000000b004cc53e25387mr7914896lfh.50.1677435636518; Sun, 26 Feb 2023 10:20:36 -0800 (PST) Received: from xeon.. ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id x25-20020ac259d9000000b004dc4d984911sm619421lfn.271.2023.02.26.10.20.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 10:20:36 -0800 (PST) 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 v2 07/11] video: tegra-dc: add panel_set_backlight call Date: Sun, 26 Feb 2023 20:20:01 +0200 Message-Id: <20230226182005.27291-8-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230226182005.27291-1-clamor95@gmail.com> References: <20230226182005.27291-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.6 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