This patch series enable support for ufshcd_abort() in MCQ mode. The first patch is to prepare synchronization for ufshcd_abort() and interrupt contexts. The second patch contains the supporting functions for ufshcd_abort(). The third and fourth patches add support for MCQ abort as discussed in the UFS host controller spec. Bao D. Nguyen (3): ufs: mcq: Add supporting functions for mcq abort ufs: mcq: Add support for clean up mcq resources ufs: mcq: Added ufshcd_mcq_abort() --- v1->v2: patch #1 - Removed ufshcd_mcq_cqe_search() - Removed mcq_poll_ms from the hba. Replaced with MCQ_POLL_MS patch #2 - Changed the type of mask argument from u32 to unsigned long in function ufshcd_clear_cmds() patch #3 - Removed the ufshcd_mcq_cqe_search error case --- drivers/ufs/core/ufs-mcq.c | 243 +++++++++++++++++++++++++++++++++++++++++ drivers/ufs/core/ufshcd-priv.h | 17 +++ drivers/ufs/core/ufshcd.c | 55 ++++++++-- include/ufs/ufshcd.h | 1 + include/ufs/ufshci.h | 16 +++ 5 files changed, 324 insertions(+), 8 deletions(-) -- 2.7.4