lkml.org 
[lkml]   [2015]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 09/15] irqchip: gicv3-its: Split PCI/MSI code from the core ITS driver
On Tue, 7 Jul 2015, Marc Zyngier wrote:
> +static int its_pci_msi_prepare(struct irq_domain *domain, struct device *dev,
> + int nvec, msi_alloc_info_t *info)
> +{
> + struct pci_dev *pdev;
> + struct its_pci_alias dev_alias;
> +
> + if (!dev_is_pci(dev))
> + return -EINVAL;
> +
> + pdev = to_pci_dev(dev);
> + dev_alias.pdev = pdev;
> + dev_alias.count = nvec;
> +
> + pci_for_each_dma_alias(pdev, its_get_pci_alias, &dev_alias);
> +
> + return its_msi_prepare(domain, dev_alias.dev_id, dev_alias.count, info);

I don't think you need its_msi_prepare() exposed to child
drivers. Something like

domain->parent->ops->msi_prepare()

should do the trick.

Thanks,

tglx


\
 
 \ /
  Last update: 2015-07-08 13:21    [W:0.184 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site