s390/pci: improve irq number check for msix
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Wed, 29 Oct 2014 18:12:04 +0000 (19:12 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 3 Nov 2014 12:30:12 +0000 (13:30 +0100)
commitb19148f6e2d90738ecf0c2eeeb9bdbae25c59e9b
treeed783c217e3f45029b243f615ce4e3ca239efcc7
parentf318a1229bd8d377282ddb37158812073701a22b
s390/pci: improve irq number check for msix

s390s arch_setup_msi_irqs function ensures that we don't return with
more irqs than the PCI architecture allows and that a single PCI
function doesn't consume more irqs than the kernel is configured for.

At least the last check doesn't help much and should take the sum of
all irqs into account. Since that's already done by irq_alloc_desc
we can remove this check.

As for the first check we should use the value provided by the
firmware which can be less than what the PCI architecture allows.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pci.h
arch/s390/pci/pci.c
arch/s390/pci/pci_clp.c