]> git.baikalelectronics.ru Git - kernel.git/commit
of_pci_irq: Silence bogus "of_irq_parse_pci() failed ..." messages.
authorDavid Daney <david.daney@cavium.com>
Wed, 9 Sep 2015 22:57:59 +0000 (15:57 -0700)
committerRob Herring <robh@kernel.org>
Thu, 17 Sep 2015 19:46:11 +0000 (14:46 -0500)
commit3c4e2725cb2707e3460a5f99807bdbc682af22ff
tree1ab5d94cda6bbe718da6d84a8afa4778fda52fa0
parent1224cc5503d524fe99edd3976fcb6da7fdd30672
of_pci_irq: Silence bogus "of_irq_parse_pci() failed ..." messages.

It is perfectly legitimate for a PCI device to have an
PCI_INTERRUPT_PIN value of zero.  This happens if the device doesn't
use interrupts, or on PCIe devices, where only MSI/MSI-X are
supported.

Silence the annoying "of_irq_parse_pci() failed with rc=-19" error
messages by moving the printing code into of_irq_parse_pci(), and only
emitting the message for cases where PCI_INTERRUPT_PIN == 0 is not the
cause for an early exit.

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/of_pci_irq.c