All of lore.kernel.org
 help / color / mirror / Atom feed
From: root <gunther.mayer@gmx.net>
To: Rene Engelhard <mail@rene-engelhard.de>
Cc: Greg KH <greg@kroah.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Getting ScanLogic USB-ATAPI Adapter to work
Date: Thu, 10 Jan 2002 19:20:03 +0100	[thread overview]
Message-ID: <3C3DDB53.D799A1EC@gmx.net> (raw)
In-Reply-To: <20020107211757.A4196@rene-engelhard.de>

Rene Engelhard wrote:

> Hi Greg, hi Kernel-Hackers,
>
> a long time ago I bought the Adapter mentioned above and got it
> working.
>
> Now, 6 months after that I bought it, my testing is over and I got the
> result: The device is working by changing the usb-storage sources; this
> has not affected any other thing. All my devices (3 of USB) runs perfectly.

I sent a fool-proof patch to the MAINTAINER 6 (nine!) months before and
discussed this on usb-devel. The MAINTAINER has chosen to reject
this patch (for private discussions whith the manufacturer about standards
comliance) and leave users alone ! Although I proposed to him to disable
all QUIRKS and Worksarounds for buggy hardware in his tree and see if the
system still is running he stayed stubborn. As UNUSUAL_DEVS is quite
large he is inconsequent for no apparent reason.

P.S. Please use this patch:
- Don't bloat Config.in with with unnecessary decisions, just fix the bugger
  automatically.
- Be non-intrusive to other devices.

Gunther


--- linux-2.4.6-ac1-orig/drivers/usb/storage/transport.c        Wed Apr 18
20:49:12 2001
+++ linux/drivers/usb/storage/transport.c       Sat Jul 21 12:18:32 2001
@@ -1180,7 +1180,7 @@
                  le32_to_cpu(bcs.Signature), bcs.Tag,
                  bcs.Residue, bcs.Status);
        if (bcs.Signature != cpu_to_le32(US_BULK_CS_SIGN) ||
-           bcs.Tag != bcb.Tag ||
+           ((bcs.Tag != bcb.Tag) && !(us->flags & US_FL_QUIRKS_TAG)) ||
            bcs.Status > US_BULK_STAT_PHASE || partial != 13) {
                US_DEBUGP("Bulk logical error\n");
                return USB_STOR_TRANSPORT_ERROR;
--- linux-2.4.6-ac1-orig/drivers/usb/storage/usb.h      Sun Jul  8 19:53:50
2001
+++ linux/drivers/usb/storage/usb.h     Sat Jul 21 12:05:15 2001
@@ -100,6 +100,8 @@
 #define US_FL_IGNORE_SER      0x00000010 /* Ignore the serial number given
*/
 #define US_FL_SCM_MULT_TARG   0x00000020 /* supports multiple targets */
 #define US_FL_FIX_INQUIRY     0x00000040 /* INQUIRY response needs fixing */
+#define US_FL_QUIRKS_TAG      0x00000080 /* the buggy device doesn't echo the
tag
+                                           in the status response !*/

 #define USB_STOR_STRING_LEN 32

--- linux-2.4.6-ac1-orig/drivers/usb/storage/unusual_devs.h     Sun Jul  8
19:53:50 2001
+++ linux/drivers/usb/storage/unusual_devs.h    Sat Jul 21 12:06:55 2001
@@ -59,6 +59,12 @@
                "FinePix 1400Zoom",
                US_SC_8070, US_PR_CBI, NULL, US_FL_FIX_INQUIRY),

+// Firmware 2.60 needs US_FL_QUIRKS_TAG here ! Bugger device.
+UNUSUAL_DEV(  0x04ce, 0x0002, 0x0000, 0x9999,
+                "Scanlogic",
+                "SL11R USBIDE",
+                US_SC_SCSI, US_PR_BULK, NULL, US_FL_QUIRKS_TAG),
+
 UNUSUAL_DEV(  0x04e6, 0x0001, 0x0200, 0x0200,
                "Matshita",
                "LS-120",







  parent reply	other threads:[~2002-01-10 18:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-07 20:17 [PATCH] Getting ScanLogic USB-ATAPI Adapter to work Rene Engelhard
2002-01-08 12:21 ` Peter Wächtler
2002-01-08 16:58   ` Rene Engelhard
2002-01-10 18:20 ` root [this message]
2002-01-10 19:08   ` Leif Sawyer
2002-01-10 19:16     ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2002-01-07 20:47 Leif Sawyer
2002-01-07 21:16 ` Greg KH

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=3C3DDB53.D799A1EC@gmx.net \
    --to=gunther.mayer@gmx.net \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mail@rene-engelhard.de \
    /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.