From owner-freebsd-usb@FreeBSD.ORG Wed Nov 10 11:12:42 2004 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BA4116A4FE for ; Wed, 10 Nov 2004 11:12:42 +0000 (GMT) Received: from transwarp.tao.org.uk (transwarp.tao.org.uk [212.135.162.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5025543D46 for ; Wed, 10 Nov 2004 11:12:41 +0000 (GMT) (envelope-from joe@tao.org.uk) Received: from genius.tao.org.uk (genius.tao.org.uk [212.135.162.51]) by transwarp.tao.org.uk (Postfix) with ESMTP id 603297590 for ; Wed, 10 Nov 2004 11:12:40 +0000 (GMT) Received: by genius.tao.org.uk (Postfix, from userid 100) id E4984435A; Wed, 10 Nov 2004 11:12:31 +0000 (GMT) Date: Wed, 10 Nov 2004 11:12:31 +0000 From: Josef Karthauser To: freebsd-usb@freebsd.org Message-ID: <20041110111231.GB908@genius.tao.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LyciRD1jyfeSSjG0" Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: Legacy keyboard suppport stops USB from working! (uhci) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 11:12:42 -0000 --LyciRD1jyfeSSjG0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Do users know that having legacy keyboard/mouse support switched on in the bios is a sure fire way of causing USB to not work properly? I wonder whether we would benefit from something like the following patch. Joe Index: uhci_pci.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/dev/usb/uhci_pci.c,v retrieving revision 1.55 diff -u -r1.55 uhci_pci.c --- uhci_pci.c 13 Oct 2004 14:51:42 -0000 1.55 +++ uhci_pci.c 10 Nov 2004 11:10:42 -0000 @@ -341,11 +341,12 @@ * that the BIOS won't touch the keyboard anymore if it is connected * to the ports of the root hub? */ -#ifdef USB_DEBUG - if (pci_read_config(self, PCI_LEGSUP, 2) !=3D PCI_LEGSUP_USBPIRQDEN) + if (pci_read_config(self, PCI_LEGSUP, 2) !=3D PCI_LEGSUP_USBPIRQDEN) { device_printf(self, "LegSup =3D 0x%04x\n", pci_read_config(self, PCI_LEGSUP, 2)); -#endif + device_printf(self, "(If USB doesn't work try disabling " + "legacy keyboard/mouse support in the BIOS)"); + } pci_write_config(self, PCI_LEGSUP, PCI_LEGSUP_USBPIRQDEN, 2); =20 err =3D uhci_init(sc); --=20 Josef Karthauser (joe@tao.org.uk) http://www.josef-k.net/ FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/ Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D An eclectic mix of fact an= d theory. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --LyciRD1jyfeSSjG0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iEYEARECAAYFAkGR958ACgkQXVIcjOaxUBYDqwCgpH1FCp8ye/hifA6EfL5BC8GR 2n0An06qkC7E5gNWDA9Ia5KpG6J3s/PF =FuhC -----END PGP SIGNATURE----- --LyciRD1jyfeSSjG0--