Author: wmb Date: Thu Dec 2 03:07:34 2010 New Revision: 2058 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2058
Log: OLPC XO-1.75 - fixed a bug in the EC SPI protocol timeout handling. It was causing spurious timeouts which prematurely aborted flash-ec.
Modified: dev/olpc/kb3700/spicmd.fth
Modified: dev/olpc/kb3700/spicmd.fth ============================================================================== --- dev/olpc/kb3700/spicmd.fth Thu Dec 2 03:06:03 2010 (r2057) +++ dev/olpc/kb3700/spicmd.fth Thu Dec 2 03:07:34 2010 (r2058) @@ -179,13 +179,10 @@
0 value cmd-time-limit : cmd-timeout? ( -- flag ) - cmd-time-limit 0= if false exit then get-msecs cmd-time-limit - 0>= ; -: cancel-cmd-timeout ( -- ) 0 to cmd-time-limit ; : set-cmd-timeout ( -- ) get-msecs d# 1000 + to cmd-time-limit - cmd-time-limit 0= if 1 to cmd-time-limit then \ Avoid reserved value ;
defer do-state ' noop to do-state @@ -196,7 +193,6 @@ ['] upstream to do-state ; : command-done ( -- ) - cancel-cmd-timeout true to command-finished? sticky? 0= if enter-upstream-state
openfirmware@openfirmware.info