aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/iosf_mbi.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/iosf_mbi.h')
-rw-r--r--arch/x86/include/asm/iosf_mbi.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/x86/include/asm/iosf_mbi.h b/arch/x86/include/asm/iosf_mbi.h
index 7d87437bd030..3de0489deade 100644
--- a/arch/x86/include/asm/iosf_mbi.h
+++ b/arch/x86/include/asm/iosf_mbi.h
@@ -147,6 +147,18 @@ int iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb);
147int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb); 147int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb);
148 148
149/** 149/**
150 * iosf_mbi_unregister_pmic_bus_access_notifier_unlocked - Unregister PMIC bus
151 * notifier, unlocked
152 *
153 * Like iosf_mbi_unregister_pmic_bus_access_notifier(), but for use when the
154 * caller has already called iosf_mbi_punit_acquire() itself.
155 *
156 * @nb: notifier_block to unregister
157 */
158int iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(
159 struct notifier_block *nb);
160
161/**
150 * iosf_mbi_call_pmic_bus_access_notifier_chain - Call PMIC bus notifier chain 162 * iosf_mbi_call_pmic_bus_access_notifier_chain - Call PMIC bus notifier chain
151 * 163 *
152 * @val: action to pass into listener's notifier_call function 164 * @val: action to pass into listener's notifier_call function
@@ -154,6 +166,11 @@ int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb);
154 */ 166 */
155int iosf_mbi_call_pmic_bus_access_notifier_chain(unsigned long val, void *v); 167int iosf_mbi_call_pmic_bus_access_notifier_chain(unsigned long val, void *v);
156 168
169/**
170 * iosf_mbi_assert_punit_acquired - Assert that the P-Unit has been acquired.
171 */
172void iosf_mbi_assert_punit_acquired(void);
173
157#else /* CONFIG_IOSF_MBI is not enabled */ 174#else /* CONFIG_IOSF_MBI is not enabled */
158static inline 175static inline
159bool iosf_mbi_available(void) 176bool iosf_mbi_available(void)
@@ -197,12 +214,20 @@ int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb)
197 return 0; 214 return 0;
198} 215}
199 216
217static inline int
218iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(struct notifier_block *nb)
219{
220 return 0;
221}
222
200static inline 223static inline
201int iosf_mbi_call_pmic_bus_access_notifier_chain(unsigned long val, void *v) 224int iosf_mbi_call_pmic_bus_access_notifier_chain(unsigned long val, void *v)
202{ 225{
203 return 0; 226 return 0;
204} 227}
205 228
229static inline void iosf_mbi_assert_punit_acquired(void) {}
230
206#endif /* CONFIG_IOSF_MBI */ 231#endif /* CONFIG_IOSF_MBI */
207 232
208#endif /* IOSF_MBI_SYMS_H */ 233#endif /* IOSF_MBI_SYMS_H */