فهرست منبع

Revert "USB: isp1760-hcd: move imask clear after pending work is done"

This reverts commit 5808544690300071f09eef9ab83a0fb1f60cf1cd.

To quote Richard:
	I don't think this should be mainlined. It was a
	misunderstanding on my part.  If you see all the other hdc
	drivers in the same location, they all do the same thing (i.e.
	clear the interrupt status first, then do the work) that
	"glitch" I think I saw was actually two back-to-back
	interrupts.

	Sebastian (the original author of isp1760) explained it to me a
	few days after my submission.

	sorry for the confusion

Cc: Richard Retanubun <RichardRetanubun@ruggedcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman 14 سال پیش
والد
کامیت
753d8534cc
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 3
      drivers/usb/host/isp1760-hcd.c

+ 1 - 3
drivers/usb/host/isp1760-hcd.c

@@ -1676,15 +1676,13 @@ static irqreturn_t isp1760_irq(struct usb_hcd *hcd)
 	if (unlikely(!imask))
 	if (unlikely(!imask))
 		goto leave;
 		goto leave;
 
 
+	reg_write32(hcd->regs, HC_INTERRUPT_REG, imask);
 	if (imask & (HC_ATL_INT | HC_SOT_INT))
 	if (imask & (HC_ATL_INT | HC_SOT_INT))
 		do_atl_int(hcd);
 		do_atl_int(hcd);
 
 
 	if (imask & HC_INTL_INT)
 	if (imask & HC_INTL_INT)
 		do_intl_int(hcd);
 		do_intl_int(hcd);
 
 
-	/* Clear interrupt mask on device after the work is done */
-	reg_write32(hcd->regs, HC_INTERRUPT_REG, imask);
-
 	irqret = IRQ_HANDLED;
 	irqret = IRQ_HANDLED;
 leave:
 leave:
 	spin_unlock(&priv->lock);
 	spin_unlock(&priv->lock);