[openfirmware] r1478 - dev/usb2/device/storage

svn at openfirmware.info svn at openfirmware.info
Sat Nov 14 02:05:24 CET 2009


Author: wmb
Date: 2009-11-14 02:05:23 +0100 (Sat, 14 Nov 2009)
New Revision: 1478

Modified:
   dev/usb2/device/storage/scsi.fth
Log:
OLPC trac 9423 - Added commented-out code to report occurences of
the USB problem reported in that ticket, which has been suppressed
by a retry workaround.


Modified: dev/usb2/device/storage/scsi.fth
===================================================================
--- dev/usb2/device/storage/scsi.fth	2009-11-13 22:53:08 UTC (rev 1477)
+++ dev/usb2/device/storage/scsi.fth	2009-11-14 01:05:23 UTC (rev 1478)
@@ -141,6 +141,15 @@
    ?dup  if                             ( actual csw-len csw-usberror )
       nip                               ( actual csw-usberror )
       dup h# 10000000 =  if             ( actual csw-usberror )
+[ifdef] notdef
+\ This is for testing the problem described in OLPC trac #9423
+\ The problem has been worked around so users no longer see it,
+\ apart from a short delay when it happens, but for testing you
+\ can enable this code to report the problem and count occurrences.
+cr 7 emit ." TIMEOUT " 7 emit
+" h# 72 cmos@ 1+ dup .d h# 72 cmos!" evaluate
+cr
+[then]
          2drop 0 2                      ( 0 2 )  \ Convert timeout error to a retry
       then				( actual usberror )
       exit




More information about the openfirmware mailing list