On Sun, 2 Sep 2012, Alon Bar-Lev wrote:
> I modified the patch to the following to make sure my main disk is unaffected:
> ---
> --- drivers/scsi/sd.c 2012-07-21 23:58:29.000000000 +0300
> +++ drivers/scsi/sd.c.new 2012-08-31 19:47:15.822632952 +0300
> @@ -1899,13 +1899,17 @@ static int sd_try_rc16_first(struct scsi
> {
> if (sdp->host->max_cmd_len < 16)
> return 0;
> - if (sdp->try_rc_10_first)
> - return 0;
> + if (sdp->try_rc_10_first) {
> + printk("@ALON: apply workaround 1");
> + /*return 0;*/
> + }
> if (sdp->scsi_level > SCSI_SPC_2)
> return 1;
> if (scsi_device_protection(sdp))
> return 1;
> - return 0;
> + printk("@ALON: apply workaround 2");
> + /*return 0;*/
> + return 1;
> }
If you still have the JMicron device, can you post a usbmon trace
showing what happens without any patches at all? I'm curious to see
how the device gets handled.
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html