From owner-cvs-all@FreeBSD.ORG Wed Dec 29 01:21:19 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1081816A4CE; Wed, 29 Dec 2004 01:21:19 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC92843D31; Wed, 29 Dec 2004 01:21:18 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iBT1LItx075853; Wed, 29 Dec 2004 01:21:18 GMT (envelope-from julian@repoman.freebsd.org) Received: (from julian@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iBT1LIow075852; Wed, 29 Dec 2004 01:21:18 GMT (envelope-from julian) Message-Id: <200412290121.iBT1LIow075852@repoman.freebsd.org> From: Julian Elischer Date: Wed, 29 Dec 2004 01:21:18 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/usb ehci.c ehcivar.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Dec 2004 01:21:19 -0000 julian 2004-12-29 01:21:18 UTC FreeBSD src repository Modified files: sys/dev/usb ehci.c ehcivar.h Log: Rewrite ehci_abort_xfer() to use the method hinted at in the EHCI spec. to remove a transaction from the async schedule. The previous method didn't work well and led to the hardware writing to free'd buffers etc, as it didn't always know that the transaction had been aborted. Written after consultation with David Brownell who wrote the Linux EHCI driver. As part of this give the sqh structure a "previous" pointer. MFC after: 1 week Revision Changes Path 1.26 +106 -44 src/sys/dev/usb/ehci.c 1.6 +1 -0 src/sys/dev/usb/ehcivar.h