projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6284428
)
Input: ps2-gpio - flush TX work when closing port
author
Dmitry Torokhov
<
[email protected]
>
Thu, 7 Feb 2019 22:22:42 +0000
(14:22 -0800)
committer
Dmitry Torokhov
<
[email protected]
>
Sat, 9 Feb 2019 17:00:02 +0000
(09:00 -0800)
To ensure that TX work is not running after serio port has been torn down,
let's flush it when closing the port.
Reported-by: Sven Van Asbroeck <
[email protected]
>
Acked-by: Danilo Krummrich <
[email protected]
>
Reviewed-by: Sven Van Asbroeck <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/serio/ps2-gpio.c
patch
|
blob
|
history
diff --git
a/drivers/input/serio/ps2-gpio.c
b/drivers/input/serio/ps2-gpio.c
index c62cceb97bb15bc9ff172a51757ea88673226bde..5e8d8384aa2a5da4508f789f96a23ddd3cbde425 100644
(file)
--- a/
drivers/input/serio/ps2-gpio.c
+++ b/
drivers/input/serio/ps2-gpio.c
@@
-76,6
+76,7
@@
static void ps2_gpio_close(struct serio *serio)
{
struct ps2_gpio_data *drvdata = serio->port_data;
+ flush_delayed_work(&drvdata->tx_work);
disable_irq(drvdata->irq);
}