[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sony Handycam as USB mass storage hang



Eric van der Vlist <vdv@dyomedea.com> writes:

> I am not sure that the issue is specific to debian-powerpc since I got
> similar yet less frequent problems on a intel platform a while ago, but
> I can't manage to download pictures from my Sony Handycam (DCR-PC120E)
> on my ibook2.
  
> The USB connection is then frozen, the find command doesn't seem to
> ever end and even though all the other functions of the ibook work
> fine, the only way to resume the USB is to switch the computer off
> and on.

I had a similar problem, which I 'fixed' with this:

--- /usr/local/src/linux/drivers/usb/storage/usb.c      Wed Oct 10 13:48:40 2001
+++ storage/usb.c       Mon Jul 30 01:41:52 2001
@@ -438,8 +437,7 @@
                        up(&(us->dev_semaphore));
 
                        /* indicate that the command is done */
-                       if (us->srb->result != DID_ABORT << 16 
-                           && us->srb->result != DID_ERROR << 16) {
+                       if (us->srb->result != DID_ABORT << 16) {
                                US_DEBUGP("scsi cmd done, result=0x%x\n", 
                                           us->srb->result);
                                set_current_state(TASK_INTERRUPTIBLE);
----

I don't think it actually fixes the problem, but it keeps everything
from brutally hanging.  It's a complete shot in the dark, though, and
may not even be related to what you are seeing!  Patch with caution!

-- 
David N. Welton
   Consulting: http://www.dedasys.com/
     Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
   Apache Tcl: http://tcl.apache.org/



Reply to: