Re: [PATCH] serial: 8250_lpss: Release Quark MSI vectors on exit

From: Christoph Hellwig
Date: Thu Jan 05 2017 - 00:26:05 EST


On Wed, Jan 04, 2017 at 11:46:58PM +0100, Jan Kiszka wrote:
> > I NAKed already third patch related to PCI managed resources (couple
> > of those regarding to pci_irq_* API)/
> >
>
> Ah, there are resources that are managed without being allocated
> explicitly that way. Hmm, not very intuitive. Are MSI / MSI-X vectors
> the only such cases?

MSI/MSI-X resources are not managed that way and an explicit call to
pci_free_irq_vectors is required from the API standpoint. It might not
actually free memory in many cases, but it still is a symmetric API.