[ros-diffs] [cfinck] 32715: Revert r32706, unfortunately this wasn't the problem (according to reports from two users)

cfinck at svn.reactos.org cfinck at svn.reactos.org
Tue Mar 18 10:14:38 CET 2008


Author: cfinck
Date: Tue Mar 18 04:14:38 2008
New Revision: 32715

URL: http://svn.reactos.org/svn/reactos?rev=3D32715&view=3Drev
Log:
Revert r32706, unfortunately this wasn't the problem (according to reports =
from two users)

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=3D32715&r1=3D32714&r2=3D32715&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 Tue Mar 18 04:14:38 2008
@@ -156,13 +156,9 @@
 		WARN_(I8042PRT, "Warning: can't write SET_LEDS (0x%08lx)\n", Status);
 	}
 =

-	/* Turn on translation */
-	if (!i8042ChangeMode(DeviceExtension, 0, CCB_TRANSLATE))
+	/* 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))
 		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;
 }




More information about the Ros-diffs mailing list