From: Liu Xiang Date: Wed, 7 Sep 2016 14:05:01 +0000 (+0800) Subject: serial: max310x: Set IRQF_TRIGGER_FALLING flag when dev.of_node is not NULL X-Git-Tag: v4.14-rc1~2394^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c164b008b62720fda072b55c378d32da3260f271;p=platform%2Fkernel%2Flinux-rpi.git serial: max310x: Set IRQF_TRIGGER_FALLING flag when dev.of_node is not NULL When dev.of_node is not NULL, we also need to set IRQF_TRIGGER_FALLING flag, otherwise it may cause uncertain interrupts. Signed-off-by: Liu Xiang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c index 9360801..8a3e926 100644 --- a/drivers/tty/serial/max310x.c +++ b/drivers/tty/serial/max310x.c @@ -1329,9 +1329,9 @@ static int max310x_spi_probe(struct spi_device *spi) const struct spi_device_id *id_entry = spi_get_device_id(spi); devtype = (struct max310x_devtype *)id_entry->driver_data; - flags = IRQF_TRIGGER_FALLING; } + flags = IRQF_TRIGGER_FALLING; regcfg.max_register = devtype->nr * 0x20 - 1; regmap = devm_regmap_init_spi(spi, ®cfg);