Skip to content

Commit d0269b8

Browse files
tklauserdtor
authored andcommitted
Input: altera_ps2 - write to correct register when disabling interrupts
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: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent fbefc5e commit d0269b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/serio/altera_ps2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static void altera_ps2_close(struct serio *io)
7474
{
7575
struct ps2if *ps2if = io->port_data;
7676

77-
writel(0, ps2if->base); /* disable rx irq */
77+
writel(0, ps2if->base + 4); /* disable rx irq */
7878
}
7979

8080
/*

0 commit comments

Comments
 (0)