serial-only-use-pnp-irq-if-its-valid
commit75616b3b62ae93a776a4d50f8722bf0179a67f3b
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Fri, 26 Oct 2007 22:26:04 +0000 (26 22:26 +0000)
committerMatthias Urlichs <smurf@hera.kernel.org>
Wed, 14 Nov 2007 11:27:03 +0000 (14 11:27 +0000)
tree7d11370b51b21ef35cc4154c7c1199aa93882faa
parent6382f2f43306a1977417c54be35418c022653245
serial-only-use-pnp-irq-if-its-valid

"Luming Yu" <luming.yu@gmail.com> says:

  There is a "ttyS1 irq is -1" problem observed on tiger4 which cause the
  serial port broken.

  It is because that there is __no__ ACPI IRQ resource assigned for the
  serial port.  So the value of the IRQ for the port is never changed since it
  got initialized to -1.

If PNP supplies a valid IRQ, use it.  Otherwise, leave port.irq == 0, which
means "no IRQ" to the serial core.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Yu Luming <luming.yu@intel.com>
Acked-by: Matthew Wilcox <matthew@wil.cx>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/serial/8250_pnp.c