Author: hpoussin
Date: Mon Mar 17 05:30:58 2008
New Revision: 32706
URL:
http://svn.reactos.org/svn/reactos?rev=3D32706&view=3Drev
Log:
Don't fail if CCB_SYSTEM_FLAG can't be set
Modified:
trunk/reactos/drivers/input/i8042prt/pnp.c
Modified: trunk/reactos/drivers/input/i8042prt/pnp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/i8042pr=
t/pnp.c?rev=3D32706&r1=3D32705&r2=3D32706&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/drivers/input/i8042prt/pnp.c (original)
+++ trunk/reactos/drivers/input/i8042prt/pnp.c Mon Mar 17 05:30:58 2008
@@ -156,9 +156,13 @@
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 se=
t) */
- 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;
}