From owner-freebsd-stable Wed Dec 19 2: 9:26 2001 Delivered-To: freebsd-stable@freebsd.org Received: from gate.consol.de (gate.consol.de [194.221.87.10]) by hub.freebsd.org (Postfix) with ESMTP id 2A30637B41D for ; Wed, 19 Dec 2001 02:09:21 -0800 (PST) Received: from msgsrv.bb.consol.de (imap.consol.de [10.250.0.100]) by gate.consol.de (8.11.6/8.11.6) with ESMTP id fBJA9Gb17694 for ; Wed, 19 Dec 2001 11:09:16 +0100 (CET) (envelope-from Thorsten.Greiner@consol.de) Received: from bonn.rtg.consol.de (vscanner.bb.consol.de [10.250.0.120]) by msgsrv.bb.consol.de (8.8.8/8.8.8) with ESMTP id LAA22753 for ; Wed, 19 Dec 2001 11:09:12 +0100 Received: from there by bonn.rtg.consol.de (8.8.8+Sun/SMI-SVR4) id MAA18428; Wed, 19 Dec 2001 12:09:48 +0100 (MET) Message-Id: <200112191109.MAA18428@bonn.rtg.consol.de> Content-Type: text/plain; charset="iso-8859-1" From: Thorsten Greiner Organization: ConSol* GmbH To: freebsd-stable@freebsd.org Subject: Patch for USB (uhci) Date: Wed, 19 Dec 2001 11:09:08 +0100 X-Mailer: KMail [version 1.3] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, please find enclosed a patch for /usr/src/sys/pci/uhci_pci.c which gets the uhci controller working on my ASUS L7300 notebook. This is a merge from the NetBSD usb stack, which seems to be a bit newer the FreeBSD's usb stack. I wonder if you can review this patch and maybe integrate it into -STABLE. Or should I open a pr? Thanks -Thorsten Here is the patch: --- uhci_pci.c_orig Wed Dec 19 10:56:47 2001 +++ uhci_pci.c Wed Dec 19 10:56:50 2001 @@ -182,6 +182,7 @@ uhci_softc_t *sc = device_get_softc(self); int rid; int err; + u_int32_t csr; rid = PCI_UHCI_BASE_REG; sc->io_res = bus_alloc_resource(self, SYS_RES_IOPORT, &rid, @@ -275,6 +276,11 @@ uhci_pci_detach(self); return ENXIO; } + + /* Enable the device. */ + csr = pci_read_config(self, PCI_COMMAND_STATUS_REG, 4); + pci_write_config(self, PCI_COMMAND_STATUS_REG, + csr | PCIM_CMD_BUSMASTEREN, 4); /* Set the PIRQD enable bit and switch off all the others. We don't * want legacy support to interfere with us To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message