From: "David Härdeman" <david@hardeman.nu>
To: Hannes Reinecke <hare@suse.de>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
Bjorn Helgaas <bhelgaas@google.com>,
Oliver Neukum <oneukum@suse.de>, Thomas Renninger <trenn@suse.de>,
Yinghai Lu <yinghai@kernel.org>,
Frederik Himpe <fhimpe@vub.ac.be>
Subject: Re: [PATCH] usb: correctly enable interrupts for xhci
Date: Fri, 1 Mar 2013 11:53:46 +0100 [thread overview]
Message-ID: <20130301105346.GA4050@hardeman.nu> (raw)
In-Reply-To: <1362127974-24487-1-git-send-email-hare@suse.de>
On Fri, Mar 01, 2013 at 09:52:54AM +0100, Hannes Reinecke wrote:
>xhci might run with MSI/MSI-X only, with no support for legacy
>interrupts. On these devices the request_irq() call in usb_add_hcd()
>will fail, causing the entire device to fail.
>For xhci this is especially painful as the driver will enable
>interrupts during xhci_run(), so the initial call to request_irq()
>is not required anyway.
>
>This patch adds a flag 'msix_supported' to struct usb_hcd, which
>will cause usb_add_hcd() to skip interrupt setup. This flag is
>set in xhci-pci, so the registration will skip the first request_irq()
>and can proceed.
>
>Cc: Bjorn Helgaas <bhelgaas@google.com>
>Cc: Oliver Neukum <oneukum@suse.de>
>Cc: Thomas Renninger <trenn@suse.de>
>Cc: Yinghai Lu <yinghai@kernel.org>
>Cc: Frederik Himpe <fhimpe@vub.ac.be>
>Cc: David Haerdeman <david@hardeman.nu>
>Signed-off-by: Hannes Reinecke <hare@suse.de>
It doesn't seem to work. I just tried applying the patch to the 3.8
kernel in Debian experimental and this was the result during boot:
[ 1.203390] xhci_hcd 0000:00:14.0: can't derive routing for PCI INT A
[ 1.203393] xhci_hcd 0000:00:14.0: PCI INT A: no GSI
[ 1.203419] xhci_hcd 0000:00:14.0: setting latency timer to 64
[ 1.203423] xhci_hcd 0000:00:14.0: xHCI Host Controller
[ 1.203429] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
[ 1.203533] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported
[ 1.203535] xhci_hcd 0000:00:14.0: request interrupt 255 failed
[ 1.203580] xhci_hcd 0000:00:14.0: USB bus 1 deregistered
[ 1.203598] xhci_hcd 0000:00:14.0: can't derive routing for PCI INT A
[ 1.203600] xhci_hcd 0000:00:14.0: init 0000:00:14.0 fail, -22
[ 1.203643] xhci_hcd: probe of 0000:00:14.0 failed with error -22
Regards,
David
next prev parent reply other threads:[~2013-03-01 10:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-01 8:52 [PATCH] usb: correctly enable interrupts for xhci Hannes Reinecke
2013-03-01 10:53 ` David Härdeman [this message]
2013-03-01 14:54 ` Alan Stern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130301105346.GA4050@hardeman.nu \
--to=david@hardeman.nu \
--cc=bhelgaas@google.com \
--cc=fhimpe@vub.ac.be \
--cc=hare@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=oneukum@suse.de \
--cc=trenn@suse.de \
--cc=yinghai@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox