]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: wmi: Replace read_takes_no_args with a flags field
authorHans de Goede <hdegoede@redhat.com>
Sun, 28 Nov 2021 19:00:27 +0000 (20:00 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 6 Dec 2021 21:33:22 +0000 (22:33 +0100)
commita2249d5f54bac479359b7103dc5f71d3f6b9a0e6
tree5aff4cad39086e64d84068cd635480a89bd6d68f
parent503b057e61d33df316f45747171ae4d636afbd5f
platform/x86: wmi: Replace read_takes_no_args with a flags field

Replace the wmi_block.read_takes_no_args bool field with
an unsigned long flags field, used together with test_bit()
and friends.

This is a preparation patch for fixing a driver->notify() vs ->probe()
race, which requires atomic flag handling.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211128190031.405620-1-hdegoede@redhat.com
drivers/platform/x86/wmi.c