1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef _UFS_FAULT_INJECTION_H
4 #define _UFS_FAULT_INJECTION_H
6 #include <linux/kconfig.h>
7 #include <linux/types.h>
9 #ifdef CONFIG_SCSI_UFS_FAULT_INJECTION
10 void ufs_fault_inject_hba_init(struct ufs_hba
*hba
);
11 bool ufs_trigger_eh(struct ufs_hba
*hba
);
12 bool ufs_fail_completion(struct ufs_hba
*hba
);
14 static inline void ufs_fault_inject_hba_init(struct ufs_hba
*hba
)
18 static inline bool ufs_trigger_eh(struct ufs_hba
*hba
)
23 static inline bool ufs_fail_completion(struct ufs_hba
*hba
)
29 #endif /* _UFS_FAULT_INJECTION_H */