svn commit: r308380 - head/sys/dev/rtwn/rtl8192c/pci

Andriy Voskoboinyk avos at FreeBSD.org
Sun Nov 6 17:24:17 UTC 2016


Author: avos
Date: Sun Nov  6 17:24:16 2016
New Revision: 308380
URL: https://svnweb.freebsd.org/changeset/base/308380

Log:
  rtwn: reduce shutdown time for RTL8188CE.

Modified:
  head/sys/dev/rtwn/rtl8192c/pci/r92ce_fw.c

Modified: head/sys/dev/rtwn/rtl8192c/pci/r92ce_fw.c
==============================================================================
--- head/sys/dev/rtwn/rtl8192c/pci/r92ce_fw.c	Sun Nov  6 17:21:26 2016	(r308379)
+++ head/sys/dev/rtwn/rtl8192c/pci/r92ce_fw.c	Sun Nov  6 17:24:16 2016	(r308380)
@@ -69,6 +69,7 @@ r92ce_fw_reset(struct rtwn_softc *sc, in
 	 * We must sleep for one second to let the firmware settle.
 	 * Accessing registers too early will hang the whole system.
 	 */
-	rtwn_delay(sc, 1000 * 1000);
+	if (reason == RTWN_FW_RESET_DOWNLOAD)
+		rtwn_delay(sc, 1000 * 1000);
 }
 #endif


More information about the svn-src-head mailing list