public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: USB Printer, in 2.4.0-test9
       [not found] <2915.972470910@www33.gmx.net>
@ 2000-10-27 21:05 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2000-10-27 21:05 UTC (permalink / raw)
  To: Gerald.Haese; +Cc: linux-kernel, blc

[-- Attachment #1: Type: text/plain, Size: 823 bytes --]

Gerald, Benson-

USB in 2.4.0-test9 had several broken pieces in it.
Something like 2.4.0-test10-pre6 is much better IMO.
However, the USB printer driver in test10-pre6 still
needs the attached patch (already sent to Linus).

Please try test10-pre6 with this patch and let me know how it is.

Thanks,
~Randy


Gerald.Haese@gmx.de wrote:
> 
> In article
>  <linux.kernel.Pine.LNX.4.21.0010232241360.7434-100000@q.dyndns.org>,
> Benson Chow <blc@q.dyndns.org> wrote:
> 
> > I get a bunch of form feeds too but it continues to print a few
> > characters fine and some that are totally wrong.
> 
> The same problem here. I'am using a dual Pentium (GA586-DX) with 2 x 233
> MHz PentiumMMX and a PCI USB controller card with a VIA Chip. The
> printer is
> a DeskJet 970Cxi. Printing via USB is completely impossible.
> 
>  Gerald

[-- Attachment #2: printer_c_patch --]
[-- Type: text/plain, Size: 458 bytes --]

--- linux/drivers/usb/printer.c.org	Thu Oct 26 17:36:50 2000
+++ linux/drivers/usb/printer.c	Thu Oct 26 17:09:53 2000
@@ -190,6 +190,8 @@
 		retval = retval > 1 ? -EIO : -ENOSPC;
 		goto out;
 	}
+#else
+	retval = 0;	
 #endif
 
 	usblp->used = 1;
@@ -383,6 +385,7 @@
 		return -EFAULT;
 
 	if ((usblp->readcount += count) == usblp->readurb.actual_length) {
+		usblp->readcount = 0;
 		usblp->readurb.dev = usblp->dev;
 		usb_submit_urb(&usblp->readurb);
 	}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: USB Printer, in 2.4.0-test9
@ 2000-11-01  0:16 Dunlap, Randy
  0 siblings, 0 replies; 2+ messages in thread
From: Dunlap, Randy @ 2000-11-01  0:16 UTC (permalink / raw)
  To: 'Benson Chow', linux-kernel; +Cc: 'Gerald.Haese@gmx.de'

Hi,

Can you try the USB printer driver in 2.4.0-test10 and
let me know if it works for you?  [It works for me.]

~Randy_________________________________________
|randy.dunlap_at_intel.com        503-677-5408|
|NOTE: Any views presented here are mine alone|
|& may not represent the views of my employer.|
-----------------------------------------------

> Strange things here.
> 
> I'm testing out 2.4.0-test9 kernel with USB, (reiserfs built in, but,
> hopefully this has nothing to do with it).
> 
> Hardware is a 440FX Dual PPro200/Natoma + 82371SB PIIX3/USB.
> Printer: HP DeskJet 880C USB/Parallel
> Mouse: Microsoft Intellimouse with Intellieye USB
> Other stuff: Belkin "Macintosh" USB hub
> 
> Symptoms:
> 
> USB Mouse appears to work totally fine.
> 
> USB Printer will print a few bytes, and suddenly print garbage
> (bitmap/pcl). I tried printing out some plain text and it's 
> MANGLING bits
> - corrupting random bytes of data.  The general structure of bytes are
> still there, but the resultant printout is gibberish.  
> (source print file
> is a text file printed via "cat file >/dev/usblp0" (which is device
> 180,0))
> 
> I get a bunch of form feeds too but it continues to print a 
> few characters
> fine and some that are totally wrong.  It looks like it's 
> corrupting about
> 5% of the characters, including some high bit 7 characters.
> 
> Any ideas what's going on, and is this repeatable by anyone else?  Bad
> hardware?  This SMP box only supports one form of the MPS, and I'm not
> sure how to tell the difference... I also tried using the 
> printer w/o the hub, and same results...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-01  0:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <2915.972470910@www33.gmx.net>
2000-10-27 21:05 ` USB Printer, in 2.4.0-test9 Randy Dunlap
2000-11-01  0:16 Dunlap, Randy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox