From owner-cvs-all Mon Jan 17 15:14:46 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id BB7F214E39; Mon, 17 Jan 2000 15:14:44 -0800 (PST) (envelope-from wpaul@FreeBSD.org) Received: (from wpaul@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id PAA36611; Mon, 17 Jan 2000 15:14:44 -0800 (PST) (envelope-from wpaul@FreeBSD.org) Message-Id: <200001172314.PAA36611@freefall.freebsd.org> From: Bill Paul Date: Mon, 17 Jan 2000 15:14:43 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb if_kue.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk wpaul 2000/01/17 15:14:43 PST Modified files: sys/dev/usb if_kue.c Log: Change the mechanism by which we detect that the firmware is already running. It turns out that trying to read the MAC address when there's no firmware creates a zero length transfer. This apparently doesn't hurt anything on a UHCI controller, but OHCI controllers generate an IOERROR, and the device doesn't initialize. Instead, check the bcdDevice revision code. We know this will be different when the firmware is running, so if we detect the firmware's code instead of the bare hardware's code, we skip the firmware load. Revision Changes Path 1.16 +21 -26 src/sys/dev/usb/if_kue.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message