diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-05-31 16:21:28 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2019-06-04 12:56:33 +0100 |
commit | 0faf70ca948a506b7fbd1a245b46b0eeae628702 (patch) | |
tree | 39338fd10920ebc53a8459cdb7f05e4de4b409aa /drivers/tty | |
parent | d9d03e2c90553b5e329fc8c753211ab81ad43786 (diff) | |
download | linux-0faf70ca948a506b7fbd1a245b46b0eeae628702.tar.gz linux-0faf70ca948a506b7fbd1a245b46b0eeae628702.tar.bz2 linux-0faf70ca948a506b7fbd1a245b46b0eeae628702.zip |
serial: sa1100: add note about modem control signals
As suggested by Uwe, add a note indicating that the modem control
signals do not support interrupts, which precludes the driver from
using mctrl_gpio_init().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/sa1100.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/tty/serial/sa1100.c b/drivers/tty/serial/sa1100.c index 97bdfeccbea9..8e618129e65c 100644 --- a/drivers/tty/serial/sa1100.c +++ b/drivers/tty/serial/sa1100.c @@ -860,6 +860,10 @@ static int sa1100_serial_resume(struct platform_device *dev) static int sa1100_serial_add_one_port(struct sa1100_port *sport, struct platform_device *dev) { sport->port.dev = &dev->dev; + + // mctrl_gpio_init() requires that the GPIO driver supports interrupts, + // but we need to support GPIO drivers for hardware that has no such + // interrupts. Use mctrl_gpio_init_noauto() instead. sport->gpios = mctrl_gpio_init_noauto(sport->port.dev, 0); if (IS_ERR(sport->gpios)) { int err = PTR_ERR(sport->gpios); |