From owner-svn-src-all@FreeBSD.ORG Tue Jan 6 07:35:07 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3687E973; Tue, 6 Jan 2015 07:35:07 +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)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 22D906631D; Tue, 6 Jan 2015 07:35:07 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t067Z7Zt039931; Tue, 6 Jan 2015 07:35:07 GMT (envelope-from adrian@FreeBSD.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t067Z6KJ039930; Tue, 6 Jan 2015 07:35:06 GMT (envelope-from adrian@FreeBSD.org) Message-Id: <201501060735.t067Z6KJ039930@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: adrian set sender to adrian@FreeBSD.org using -f From: Adrian Chadd Date: Tue, 6 Jan 2015 07:35:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r276738 - head/sys/mips/atheros 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.18-1 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, 06 Jan 2015 07:35:07 -0000 Author: adrian Date: Tue Jan 6 07:35:05 2015 New Revision: 276738 URL: https://svnweb.freebsd.org/changeset/base/276738 Log: The QCA955x USB init path doesn't require any of this, so delete it. Obtained from: Linux/OpenWRT Modified: head/sys/mips/atheros/qca955x_chip.c Modified: head/sys/mips/atheros/qca955x_chip.c ============================================================================== --- head/sys/mips/atheros/qca955x_chip.c Tue Jan 6 05:28:37 2015 (r276737) +++ head/sys/mips/atheros/qca955x_chip.c Tue Jan 6 07:35:05 2015 (r276738) @@ -297,25 +297,6 @@ qca955x_configure_gmac(uint32_t gmac_cfg static void qca955x_chip_init_usb_peripheral(void) { -#if 0 - uint32_t reg; - - reg = ATH_READ_REG(AR934X_RESET_REG_BOOTSTRAP); - if (reg & AR934X_BOOTSTRAP_USB_MODE_DEVICE) - return; - - ar71xx_device_stop(AR934X_RESET_USBSUS_OVERRIDE); - DELAY(100); - - ar71xx_device_start(AR934X_RESET_USB_PHY); - DELAY(100); - - ar71xx_device_start(AR934X_RESET_USB_PHY_ANALOG); - DELAY(100); - - ar71xx_device_start(AR934X_RESET_USB_HOST); - DELAY(100); -#endif } static void