Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 2004 11:12:31 +0000
From:      Josef Karthauser <joe@FreeBSD.org>
To:        freebsd-usb@freebsd.org
Subject:   Legacy keyboard suppport stops USB from working! (uhci)
Message-ID:  <20041110111231.GB908@genius.tao.org.uk>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041110111231.GB908>