This makes the gpio-exar driver usable, which was prevented by a number of fatal bugs, and adds support for the SIMATIC IOT2040 to the 8250-exar driver and, indirectly, to gpio-exar as well. It's a cross-subsystem series, so I'm also cross-posting to the serial and gpio lists. Changes in v6: - addressed Andy's remarks on "Make set of exported GPIOs configurable" - dropped "Leave MPIOs as output for Commtech adapters" - merged by Greg Jan Jan Kiszka (10): gpio-exar/8250-exar: Do not even instantiate a GPIO device for Commtech cards gpio-exar/8250-exar: Fix passing in of parent PCI device gpio: exar: Allocate resources on behalf of the platform device gpio: exar: Fix iomap request gpio: exar: Fix reading of directions and values gpio-exar/8250-exar: Rearrange gpiochip parenthood serial: exar: Factor out platform hooks platform: Accept const properties gpio-exar/8250-exar: Make set of exported GPIOs configurable serial: exar: Add support for IOT2040 device drivers/base/platform.c | 2 +- drivers/gpio/gpio-exar.c | 79 ++++++++-------- drivers/tty/serial/8250/8250_exar.c | 173 ++++++++++++++++++++++++++++++++++-- include/linux/platform_device.h | 2 +- 4 files changed, 211 insertions(+), 45 deletions(-) -- 2.12.3 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html