[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1329988307.21053.167.camel@debian>
Date: Thu, 23 Feb 2012 17:11:47 +0800
From: "Alex,Shi" <alex.shi@...el.com>
To: Sarah Sharp <sarah.a.sharp@...ux.intel.com>
Cc: Felipe Balbi <balbi@...com>, gregkh@...uxfoundation.org,
stern@...land.harvard.edu, linux-usb@...r.kernel.org,
andiry.xu@....com, clemens@...isch.de, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/3] usb: enable pci MSI/MSIX in usb core
> What do you mean: there is a relation between event rings
> msix_entries.vectors. and we need to presents this relationships in the
> msix interrupt handler?
>
> So does the following mode you like?
>
> request_irq(hcd->msix_entries[i].vector, msix_irq_handler, 0, "",
> hcd->ring_handler[i]);
>
> Or another way to do it if we know which ring will handle the irq, like:
here, I mean let the driver remember this relationships.
>
> irqreturn_t xhci_msi_irq(int irq, struct usb_hcd *hcd)
>
> switch (irq2ring(irq))
> case ring0: driver_handle_ring(ring0);
> case ring1: driver_handle_ring(ring1);
>
> In fact, since there is no actual usage of multiple rings now, I have no
> much idea of the relationships.
>
> BTW, if it is possible do this change to another patch?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists