x86/platform/intel/iosf_mbi: Add unlocked PMIC bus access notifier unregister
authorHans de Goede <j.w.r.degoede@gmail.com>
Thu, 19 Oct 2017 11:16:19 +0000 (13:16 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 10 Nov 2017 12:14:02 +0000 (13:14 +0100)
commitaf0ab55ffe2467fab82bc0909e469cba7701fac7
tree0359ca061ca4a0612c9ee67c265011dd83b026d6
parentc16c4ba7250b681e103126c54481a8b17c073758
x86/platform/intel/iosf_mbi: Add unlocked PMIC bus access notifier unregister

For race free unregistration drivers may need to acquire PMIC bus access
through iosf_mbi_punit_acquire() and then (un)register the notifier without
dropping the lock.

This commit adds an unlocked variant of
iosf_mbi_unregister_pmic_bus_access_notifier for this use case.

Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171019111620.26761-2-hdegoede@redhat.com
arch/x86/include/asm/iosf_mbi.h
arch/x86/platform/intel/iosf_mbi.c