Bug 31455

Summary: [PATCH] ohci driver problem when send data with USBD_FORCE_SHORT_XFER flag.
Product: Base System Reporter: Hiroyuki Aizu <aizu>
Component: kernAssignee: Nick Hibma <n_hibma>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Hiroyuki Aizu 2001-10-23 17:10:00 UTC
The USB Ethernet adoptor that use the aue driver didn't work with OHCI controller machine.
Because when any packet send to anywhere, aue driver try to transfer the data with set USBD_FORCE_SHORT_XFER flag on,
the OHCI driver failed handling 0 size packet.
The NetBSD's code was helpfull to solve this problem.

Fix: Apply following patch.
This fix  effective to both of -stable and -current, I think.
How-To-Repeat: Plug the aue USB Ethernet adoptor to the machine that have USB OHCI controller and send packet anywhere.
Comment 1 Nick Hibma freebsd_committer freebsd_triage 2001-10-24 00:10:06 UTC
State Changed
From-To: open->analyzed

This is a not working case, nothing that breaks the machine. 



Comment 2 Nick Hibma freebsd_committer freebsd_triage 2001-10-24 00:10:06 UTC
Responsible Changed
From-To: freebsd-bugs->n_hibma

USB is my turf.
Comment 3 sada 2002-02-08 07:28:27 UTC
FYI: including the submitter, three persons said that
their problem have solved by this patch.
[FreeBSD-users-jp 65061]

--
SADA Kenji <sada@FreeBSD.org>
Comment 4 bko 2002-07-01 07:04:20 UTC
Another report -- this patch (actually , I applied all of netbsd's ohci.c
1.75) fixed this for me.

However, i would get infinte looping of read errors after a while.  that
might be a separate bug, and this definitely fixes things from not working
to somewhat working for me.

-- 
bryan k ogawa  <bko@unobvious.com>   http://www.unobvious.com/
Comment 5 n_hibma 2002-07-01 21:27:34 UTC
This is implemented in CURRENT (the CURRENT code is pretty much in sync
with the NetBSD code).

That version should be backported to STABLE.
Comment 6 Mark Linimon freebsd_committer freebsd_triage 2004-08-27 23:31:12 UTC
State Changed
From-To: analyzed->closed

Fixed in a long-ago version of -current.