linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Leif Sawyer <lsawyer@gci.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] ScanLogic USB-ATAPI Adapter (Thread followup)
Date: Wed, 9 Jan 2002 12:42:53 -0900	[thread overview]
Message-ID: <BF9651D8732ED311A61D00105A9CA31506DB46F4@berkeley.gci.com> (raw)

Posted this to the usb-devel list, but for the folks here that
are interested in the outcome of the earlier thread, feel free
to beat up on this, or if it doesn't work for you, submit your
device information to me and i'll work on getting it supported.

This patch should apply pretty cleanly to 2.4 (tested with .16)
and 2.5 (.2-pre9 tested)

-----Original Message-----
From: Leif Sawyer
Sent: Wednesday, January 09, 2002 9:20 AM
To: Matthew Dharm; linux-usb-devel@lists.sourceforge.net
Subject: [PATCH] ScanLogic USB-ATAPI Adapter, please apply


Matthew Dharm writes:
> I'm not going to patch anything until either:
> (a) You determine what's wrong with Rene's setup and fix it, or
> (b) You determine that your issue is orthogonal to his

Both (a) and (b).   We have different revs of the same hardware, and
of course what's good for the goose isn't for the gander.

Here's the results, tested across multiple revs, all working:

--- usb.h.dist	Fri Dec 14 16:17:44 2001
+++ usb.h	Mon Jan  7 20:40:13 2002
@@ -101,6 +101,7 @@
 #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_SL_IDE_BUG      0x00000100 /* ScanLogic usb-ide workaround */
 
 #define USB_STOR_STRING_LEN 32
 
--- transport.c.dist	Fri Nov  9 13:37:14 2001
+++ transport.c	Tue Jan  8 07:51:10 2002
@@ -1157,7 +1157,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_SL_IDE_BUG))) || 
 	    bcs.Status > US_BULK_STAT_PHASE || partial != 13) {
 		US_DEBUGP("Bulk logical error\n");
 		return USB_STOR_TRANSPORT_ERROR;

--- unusual_devs.h.dist	Fri Dec 14 16:17:51 2001
+++ unusual_devs.h	Tue Jan  8 07:47:57 2002
@@ -86,6 +86,27 @@
 		"FinePix 1400Zoom",
 		US_SC_8070, US_PR_CBI, NULL, US_FL_FIX_INQUIRY),
 
+/* Reported by Peter Wächtler */
+UNUSUAL_DEV(  0x04ce, 0x0002, 0x0074, 0x0074,
+		"ScanLogic",
+		"SL11R-IDE 0049SQFP-1.2 A002",
+		US_SC_SCSI, US_PR_BULK, NULL,
+		US_FL_FIX_INQUIRY ),
+
+/* Reported by Leif Sawyer */
+UNUSUAL_DEV(  0x04ce, 0x0002, 0x0240, 0x0240,
+		"H45 ScanLogic",
+		"SL11R-IDE 9951SQFP-1.2 K004",
+		US_SC_SCSI, US_PR_BULK, NULL,
+		US_FL_FIX_INQUIRY | US_FL_SL_IDE_BUG ),
+
+/* Reported by Rene Engelhard and Dylan Egan */
+UNUSUAL_DEV(  0x04ce, 0x0002, 0x0260, 0x0260,
+		"ScanLogic",
+		"SL11R-IDE unknown HW rev",
+		US_SC_SCSI, US_PR_BULK, NULL,
+		US_FL_SL_IDE_BUG ),
+
 /* Most of the following entries were developed with the help of
  * Shuttle/SCM directly.
  */
<---------------- cut here


_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

                 reply	other threads:[~2002-01-09 21:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=BF9651D8732ED311A61D00105A9CA31506DB46F4@berkeley.gci.com \
    --to=lsawyer@gci.com \
    --cc=linux-kernel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).