Don't fail if CCB_SYSTEM_FLAG can't be set

svn path=/trunk/; revision=32706
This commit is contained in:
Hervé Poussineau 2008-03-17 10:30:58 +00:00
parent a2d5fcf09a
commit 1cdbc02cc8

View file

@ -156,10 +156,14 @@ i8042DetectKeyboard(
WARN_(I8042PRT, "Warning: can't write SET_LEDS (0x%08lx)\n", Status);
}
/* Turn on translation and SF (Some machines don't reboot if SF is not set) */
if (!i8042ChangeMode(DeviceExtension, 0, CCB_TRANSLATE | CCB_SYSTEM_FLAG))
/* Turn on translation */
if (!i8042ChangeMode(DeviceExtension, 0, CCB_TRANSLATE))
return FALSE;
/* Turn on SF (Some machines don't reboot if SF is not set) ;
* we assume that if call fails, machine doesn't need it. */
i8042ChangeMode(DeviceExtension, 0, CCB_SYSTEM_FLAG);
return TRUE;
}