Skip to content

Commit

Permalink
Input: altera_ps2 - write to correct register when disabling interrupts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tobias Klauser authored and Dmitry Torokhov committed Oct 31, 2014
1 parent fbefc5e commit d0269b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/serio/altera_ps2.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static void altera_ps2_close(struct serio *io)
{
struct ps2if *ps2if = io->port_data;

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

/*
Expand Down

0 comments on commit d0269b8

Please sign in to comment.