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 64C85C05027 for ; Mon, 20 Feb 2023 09:57:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DF6248591C; Mon, 20 Feb 2023 10:55:58 +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="c/59R6n4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8292A85802; Mon, 20 Feb 2023 10:55:03 +0100 (CET) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (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 89EE08582C for ; Mon, 20 Feb 2023 10:54:53 +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-ed1-x52a.google.com with SMTP id h16so2492911edz.10 for ; Mon, 20 Feb 2023 01:54:53 -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=f6Muu1yz+PtT1Afa7Gyg5rDPIoyOckkrpMIWv0q7bFU=; b=c/59R6n414oHmetWQjbJ3/aaAIlyPfYANoTtZU0f5lhQJ9ocFHuZxXKvoQHhE1JoTL BBy6nTaIt1/ZBkDnL44TVetA1tUTEF3uaPuJDfo3RB6tS457BFg5cyg+ld/tJrxeNI8c QdCnptjhRmKygrhkZJdE8msuVVOo5oR6ozWaXR671heo2fwWWH6ycysEFn7IRLmUsgpW QYICSsvN9frsOdn2ew1yJxF7vbTVXJopw+REEkjKe07AYidh36ZteQNS5OTsDCU9XEN4 hU8okKpXP/1K5MJhhM3/qSzEbptqTMlp341vWrnfVPqsFBPb6Zz3SoGY1F8Bv2cfkt/f Y7XA== 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=f6Muu1yz+PtT1Afa7Gyg5rDPIoyOckkrpMIWv0q7bFU=; b=7CG0Nasx/lvv+09HIyZWz1RSBaHKLtEYvc+W33EmueI+QLxiESD/ezYOOD+nqh93Wq 0o404cFAxeg8ZK58qLNo67Z0TbhrifxAZF2WBZzuopkJyB/N7rTDsT3jATBwLXtAR1uq Hhv8BQv9TpiL9HtIa6tN1GCW9yj0SmjiE4atLfJTeUYDzfJbNcUbF+s1KpmsGbbcD4Ie tBXzLpguc/KMYlnj++v+ZMcrLEOqiBbLftsa4eMY3Rg2lyWrVGd7NDY4tKq0pe4GeBYw xpvMz+M0StV2ypecF/xhS15Im8NqOKvfsB+glcq2vrsi9hNurmmYLJz476ToNiJVStMr 0KwA== X-Gm-Message-State: AO0yUKVdZH8ZF1uF0pQzxdfQKF95q5kBKqxgDqr5DaNxOvCv4t1Rg+U3 8JW9s7q+M2NlBWnFZrLh5CF0p5H56vk= X-Google-Smtp-Source: AK7set8Z4iBjSKNJjrYPxcULwj2nRj4zjHFwBuKbahU9X8zqDtK1daRDN9/HaKup75rzOtE+K8YDWA== X-Received: by 2002:a17:907:2128:b0:8af:54d0:181d with SMTP id qo8-20020a170907212800b008af54d0181dmr7617962ejb.35.1676886893296; Mon, 20 Feb 2023 01:54:53 -0800 (PST) Received: from xeon.. ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id bk7-20020a170906b0c700b008cd37aff603sm1636536ejb.164.2023.02.20.01.54.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 01:54:53 -0800 (PST) From: Svyatoslav Ryhel To: Tom Warren , Anatolij Gustschin , Simon Glass , Svyatoslav Ryhel , Marcel Ziswiler , Thierry Reding , Maxim Schwalm , Dmitry Osipenko Cc: u-boot@lists.denx.de Subject: [PATCH v1 07/11] video: tegra-dc: add panel_set_backlight call Date: Mon, 20 Feb 2023 11:54:21 +0200 Message-Id: <20230220095425.6198-8-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230220095425.6198-1-clamor95@gmail.com> References: <20230220095425.6198-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. 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