serial: lantiq: Make IRQ & ISR assignment dynamic
authorRahul Tanwar <rahul.tanwar@linux.intel.com>
Thu, 8 Aug 2019 10:02:07 +0000 (18:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:53 +0000 (12:43 +0200)
commit14208b3890ca369ed55332f6c05ff51cff5789cc
tree88e8d1fa6df8c9138628ba09bafc66c7bd95aaca
parent0de2580fdb77014a7bf1c415c8333f39bf43725b
serial: lantiq: Make IRQ & ISR assignment dynamic

This driver/IP is reused across multiple SoCs. Older SoCs supported three
separate IRQs for tx, rx & err interrupts. Newer Lightning Mountain SoC
supports single IRQ for all of tx/rx/err interrupts. This patch modifies
the driver design to support dynamic assignment of IRQ resources & ISRs
based on devicetree node compatible entries.

Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Rahul Tanwar <rahul.tanwar@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Link: https://lore.kernel.org/r/b166a0593bee191fcd77b5bdf8fedc6f6330a371.1565257887.git.rahul.tanwar@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/lantiq.c