From owner-svn-src-head@FreeBSD.ORG Fri Mar 27 16:56:02 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CDB1106566B; Fri, 27 Mar 2009 16:56:02 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2A4258FC08; Fri, 27 Mar 2009 16:56:02 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2RGu1Q3066501; Fri, 27 Mar 2009 16:56:01 GMT (envelope-from thompsa@svn.freebsd.org) Received: (from thompsa@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2RGu18p066500; Fri, 27 Mar 2009 16:56:01 GMT (envelope-from thompsa@svn.freebsd.org) Message-Id: <200903271656.n2RGu18p066500@svn.freebsd.org> From: Andrew Thompson Date: Fri, 27 Mar 2009 16:56:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r190471 - head/sys/dev/usb/controller X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2009 16:56:02 -0000 Author: thompsa Date: Fri Mar 27 16:56:01 2009 New Revision: 190471 URL: http://svn.freebsd.org/changeset/base/190471 Log: The buffer start and end phys addresses should be 0x0 for an OHCI zero length packet, this fixes LS/FS devices on the Gateworks 2348 XScale board. Reviewed by: HPS Modified: head/sys/dev/usb/controller/ohci.c Modified: head/sys/dev/usb/controller/ohci.c ============================================================================== --- head/sys/dev/usb/controller/ohci.c Fri Mar 27 15:57:52 2009 (r190470) +++ head/sys/dev/usb/controller/ohci.c Fri Mar 27 16:56:01 2009 (r190471) @@ -1350,9 +1350,12 @@ restart: temp->td_flags &= ~htole32(OHCI_TD_TOGGLE_MASK); if (average == 0) { - + /* + * The buffer start and end phys addresses should be + * 0x0 for a zero length packet. + */ td->td_cbp = 0; - td->td_be = ~0; + td->td_be = 0; td->len = 0; } else {