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>

next in thread | raw e-mail | index | archive | help

----------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--



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