From owner-svn-src-head@freebsd.org Sun Nov 6 17:24:17 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8FA0C33B58; Sun, 6 Nov 2016 17:24:17 +0000 (UTC) (envelope-from avos@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 892B9A36; Sun, 6 Nov 2016 17:24:17 +0000 (UTC) (envelope-from avos@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uA6HOGGV073957; Sun, 6 Nov 2016 17:24:16 GMT (envelope-from avos@FreeBSD.org) Received: (from avos@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uA6HOGGd073956; Sun, 6 Nov 2016 17:24:16 GMT (envelope-from avos@FreeBSD.org) Message-Id: <201611061724.uA6HOGGd073956@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: avos set sender to avos@FreeBSD.org using -f From: Andriy Voskoboinyk Date: Sun, 6 Nov 2016 17:24:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r308380 - head/sys/dev/rtwn/rtl8192c/pci X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2016 17:24:17 -0000 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