From owner-svn-src-all@freebsd.org Tue Jul 7 02:42:49 2015 Return-Path: Delivered-To: svn-src-all@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 40B3A9930D1; Tue, 7 Jul 2015 02:42:49 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::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 30CDE18AE; Tue, 7 Jul 2015 02:42:49 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t672gnwn065227; Tue, 7 Jul 2015 02:42:49 GMT (envelope-from jhibbits@FreeBSD.org) Received: (from jhibbits@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t672gnj6065226; Tue, 7 Jul 2015 02:42:49 GMT (envelope-from jhibbits@FreeBSD.org) Message-Id: <201507070242.t672gnj6065226@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhibbits set sender to jhibbits@FreeBSD.org using -f From: Justin Hibbits Date: Tue, 7 Jul 2015 02:42:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285228 - head/sys/dev/wi X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 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: Tue, 07 Jul 2015 02:42:49 -0000 Author: jhibbits Date: Tue Jul 7 02:42:48 2015 New Revision: 285228 URL: https://svnweb.freebsd.org/changeset/base/285228 Log: Enable the wireless on attach. This comes from the archives of "forgotten in the original commit, and probably pointless now because nobody uses it, and the driver's broken anyway." Modified: head/sys/dev/wi/if_wi_macio.c Modified: head/sys/dev/wi/if_wi_macio.c ============================================================================== --- head/sys/dev/wi/if_wi_macio.c Tue Jul 7 02:37:29 2015 (r285227) +++ head/sys/dev/wi/if_wi_macio.c Tue Jul 7 02:42:48 2015 (r285228) @@ -73,6 +73,8 @@ __FBSDID("$FreeBSD$"); #include #include +#include + static int wi_macio_probe(device_t); static int wi_macio_attach(device_t); @@ -129,6 +131,7 @@ wi_macio_attach(device_t dev) error = wi_alloc(dev, 0); if (error == 0) { + macio_enable_wireless(device_get_parent(dev), 1); /* Make sure interrupts are disabled. */ CSR_WRITE_2(sc, WI_INT_EN, 0); CSR_WRITE_2(sc, WI_EVENT_ACK, 0xFFFF);