mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Walmsley <paul@pwsan.com>
To: linux-kernel@vger.kernel.org
Cc: Raj Kumar <rkumar@archive.org>,
	<gphoto-devel@lists.sourceforge.net>, Siznax <steve@archive.org>,
	Brewster Kahle <brewster@archive.org>
Subject: [patch 1/1] usb quirks: Add Canon EOS 5D (PC Connection mode) to the autosuspend blacklist
Date: Thu, 16 Aug 2007 16:21:35 -0700	[thread overview]
Message-ID: <20070816232239.533779000@pwsan.com> (raw)
In-Reply-To: <20070816232134.151893000@pwsan.com>

[-- Attachment #1: canon-eos5d-no-autosuspend.patch --]
[-- Type: text/plain, Size: 1432 bytes --]

Recent versions of the Linux kernel auto-suspend attached USB devices.
After this happens to the Canon EOS 5D camera, the camera's interrupt endpoints
don't seem to wake back up correctly, causing further use with libgphoto2
to fail with a -114 "OS error in camera communication" error.  

A similar fix is probably necessary for this camera in PTP mode, which
identifies as USB product id 0x3102, but we haven't tested this.

As part of our testing process, we tried the USB_QUIRK_RESET_RESUME
quirk also, it's not helpful in this case.

Applies against 2.6.23-rc3.

Signed-off-by: Raj Kumar <rkumar@archive.org>
Signed-off-by: Paul Walmsley <paul@pwsan.com>

---
 drivers/usb/core/quirks.c |    3 +++
 1 file changed, 3 insertions(+)

Index: linux-2.6/drivers/usb/core/quirks.c
===================================================================
--- linux-2.6.orig/drivers/usb/core/quirks.c	2007-08-16 14:42:31.000000000 -0700
+++ linux-2.6/drivers/usb/core/quirks.c	2007-08-16 16:17:51.000000000 -0700
@@ -70,6 +70,9 @@
 	/* Philips PSC805 audio device */
 	{ USB_DEVICE(0x0471, 0x0155), .driver_info = USB_QUIRK_RESET_RESUME },
 
+	/* Canon EOS 5D in PC Connection mode */
+	{ USB_DEVICE(0x04a9, 0x3101), .driver_info = USB_QUIRK_NO_AUTOSUSPEND },
+
 	/* RIM Blackberry */
 	{ USB_DEVICE(0x0fca, 0x0001), .driver_info = USB_QUIRK_NO_AUTOSUSPEND },
 	{ USB_DEVICE(0x0fca, 0x0004), .driver_info = USB_QUIRK_NO_AUTOSUSPEND },

--


           reply	other threads:[~2007-08-16 23:32 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20070816232134.151893000@pwsan.com>]

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=20070816232239.533779000@pwsan.com \
    --to=paul@pwsan.com \
    --cc=brewster@archive.org \
    --cc=gphoto-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rkumar@archive.org \
    --cc=steve@archive.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®