From owner-svn-src-all@FreeBSD.ORG Thu Dec 25 04:29:40 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9D291065675; Thu, 25 Dec 2008 04:29:40 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A72E48FC18; Thu, 25 Dec 2008 04:29:40 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBP4TeUk003275; Thu, 25 Dec 2008 04:29:40 GMT (envelope-from weongyo@svn.freebsd.org) Received: (from weongyo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBP4TeBr003274; Thu, 25 Dec 2008 04:29:40 GMT (envelope-from weongyo@svn.freebsd.org) Message-Id: <200812250429.mBP4TeBr003274@svn.freebsd.org> From: Weongyo Jeong Date: Thu, 25 Dec 2008 04:29:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186484 - head/sys/dev/usb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Dec 2008 04:29:40 -0000 Author: weongyo Date: Thu Dec 25 04:29:40 2008 New Revision: 186484 URL: http://svn.freebsd.org/changeset/base/186484 Log: fix a silly bug that I missed a for-loop to initialize AL2230S PHY. Reported by: Hans Petter Selasky Modified: head/sys/dev/usb/if_zyd.c Modified: head/sys/dev/usb/if_zyd.c ============================================================================== --- head/sys/dev/usb/if_zyd.c Thu Dec 25 02:14:25 2008 (r186483) +++ head/sys/dev/usb/if_zyd.c Thu Dec 25 04:29:40 2008 (r186484) @@ -1061,8 +1061,10 @@ zyd_al2230_init_b(struct zyd_rf *rf) for (i = 0; i < N(phyini); i++) zyd_write16_m(sc, phyini[i].reg, phyini[i].val); - if (sc->sc_rfrev == ZYD_RF_AL2230S || sc->sc_al2230s != 0) - zyd_write16_m(sc, phy2230s[i].reg, phy2230s[i].val); + if (sc->sc_rfrev == ZYD_RF_AL2230S || sc->sc_al2230s != 0) { + for (i = 0; i < N(phy2230s); i++) + zyd_write16_m(sc, phy2230s[i].reg, phy2230s[i].val); + } for (i = 0; i < 3; i++) { error = zyd_rfwrite_cr(sc, zyd_al2230_chtable[0][i]);