[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHp75Ve9KGS+3PWCt20=vshfsw5EEjw42FjDAnKE8gwLVpRB6Q@mail.gmail.com>
Date: Fri, 10 Jul 2020 23:38:50 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Aaron Ma <aaron.ma@...onical.com>
Cc: mapengyu@...il.com,
Henrique de Moraes Holschuh <ibm-acpi@....eng.br>,
Darren Hart <dvhart@...radead.org>,
Andy Shevchenko <andy@...radead.org>,
Thinkpad-acpi devel ML <ibm-acpi-devel@...ts.sourceforge.net>,
Platform Driver <platform-driver-x86@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [v3][PATCH] platform/x86: thinkpad_acpi: not loading
brightness_init when _BCL invalid
On Fri, Jul 10, 2020 at 4:56 AM Aaron Ma <aaron.ma@...onical.com> wrote:
>
> When _BCL invalid, disable thinkpad_acpi backlight brightness control.
>
> brightness_enable is already checked at the beginning.
> Most new thinkpads are using GPU driver to control brightness now,
> print notice when enabled brightness control even when brightness_enable = 1.
>
Pushed to my review and testing queue, thanks!
> Signed-off-by: Aaron Ma <aaron.ma@...onical.com>
> ---
> drivers/platform/x86/thinkpad_acpi.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
> index ff7f0a4f2475..2b36d5416a3b 100644
> --- a/drivers/platform/x86/thinkpad_acpi.c
> +++ b/drivers/platform/x86/thinkpad_acpi.c
> @@ -6955,10 +6955,13 @@ static int __init brightness_init(struct ibm_init_struct *iibm)
> pr_warn("Cannot enable backlight brightness support, ACPI is already handling it. Refer to the acpi_backlight kernel parameter.\n");
> return 1;
> }
> - } else if (tp_features.bright_acpimode && brightness_enable > 1) {
> - pr_notice("Standard ACPI backlight interface not available, thinkpad_acpi native brightness control enabled\n");
> + } else if (!tp_features.bright_acpimode) {
> + pr_notice("ACPI backlight interface not available\n");
> + return 1;
> }
>
> + pr_notice("ACPI native brightness control enabled\n");
> +
> /*
> * Check for module parameter bogosity, note that we
> * init brightness_mode to TPACPI_BRGHT_MODE_MAX in order to be
> --
> 2.26.2
>
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists