All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pete Zaitcev <zaitcev-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Alexander Beregalov
	<a.beregalov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Kernel Testers List
	<kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	zaitcev-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Subject: Re: 2.6.30-rc6: usb printer does not work
Date: Thu, 28 May 2009 12:20:54 -0600	[thread overview]
Message-ID: <20090528122054.2c837ccd.zaitcev@redhat.com> (raw)
In-Reply-To: <a4423d670905281044n5e2480a1g98fc6fb5ceb845cd-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Thu, 28 May 2009 21:44:05 +0400, Alexander Beregalov <a.beregalov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> >> kernel is 2.6.30-rc6-00065-g3633832
> >>
> >> It worked sometime ago, I do not remember,
> >> perhaps it was 2.6.29.
> >
> > Can you verify it?

> It works with 2.6.29 indeed.

Thanks. Just to make sure that it's the culprit, can you back out
the patch for the usblp from the 2.6.30-rc6-00065-g3633832, whatever
that is? We only had one since 2.6.29 (attached).

Also, I'd like to see a usbmon trace. I don't want to create more
quirks, so perhaps we can work out some kind of compromise that lets
BJC-3000 work with the general code. Failing that, we'll add a quirk
and that would hopefuly restore your case (HP CP1215, I take it).

-- Pete

--- linux-2.6.29/drivers/usb/class/usblp.c	2009-05-28 12:07:06.000000000 -0600
+++ linux-2.6/drivers/usb/class/usblp.c	2009-04-05 11:27:00.000000000 -0600
@@ -880,16 +880,19 @@ static int usblp_wwait(struct usblp *usb
 		if (rc <= 0)
 			break;
 
-		if (usblp->flags & LP_ABORT) {
-			if (schedule_timeout(msecs_to_jiffies(5000)) == 0) {
+		if (schedule_timeout(msecs_to_jiffies(1500)) == 0) {
+			if (usblp->flags & LP_ABORT) {
 				err = usblp_check_status(usblp, err);
 				if (err == 1) {	/* Paper out */
 					rc = -ENOSPC;
 					break;
 				}
+			} else {
+				/* Prod the printer, Gentoo#251237. */
+				mutex_lock(&usblp->mut);
+				usblp_read_status(usblp, usblp->statusbuf);
+				mutex_unlock(&usblp->mut);
 			}
-		} else {
-			schedule();
 		}
 	}
 	set_current_state(TASK_RUNNING);
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2009-05-28 18:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-28 17:07 2.6.30-rc6: usb printer does not work Alexander Beregalov
2009-05-28 17:18 ` Pete Zaitcev
     [not found]   ` <20090528111831.a35c5184.zaitcev-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-05-28 17:44     ` Alexander Beregalov
     [not found]       ` <a4423d670905281044n5e2480a1g98fc6fb5ceb845cd-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-28 18:20         ` Pete Zaitcev [this message]
     [not found]           ` <20090528122054.2c837ccd.zaitcev-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-05-29  5:30             ` Alexander Beregalov
     [not found]               ` <a4423d670905282230n4bb9f456w1b13ce6462f81bf9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-29  7:11                 ` Pete Zaitcev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090528122054.2c837ccd.zaitcev@redhat.com \
    --to=zaitcev-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=a.beregalov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.