Date: Thu, 10 Jul 2014 09:42:35 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268487 - head/sys/dev/usb/wlan Message-ID: <201407100942.s6A9gZhD081184@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevlo Date: Thu Jul 10 09:42:34 2014 New Revision: 268487 URL: http://svnweb.freebsd.org/changeset/base/268487 Log: Enable 8051 before downloading firmware. Tested by: Carlos Jacobo Puga Medina <cpm at fbsd dot es> 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 Thu Jul 10 09:17:46 2014 (r268486) +++ head/sys/dev/usb/wlan/if_urtwn.c Thu Jul 10 09:42:34 2014 (r268487) @@ -2281,9 +2281,6 @@ urtwn_fw_reset(struct urtwn_softc *sc) } /* Force 8051 reset. */ urtwn_write_2(sc, R92C_SYS_FUNC_EN, reg & ~R92C_SYS_FUNC_EN_CPUEN); - urtwn_write_2(sc, R92C_SYS_FUNC_EN, - urtwn_read_2(sc, R92C_SYS_FUNC_EN) | - R92C_SYS_FUNC_EN_CPUEN); } static void @@ -2383,6 +2380,11 @@ urtwn_load_firmware(struct urtwn_softc * urtwn_write_1(sc, R92C_MCUFWDL, 0); } + if (!(sc->chip & URTWN_CHIP_88E)) { + urtwn_write_2(sc, R92C_SYS_FUNC_EN, + urtwn_read_2(sc, R92C_SYS_FUNC_EN) | + R92C_SYS_FUNC_EN_CPUEN); + } urtwn_write_1(sc, R92C_MCUFWDL, urtwn_read_1(sc, R92C_MCUFWDL) | R92C_MCUFWDL_EN); urtwn_write_1(sc, R92C_MCUFWDL + 2,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407100942.s6A9gZhD081184>