speedtch speedtch.c,1.29,1.30

David Woodhouse dwmw2 at infradead.org
Wed Oct 6 19:47:43 EDT 2004


Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv5561

Modified Files:
	speedtch.c 
Log Message:
Reset firmware state on load failure

Index: speedtch.c
===================================================================
RCS file: /home/cvs/speedtch/speedtch.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- speedtch.c	6 Oct 2004 07:31:59 -0000	1.29
+++ speedtch.c	6 Oct 2004 23:47:40 -0000	1.30
@@ -637,7 +637,11 @@
 		}
 		release_firmware(fw1);
 	}
-
+	/* In case we failed, set state back to NO_FIRMWARE so that
+	   another later attempt may work. Otherwise, we never actually
+	   manage to recover if, for example, the firmware is on /usr and
+	   we look for it too early. */
+	speedtch_got_firmware(instance, 0);
 	udsl_put_instance(&instance->u);
 	return 0;
 }




More information about the Usbatm-commits mailing list