From owner-svn-src-head@FreeBSD.ORG Fri Mar 14 06:38:22 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EAFF749B; Fri, 14 Mar 2014 06:38:22 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D84358CC; Fri, 14 Mar 2014 06:38:22 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2E6cMoi024953; Fri, 14 Mar 2014 06:38:22 GMT (envelope-from kevlo@svn.freebsd.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2E6cM6D024952; Fri, 14 Mar 2014 06:38:22 GMT (envelope-from kevlo@svn.freebsd.org) Message-Id: <201403140638.s2E6cM6D024952@svn.freebsd.org> From: Kevin Lo Date: Fri, 14 Mar 2014 06:38:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r263154 - head/sys/dev/usb/wlan 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.17 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: Fri, 14 Mar 2014 06:38:23 -0000 Author: kevlo Date: Fri Mar 14 06:38:22 2014 New Revision: 263154 URL: http://svnweb.freebsd.org/changeset/base/263154 Log: Reset the bit of the R92C_MCUFWDL associated with checksum report before loading firmware page. It may fix this problem: "urtwn0: timeout waiting for checksum report" Modified: head/sys/dev/usb/wlan/if_urtwn.c Modified: head/sys/dev/usb/wlan/if_urtwn.c ============================================================================== --- head/sys/dev/usb/wlan/if_urtwn.c Fri Mar 14 06:37:08 2014 (r263153) +++ head/sys/dev/usb/wlan/if_urtwn.c Fri Mar 14 06:38:22 2014 (r263154) @@ -2098,6 +2098,10 @@ urtwn_load_firmware(struct urtwn_softc * urtwn_write_1(sc, R92C_MCUFWDL + 2, urtwn_read_1(sc, R92C_MCUFWDL + 2) & ~0x08); + /* Reset the FWDL checksum. */ + urtwn_write_1(sc, R92C_MCUFWDL, + urtwn_read_1(sc, R92C_MCUFWDL) | R92C_MCUFWDL_CHKSUM_RPT); + for (page = 0; len > 0; page++) { mlen = min(len, R92C_FW_PAGE_SIZE); error = urtwn_fw_loadpage(sc, page, ptr, mlen);