]> git.baikalelectronics.ru Git - kernel.git/commit
thunderbolt: Notify userspace when boot_acl is changed
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 26 Jun 2018 11:46:35 +0000 (14:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jul 2018 15:29:17 +0000 (17:29 +0200)
commitda54653ff42b494f7d73a6260fda9dbda25f0e09
treea49847e7e5775d4b6ad7ba5451af8233121c9667
parent8b6b9c33829a6c7f5ce0affd2c83ed6658ffb5a3
thunderbolt: Notify userspace when boot_acl is changed

The commit d4c9d16dca9f ("thunderbolt: Add support for preboot ACL")
introduced boot_acl attribute but missed the fact that now userspace
needs to poll the attribute constantly to find out whether it has
changed or not. Fix this by sending notification to the userspace
whenever the boot_acl attribute is changed.

Fixes: d4c9d16dca9f ("thunderbolt: Add support for preboot ACL")
Reported-and-tested-by: Christian Kellner <christian@kellner.me>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Christian Kellner <christian@kellner.me>
Acked-by: Yehezkel Bernat <yehezkelshb@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/domain.c