From owner-freebsd-current@FreeBSD.ORG Sun Mar 22 10:56:56 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 210601065680 for ; Sun, 22 Mar 2009 10:56:56 +0000 (UTC) (envelope-from DeBardeleben@aol.com) Received: from imo-m13.mail.aol.com (imo-m13.mx.aol.com [64.12.143.101]) by mx1.freebsd.org (Postfix) with ESMTP id E2D458FC08 for ; Sun, 22 Mar 2009 10:56:55 +0000 (UTC) (envelope-from DeBardeleben@aol.com) Received: from DeBardeleben@aol.com by imo-m13.mx.aol.com (mail_out_v39.1.) id v.d19.3af15290 (37565); Sun, 22 Mar 2009 06:46:36 -0400 (EDT) Received: from smtprly-ma02.mx.aol.com (smtprly-ma02.mx.aol.com [64.12.207.141]) by cia-mb04.mx.aol.com (v123.3) with ESMTP id MAILCIAMB042-5c4f49c61706371; Sun, 22 Mar 2009 06:46:38 -0400 Received: from WEBMAIL-MY24 (webmail-my24.sim.aol.com [64.12.109.82]) by smtprly-ma02.mx.aol.com (v123.3) with ESMTP id MAILSMTPRLYMA025-5c4f49c61706371; Sun, 22 Mar 2009 06:46:30 -0400 To: freebsd-current@freebsd.org Date: Sun, 22 Mar 2009 06:46:30 -0400 X-AOL-IP: 67.100.119.58 X-MB-Message-Source: WebUI Received: from 67.100.119.58 by WEBMAIL-MY24.sysops.aol.com (64.12.109.82) with HTTP (WebMailUI); Sun, 22 Mar 2009 06:46:30 -0400 MIME-Version: 1.0 From: debardeleben@aol.com X-MB-Message-Type: User Content-Type: multipart/mixed; boundary="--------MB_8CB78F2983E7D3F_1574_7BDB_WEBMAIL-MY24.sysops.aol.com" X-Mailer: AOL Webmail 41921-STANDARD Message-Id: <8CB78F29832919B-1574-3D1E@WEBMAIL-MY24.sysops.aol.com> X-Spam-Flag: NO X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd@cfdhome.com Subject: Suggested fix for USB printer (ulpt.c) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2009 10:56:56 -0000 ----------MB_8CB78F2983E7D3F_1574_7BDB_WEBMAIL-MY24.sysops.aol.com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" I finally got fed up enough with not being able to print with -CURRENT, and found a fix that make ulpt work for me with my epson stylus photo 835. I am using cups, and I have always needed to use the non-reset device, even with the old USB stack. Hopefully a committer can pick this up and include an appropriate version of this fix to the source tree. In the mean time, if you are having trouble with a usb printer with -CURRENT, you may want to try this patch. I am attaching a patch file (referenced at /usr/src/sys/dev/usb/serial from my system. The change is to initialize sc_fflags to 0 when attaching the device. This is allowing open to stop returning EBUSY. Now on to finding out why using my newly accessible firewire disks resulted in filesystem corruption on all of my filesystems. I suspect some missing lock. Its very annoying, and I lost a lot of important files. (I will be doing a full backup of all of my disks before connecting my firewire disks back up). -Charles ----------MB_8CB78F2983E7D3F_1574_7BDB_WEBMAIL-MY24.sysops.aol.com Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch-ulpt.c" Content-Type: application/octet-stream; name="patch-ulpt.c" LS0tIHVscHQuYy5vcmlnCShyZXZpc2lvbiAxOTAyNTQpCisrKyB1bHB0LmMJKHdvcmtpbmcg Y29weSkKQEAgLTQ5OSw2ICs0OTksNyBAQCB1bHB0X2F0dGFjaChkZXZpY2VfdCBkZXYpCiAK IAlzYy0+c2NfZGV2ID0gZGV2OwogCXNjLT5zY191ZGV2ID0gdWFhLT5kZXZpY2U7CisJc2Mt PnNjX2ZmbGFncyA9IDA7CiAKIAlkZXZpY2Vfc2V0X3VzYjJfZGVzYyhkZXYpOwog ----------MB_8CB78F2983E7D3F_1574_7BDB_WEBMAIL-MY24.sysops.aol.com--