x86/platform/intel/iosf_mbi: Add a PMIC bus access notifier
authorHans de Goede <hdegoede@redhat.com>
Fri, 24 Feb 2017 09:29:02 +0000 (10:29 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 2 Mar 2017 14:46:25 +0000 (15:46 +0100)
commit528e649b5c79683202a0ccd22e33a41e35f81a0b
tree840234a4ffcb1a4ff4769b19ffca1305cadfe94b
parent9260a0409794a59079393e843511414d5f08c14b
x86/platform/intel/iosf_mbi: Add a PMIC bus access notifier

Some drivers may need to acquire P-Unit managed resources from interrupt
context, where they cannot call iosf_mbi_punit_acquire().

This commit adds a notifier chain which allows a driver to get notified
(in a process context) before other drivers start accessing the PMIC bus,
so that the driver can acquire any resources, which it may need during
the window the other driver is accessing the PMIC, before hand.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=155241
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: tagorereddy <tagore.chandan@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
arch/x86/include/asm/iosf_mbi.h
arch/x86/platform/intel/iosf_mbi.c