From owner-freebsd-usb@FreeBSD.ORG Thu May 24 14:40:02 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E499816A46C for ; Thu, 24 May 2007 14:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id C098413C45D for ; Thu, 24 May 2007 14:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4OEe2Nr080476 for ; Thu, 24 May 2007 14:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4OEe2HX080475; Thu, 24 May 2007 14:40:02 GMT (envelope-from gnats) Resent-Date: Thu, 24 May 2007 14:40:02 GMT Resent-Message-Id: <200705241440.l4OEe2HX080475@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Peter van Heusden & Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CBBA216A468 for ; Thu, 24 May 2007 14:39:30 +0000 (UTC) (envelope-from pvh@wfeet.za.net) Received: from ctb-mesg-2-2.saix.net (ctb-mesg-2-2.saix.net [196.25.240.87]) by mx1.freebsd.org (Postfix) with ESMTP id 6AE8C13C44B for ; Thu, 24 May 2007 14:39:23 +0000 (UTC) (envelope-from pvh@wfeet.za.net) Received: from leftside.wfeet.za.net (dsl-241-69-227.telkomadsl.co.za [41.241.69.227]) by ctb-mesg-2-2.saix.net (Postfix) with ESMTP id 76AC4124CB for ; Thu, 24 May 2007 15:37:13 +0200 (SAST) Received: from pvh by leftside.wfeet.za.net with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1HrDVB-0000u8-23 for FreeBSD-gnats-submit@freebsd.org; Thu, 24 May 2007 15:37:13 +0200 Message-Id: Date: Thu, 24 May 2007 15:37:13 +0200 From: Peter van Heusden & To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/112944: [patch] Bi-directional access to HP LaserJet 1010 printer on USB seems faulty X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Peter van Heusden & List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2007 14:40:03 -0000 >Number: 112944 >Category: usb >Synopsis: [patch] Bi-directional access to HP LaserJet 1010 printer on USB seems faulty >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 24 14:40:02 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Peter van Heusden & >Release: FreeBSD 6.2-STABLE i386 >Organization: Webbed Feet >Environment: System: FreeBSD leftside.wfeet.za.net 6.2-STABLE FreeBSD 6.2-STABLE #5: Thu May 24 08:13:46 SAST 2007 pvh@leftside.wfeet.za.net:/usr/obj/usr/src/sys/LEFTSIDE i386 FreeBSD 6-STABLE as of 23 May 2007 Intel Celeron 768 MHz, 256 MB RAM USB: dmesg output: uhci0: port 0xd400-0xd41f irq 11 at device 4.2 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xd000-0xd01f irq 11 at device 4.3 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ... ulpt0: Hewlett-Packard hp LaserJet 1010, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using uni-directional mode usbdevs -v output: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, self powered, config 1, hp LaserJet 1010(0x0c17), Hewlett-Packard(0x03f0), rev 1.00 Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 powered port 2 powered >Description: CUPS on FreeBSD interacts badly with the HP LaserJet 1010 printer since it tries to read bytes from /dev/ulpt when select() claims they are available, yet hangs on read. Disabling bidirectional printing solves this problem. >How-To-Repeat: Try to read from /dev/ulpt0 when a HP LaserJet 1010 is attached. >Fix: Patch attached. >Release-Note: >Audit-Trail: >Unformatted: