]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: sony-laptop: SNC calls should handle BUFFER types
authorMattia Dongili <malattia@linux.it>
Fri, 8 May 2020 00:14:04 +0000 (09:14 +0900)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 12 May 2020 14:27:11 +0000 (17:27 +0300)
commit52e8fae5afe4aedc6eb2d3c134924c6561acbaf8
tree64989466f61853f2019e6ec22b70d085f22b2ada
parent8e0f56d469e676b2350fa469926a01cf1e4d78ed
platform/x86: sony-laptop: SNC calls should handle BUFFER types

After commit ae8c5ee5cdaa ("ACPICA: Dispatcher: always generate buffer
objects for ASL create_field() operator") ACPICA creates buffers even
when new fields are small enough to fit into an integer.
Many SNC calls counted on the old behaviour.
Since sony-laptop already handles the INTEGER/BUFFER case in
sony_nc_buffer_call, switch sony_nc_int_call to use its more generic
function instead.

Fixes: ae8c5ee5cdaa ("ACPICA: Dispatcher: always generate buffer objects for ASL create_field() operator")
Reported-by: Dominik Mierzejewski <dominik@greysector.net>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=207491
Reported-by: William Bader <williambader@hotmail.com>
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1830150
Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/sony-laptop.c