Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2009 06:46:30 -0400
From:      debardeleben@aol.com
To:        freebsd-current@freebsd.org
Cc:        freebsd@cfdhome.com
Subject:   Suggested fix for USB printer (ulpt.c)
Message-ID:  <8CB78F29832919B-1574-3D1E@WEBMAIL-MY24.sysops.aol.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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

[-- Attachment #2 --]
--- ulpt.c.orig	(revision 190254)
+++ ulpt.c	(working copy)
@@ -499,6 +499,7 @@ ulpt_attach(device_t dev)
 
 	sc->sc_dev = dev;
 	sc->sc_udev = uaa->device;
+	sc->sc_fflags = 0;
 
 	device_set_usb2_desc(dev);
 
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8CB78F29832919B-1574-3D1E>