Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752068AbcLJA0W (ORCPT ); Fri, 9 Dec 2016 19:26:22 -0500 Received: from mail.kernel.org ([198.145.29.136]:49190 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750989AbcLJA0V (ORCPT ); Fri, 9 Dec 2016 19:26:21 -0500 Date: Fri, 9 Dec 2016 18:26:16 -0600 From: Bjorn Helgaas To: Mathias Nyman Cc: Alan Stern , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Should xhci_irq() call usb_hc_died()? Message-ID: <20161210002616.GA8381@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 551 Lines: 26 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