public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Should xhci_irq() call usb_hc_died()?
@ 2016-12-10  0:26 Bjorn Helgaas
  2016-12-12  8:43 ` Felipe Balbi
  0 siblings, 1 reply; 3+ messages in thread
From: Bjorn Helgaas @ 2016-12-10  0:26 UTC (permalink / raw)
  To: Mathias Nyman; +Cc: Alan Stern, Greg Kroah-Hartman, linux-usb, linux-kernel

Hi Mathias,

ehci_irq(), ohci_irq(), fotg210_irq(), and oxu210_hcd_irq() contain code
equivalent to this:

  status = ehci_readl(...);
  if (status == ~(u32) 0) {
    ...
    usb_hc_died(hcd);
    ...
    return IRQ_HANDLED;
  }

xhci_irq() has a similar check, but does not call usb_hc_died():

  status = readl(...);
  if (status = 0xffffffff) {
    ...
    return IRQ_HANDLED;
  }

Should xhci_irq() also call usb_hc_died()?  Maybe there's some reason
for it to be different than the others, but it wasn't obvious to this
casual observer :)

Bjorn

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-12 10:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-10  0:26 Should xhci_irq() call usb_hc_died()? Bjorn Helgaas
2016-12-12  8:43 ` Felipe Balbi
2016-12-12 10:48   ` Mathias Nyman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox