diff options
author | Brandon Philips <brandon@ifup.org> | 2009-01-05 08:30:39 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@kvm.kroah.org> | 2009-01-27 16:15:36 -0800 |
commit | 06a743bfc42660f27fde5f24d7471e1eb4c71218 (patch) | |
tree | c53220d6772b6af8dbff63234893fb3998ce4814 /drivers/isdn/hisax/arcofi.c | |
parent | 296361ec3abbba7621e9fff01a572ac0873da903 (diff) | |
download | lwn-06a743bfc42660f27fde5f24d7471e1eb4c71218.tar.gz lwn-06a743bfc42660f27fde5f24d7471e1eb4c71218.zip |
USB: usblp.c: add USBLP_QUIRK_BIDIR to Brother HL-1440
My Brother HL-1440 would print one document before CUPS would stop
printing with the error "Printer not connected; will retry in 30
seconds...". I traced this down to the CUPS usb backend getting an EIO
out of usblp on the IOCNR_GET_DEVICE_ID IOCTL. Adding the
USBLP_QUIRK_BIDIR fixes the problem but is it the right solution?
output from strace /usr/lib/cups/backend/usb after printing a document
(Note: SNDCTL_DSP_SYNC == IOCNR_GET_DEVICE_ID):
before patch
open("/dev/usb/lp0", O_RDWR|O_EXCL) = 3
ioctl(3, SNDCTL_DSP_SYNC, 0x7fff2478cef0) = -1 EIO (Input/output error)
after patch
open("/dev/usb/lp0", O_RDWR|O_EXCL) = 3
ioctl(3, SNDCTL_DSP_SYNC, 0x7fffb8d474c0) = 0
Possibly related bug: https://bugs.launchpad.net/ubuntu/+source/cupsys/+bug/35638
Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/isdn/hisax/arcofi.c')
0 files changed, 0 insertions, 0 deletions