Commit 937d4c93 authored by Tobias Klauser's avatar Tobias Klauser Committed by Jiri Slaby

Input: altera_ps2 - write to correct register when disabling interrupts

commit d0269b84 upstream.

In altera_ps2_close, the data register (offset 0) is written instead of
the control register (offset 4), leading to the RX interrupt not being
disabled. Fix this by calling writel() with the offset for the proper
register.
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 214c97a1
...@@ -75,7 +75,7 @@ static void altera_ps2_close(struct serio *io) ...@@ -75,7 +75,7 @@ static void altera_ps2_close(struct serio *io)
{ {
struct ps2if *ps2if = io->port_data; struct ps2if *ps2if = io->port_data;
writel(0, ps2if->base); /* disable rx irq */ writel(0, ps2if->base + 4); /* disable rx irq */
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment