]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: system76-acpi: Fix brightness_set schedule while atomic
authorNick Shipp <git@segbrk.com>
Thu, 9 Jul 2020 19:32:32 +0000 (15:32 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 9 Jul 2020 19:40:36 +0000 (22:40 +0300)
commite984c2aa1088895e0e46329d4e6e4fd422c98892
tree561c3eab447e5e2198f2005c6e0ce9ff25497b98
parent5d96e21da2c4291bf5c002739af47cfee57cba25
platform/x86: system76-acpi: Fix brightness_set schedule while atomic

system76_set() was set as an LED ->brightness_set() callback, but it calls
acpi_evaluate_object() which is not atomic-safe. Switch to the
->brightness_set_blocking() LED callback instead.

Signed-off-by: Nick Shipp <git@segbrk.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/system76_acpi.c