lkml.org 
[lkml]   [2008]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] JMicron JM20337 USB-SATA data corruption bugfix - device 152d:2338
On Sun, 3 Aug 2008, Alex Buell wrote:

> > Which patch? Several different ones have been posted.
>
> This is the one that I applied:
> Index: usb-2.6/drivers/usb/storage/transport.c
> ===================================================================
> --- usb-2.6.orig/drivers/usb/storage/transport.c
> +++ usb-2.6/drivers/usb/storage/transport.c
> @@ -663,7 +663,7 @@ void usb_stor_invoke_transport(struct sc
> }
>
> /* Did we transfer less than the minimum amount required? */
> - if (srb->result == SAM_STAT_GOOD &&
> + if ((srb->result == SAM_STAT_GOOD || srb->sense_buffer[2] == 0) && scsi_bufflen(srb) - scsi_get_resid(srb) < srb->underflow)
> srb->result = (DID_ERROR << 16) | (SUGGEST_RETRY << 24);
>
> > The log doesn't provide much help. We need to see a log with
> > CONFIG_USB_STORAGE_DEBUG enabled.
>
> Which patch should I be trying out?

That's the right patch. You should use it with 2.6.27-rc1.

I just got one of those JMicron thingies; I'll try it out later today.
No SATA devices available for testing, though, only PATA.

Alan Stern



\
 
 \ /
  Last update: 2008-08-04 18:51    [W:0.336 / U:1.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site