  #ifdef DEBUG_SOF
  	DWC_DEBUGPL(DBG_HCD, "Queue Transactions\n");
  #endif
-@@ -2506,11 +2501,9 @@ void dwc_otg_hcd_queue_transactions(dwc_otg_hcd_t * hcd,
+@@ -2532,11 +2527,9 @@ void dwc_otg_hcd_queue_transactions(dwc_otg_hcd_t * hcd,
  			gintmsk.b.nptxfempty = 1;
  
  			if (fiq_enable) {

From 8afd3f87bfa48d6bb4e49ba7bca15fd4ba5a7719 Mon Sep 17 00:00:00 2001
From: Oussama Ghorbel <ghorbel@gmail.com>
Date: Tue, 19 Dec 2017 13:41:28 +0800
Subject: [PATCH] usb: dwc_otg: fix system lockup when interrupts are threaded
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

 			} else {
 				DWC_MODIFY_REG32(&global_regs->gintmsk, 0, gintmsk.d32);
 			}
@@ -1112,11 +1106,9 @@ static void halt_channel(dwc_otg_hcd_t * hcd,
 			 */
 			gintmsk.b.ptxfempty = 1;
 			if (fiq_enable) {
