Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1478339 > unrolled thread
| Started by | Liu Xiang <liuxiang_1999@126.com> |
|---|---|
| First post | 2016-09-07 16:40 +0200 |
| Last post | 2016-09-07 16:40 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] serial: max310x: Set IRQF_TRIGGER_FALLING flag when dev.of_node is not NULL Liu Xiang <liuxiang_1999@126.com> - 2016-09-07 16:40 +0200
| From | Liu Xiang <liuxiang_1999@126.com> |
|---|---|
| Date | 2016-09-07 16:40 +0200 |
| Subject | [PATCH] serial: max310x: Set IRQF_TRIGGER_FALLING flag when dev.of_node is not NULL |
| Message-ID | <seMb8-WB-9@gated-at.bofh.it> |
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 <liu.xiang6@zte.com.cn> --- drivers/tty/serial/max310x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.9.1
Back to top | Article view | linux.kernel
csiph-web