Suggested fix for USB printer (ulpt.c)

debardeleben at aol.com debardeleben at aol.com
Sun Mar 22 03:56:56 PDT 2009


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-ulpt.c
Type: application/octet-stream
Size: 210 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20090322/cbdd327d/patch-ulpt.obj


More information about the freebsd-current mailing list