From patchwork Mon Oct 24 11:34:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiko Odaki X-Patchwork-Id: 13017629 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D7FA3C38A2D for ; Mon, 24 Oct 2022 13:25:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5211C10E701; Mon, 24 Oct 2022 13:25:07 +0000 (UTC) Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by gabe.freedesktop.org (Postfix) with ESMTPS id F3E3610E388 for ; Mon, 24 Oct 2022 11:35:41 +0000 (UTC) Received: by mail-pf1-x42b.google.com with SMTP id 192so1562260pfx.5 for ; Mon, 24 Oct 2022 04:35:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zcdfaNsoIuuSNF9XByhbeUp3KpNdfCPWzGZ8aF5nLxA=; b=A/SaFlQiUebp/U4yUjESResGqrVwntBISSfqBzWDzKJibVbtIVr9UUfU6mxLj07U3t BF1P1ziYSaSoZu2hLeXkqtIzAlvAh0MFneC+wQBMWmi0FH1LXXFBqHadJUpo8KeJTncO UfWe0DIEAPCTW/sCTy15HwE2CBjAb+Rx1eEUSB+NNH260sZc5OtfAVjOXussqn3KA347 PpO/tyEscshRJ9N6nCBeacKW6fv3Tw1lcWUes4Zil4fK5WzarbbrLQTA4j7+JXjg1OB5 Nl7VXtFCfuFWoaeikVJ/SxvLnxREoubYa0ceNbAiLW7yzBhF70OMrb+09Y3IJKqA+AuT 576g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zcdfaNsoIuuSNF9XByhbeUp3KpNdfCPWzGZ8aF5nLxA=; b=YLF4Ea9CIkNdV5T3wzsGTxfOegbeYCkZmbvXc455VQvvGKpzQi8IjU/nlGGsxfVQA5 eM7i6QcxhLxcegMei4GmTTPt/XfgM0G50nuT6udHgW+T3fpZ+F3pnZv/wybL3j8IZ7iP fReyGiN41bO1Jxb/8TFqcwCu7eV/lQPIPkR6xm+ou9GtjdCt9btZwfHML3cquupOtiyc R3ROrN5+O+F03+DEHhY+hL0i8n4tozaiBVME1opYQ75AmnzTNrxn325ttwcBUs4i+WnV c44m315V54W9EX546jp023MerjgxjVTpmnN7aF8PzUF04scNwYOJ/1bboNemnN7dc6OB 4drQ== X-Gm-Message-State: ACrzQf0/Lb2/s5q6nD/YNsWDhtcAgbvpMFfzxGf+BSmPfpRGxhl5eula buDxbsbOrl5RJfdYb1YxdRXC9Q== X-Google-Smtp-Source: AMsMyM5stq/ljVzMueZdUgOUcwUqYp0qFBFo+CXciS0i44pLthcVHJASa5mVlU8sjRqgQycqku2BPA== X-Received: by 2002:a63:2345:0:b0:463:7c74:73b with SMTP id u5-20020a632345000000b004637c74073bmr28176901pgm.39.1666611341111; Mon, 24 Oct 2022 04:35:41 -0700 (PDT) Received: from fedora.flets-east.jp ([2400:4050:c360:8200:8ae8:3c4:c0da:7419]) by smtp.gmail.com with ESMTPSA id b8-20020a170903228800b001830ed575c3sm19475075plh.117.2022.10.24.04.35.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 04:35:40 -0700 (PDT) From: Akihiko Odaki To: Date: Mon, 24 Oct 2022 20:34:51 +0900 Message-Id: <20221024113513.5205-1-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 24 Oct 2022 13:23:26 +0000 Subject: [Intel-gfx] [PATCH 00/22] Fallback to native backlight X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fbdev@vger.kernel.org, Ike Panhc , "Rafael J. Wysocki" , dri-devel@lists.freedesktop.org, Azael Avalos , Mattia Dongili , Daniel Dadap , Henrique de Moraes Holschuh , Akihiko Odaki , David Airlie , Daniel Thompson , Jonathan Woithe , Jonathan Corbet , "Lee, Chun-Yi" , Helge Deller , Lee Jones , Robert Moore , linux-acpi@vger.kernel.org, Cezary Jackiewicz , Len Brown , Kenneth Chan , Corentin Chary , intel-gfx@lists.freedesktop.org, acpi4asus-user@lists.sourceforge.net, Maxime Ripard , Mark Gross , Hans de Goede , Rodrigo Vivi , Daniel Vetter , platform-driver-x86@vger.kernel.org, devel@acpica.org, ibm-acpi-devel@lists.sourceforge.net, Jingoo Han , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Zimmermann , =?utf-8?q?Pali_Roh=C3=A1r?= Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Commit 2600bfa3df99 ("ACPI: video: Add acpi_video_backlight_use_native() helper") and following commits made native backlight unavailable if CONFIG_ACPI_VIDEO is set and the backlight feature of ACPI video is unavailable, which broke the backlight functionality on Lenovo ThinkPad C13 Yoga Chromebook. Allow to fall back to native backlight in such cases. Signed-off-by: Akihiko Odaki Akihiko Odaki (22): drm/i915/opregion: Improve backlight request condition ACPI: video: Introduce acpi_video_get_backlight_types() LoongArch: Use acpi_video_get_backlight_types() platform/x86: acer-wmi: Use acpi_video_get_backlight_types() platform/x86: asus-laptop: Use acpi_video_get_backlight_types() platform/x86: asus-wmi: Use acpi_video_get_backlight_types() platform/x86: compal-laptop: Use acpi_video_get_backlight_types() platform/x86: eeepc-laptop: Use acpi_video_get_backlight_types() platform/x86: fujitsu-laptop: Use acpi_video_get_backlight_types() platform/x86: ideapad-laptop: Use acpi_video_get_backlight_types() platform/x86: msi-laptop: Use acpi_video_get_backlight_types() platform/x86: msi-wmi: Use acpi_video_get_backlight_types() platform/x86: nvidia-wmi-ec-backlight: Use acpi_video_get_backlight_types() platform/x86: panasonic-laptop: Use acpi_video_get_backlight_types() platform/x86: samsung-laptop: Use acpi_video_get_backlight_types() platform/x86: sony-laptop: Use acpi_video_get_backlight_types() platform/x86: thinkpad_acpi: Use acpi_video_get_backlight_types() platform/x86: toshiba_acpi: Use acpi_video_get_backlight_types() platform/x86: dell-laptop: Use acpi_video_get_backlight_types() platform/x86: intel_oaktrail: Use acpi_video_get_backlight_types() ACPI: video: Remove acpi_video_get_backlight_type() ACPI: video: Fallback to native backlight Documentation/gpu/todo.rst | 8 +-- drivers/acpi/acpi_video.c | 2 +- drivers/acpi/video_detect.c | 54 ++++++++++--------- drivers/gpu/drm/i915/display/intel_opregion.c | 3 +- drivers/platform/loongarch/loongson-laptop.c | 4 +- drivers/platform/x86/acer-wmi.c | 2 +- drivers/platform/x86/asus-laptop.c | 2 +- drivers/platform/x86/asus-wmi.c | 4 +- drivers/platform/x86/compal-laptop.c | 2 +- drivers/platform/x86/dell/dell-laptop.c | 2 +- drivers/platform/x86/eeepc-laptop.c | 2 +- drivers/platform/x86/fujitsu-laptop.c | 4 +- drivers/platform/x86/ideapad-laptop.c | 2 +- drivers/platform/x86/intel/oaktrail.c | 2 +- drivers/platform/x86/msi-laptop.c | 2 +- drivers/platform/x86/msi-wmi.c | 2 +- .../platform/x86/nvidia-wmi-ec-backlight.c | 2 +- drivers/platform/x86/panasonic-laptop.c | 2 +- drivers/platform/x86/samsung-laptop.c | 2 +- drivers/platform/x86/sony-laptop.c | 2 +- drivers/platform/x86/thinkpad_acpi.c | 4 +- drivers/platform/x86/toshiba_acpi.c | 2 +- drivers/video/backlight/backlight.c | 18 +++++++ include/acpi/video.h | 21 ++++---- include/linux/backlight.h | 1 + 25 files changed, 85 insertions(+), 66 deletions(-)