serial: 8250_fintek: Add resource check for Fintek F81504/508/512
authorJi-Ze Hong (Peter Hong) <hpeter@gmail.com>
Fri, 23 Dec 2016 01:41:20 +0000 (09:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:51:24 +0000 (11:51 +0100)
commit6def047c29b94cd7de8ffaec567060fb610ef2d2
treef280c631c50ddf59820d825b2cce83843a66a129
parent732dbf3a6104a3abfcfcd066dcaf89e5054ce009
serial: 8250_fintek: Add resource check for Fintek F81504/508/512

Add resource type check for Fintek F81504/508/512, BAR3/4/5 must be
IORESOURCE_IO.

Fintek is trying to make F81504/508/512 works on MMIO interface, but
it's still in progress. We found some issue when the experiment IC
when the BAR3/4/5 is IORESOURCE_MEM. It'll cause wrong operation with
IO resource. So we'll add the resource check for this.

Signed-off-by: Ji-Ze Hong (Peter Hong) <hpeter+linux_kernel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pci.c