x86, 8042: Enable A20 using KBC to fix S3 resume on some MSI laptops
authorOndrej Zary <[email protected]>
Tue, 11 Dec 2012 21:18:05 +0000 (22:18 +0100)
committerH. Peter Anvin <[email protected]>
Tue, 11 Dec 2012 22:55:16 +0000 (14:55 -0800)
commitad68652412276f68ad4fe3e1ecf5ee6880876783
tree0a030db11ef21d5091215be914832ed54fdcb859
parent29594404d7fe73cd80eaa4ee8c43dcc53970c60e
x86, 8042: Enable A20 using KBC to fix S3 resume on some MSI laptops

Some MSI laptop BIOSes are broken - INT 15h code uses port 92h to enable A20
line but resume code assumes that KBC was used.
The laptop will not resume from S3 otherwise but powers off after a while
and then powers on again stuck with a blank screen.

Fix it by enabling A20 using KBC in i8042_platform_init for x86.

Fixes https://bugzilla.kernel.org/show_bug.cgi?id=12878

Signed-off-by: Ondrej Zary <[email protected]>
Cc: Dmitry Torokhov <[email protected]>
Cc: Alan Cox <[email protected]>
Cc: Rafael J. Wysocki <[email protected]>
Cc: <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: H. Peter Anvin <[email protected]>
drivers/input/serio/i8042-x86ia64io.h