]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit52a6353bd063b690955e4f1bcad44ad7714e7121
treef280c631c50ddf59820d825b2cce83843a66a129
parent99be6422407cff0f1c49ef0ee1c429a951e218f0
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