From: Rene Engelhard <mail@rene-engelhard.de>
To: Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Getting ScanLogic USB-ATAPI Adapter to work
Date: Mon, 7 Jan 2002 21:17:57 +0100 [thread overview]
Message-ID: <20020107211757.A4196@rene-engelhard.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 773 bytes --]
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.
So I send you this patch.
It's against 2.5.2-pre9 and the patch from Alan with the comment that
you need SCSI Support is applied in my tree, so this is needed before
applying this patch (but I saw you did it Greg, you can do this)
Because of testing this patch 6 months, I do not consider to say that
this patch is experimental, so I did not write $CONFIG_EXPERIMENTAL at
the end of the dep_mbool statement.
I have attached it to this mail.
Rene
[-- Attachment #2: Patch for USB-IDE bridge from ScanLogic --]
[-- Type: text/plain, Size: 2987 bytes --]
diff -urN linux/Documentation/Configure.help linux.new/Documentation/Configure.help
--- linux/Documentation/Configure.help Mon Jan 7 19:29:56 2002
+++ linux.new/Documentation/Configure.help Mon Jan 7 19:20:24 2002
@@ -13492,6 +13492,16 @@
Support for the Freecom USB to IDE/ATAPI adaptor.
Freecom has a web page at <http://www.freecom.de/>.
+ScanLogic USB-ATAPI Bridge support
+CONFIG_USB_STORAGE_SCANLOGIC
+ Support for the ScanLogic USB to IDE/ATAPI adapter.
+ For german people: This is the adapter shipped from ATELCO.
+ For details, see
+ http://plichta.cs.uni-dortmund.de/~rene/linux/kernel/patches/scanlogic/
+ and http://www.qbik.ch/usb/devices/showdev.php?id=491
+
+ Say Y here if you have this device, otherwise say N.
+
Microtech CompactFlash/SmartMedia reader
CONFIG_USB_STORAGE_DPCM
Say Y here to support the Microtech ZiO! CompactFlash/SmartMedia
diff -urN linux/drivers/usb/Config.in linux.new/drivers/usb/Config.in
--- linux/drivers/usb/Config.in Mon Jan 7 21:05:10 2002
+++ linux.new/drivers/usb/Config.in Mon Jan 7 20:40:32 2002
@@ -38,6 +38,7 @@
else
dep_tristate ' USB Mass Storage support' CONFIG_USB_STORAGE $CONFIG_USB $CONFIG_SCSI
dep_mbool ' USB Mass Storage verbose debug' CONFIG_USB_STORAGE_DEBUG $CONFIG_USB_STORAGE
+ dep_mbool ' ScanLogic USB/ATAPI bridge' CONFIG_USB_STORAGE_SCANLOGIC $CONFIG_USB_STORAGE
dep_mbool ' Datafab MDCFE-B Compact Flash Reader support' CONFIG_USB_STORAGE_DATAFAB $CONFIG_USB_STORAGE $CONFIG_EXPERIMENTAL
dep_mbool ' Freecom USB/ATAPI Bridge support' CONFIG_USB_STORAGE_FREECOM $CONFIG_USB_STORAGE
dep_mbool ' ISD-200 USB/ATA Bridge support' CONFIG_USB_STORAGE_ISD200 $CONFIG_USB_STORAGE
diff -urN linux/drivers/usb/storage/transport.c linux.new/drivers/usb/storage/transport.c
--- linux/drivers/usb/storage/transport.c Mon Jan 7 19:29:58 2002
+++ linux.new/drivers/usb/storage/transport.c Mon Jan 7 20:39:30 2002
@@ -1157,7 +1157,12 @@
le32_to_cpu(bcs.Signature), bcs.Tag,
bcs.Residue, bcs.Status);
if (bcs.Signature != cpu_to_le32(US_BULK_CS_SIGN) ||
+#ifndef CONFIG_USB_STORAGE_SCANLOGIC
+ /* This device has a bug how it communicates via USB,
+ * if the following line is not included, the the device
+ * runs */
bcs.Tag != bcb.Tag ||
+#endif
bcs.Status > US_BULK_STAT_PHASE || partial != 13) {
US_DEBUGP("Bulk logical error\n");
return USB_STOR_TRANSPORT_ERROR;
diff -urN linux/drivers/usb/storage/unusual_devs.h linux.new/drivers/usb/storage/unusual_devs.h
--- linux/drivers/usb/storage/unusual_devs.h Mon Jan 7 19:29:58 2002
+++ linux.new/drivers/usb/storage/unusual_devs.h Mon Jan 7 21:11:19 2002
@@ -37,6 +37,13 @@
* then by ProductID.
*/
+#ifdef CONFIG_USB_STORAGE_SCANLOGIC
+UNUSUAL_DEV( 0x04ce, 0x0002, 0x0000, 0x0200,
+ "ScanLogic Corp.",
+ "USB to IDE",
+ US_SC_8020, US_PR_BULK, NULL, 0),
+
+#endif
UNUSUAL_DEV( 0x03ee, 0x0000, 0x0000, 0x0245,
"Mitsumi",
"CD-R/RW Drive",
next reply other threads:[~2002-01-07 20:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-07 20:17 Rene Engelhard [this message]
2002-01-08 12:21 ` [PATCH] Getting ScanLogic USB-ATAPI Adapter to work Peter Wächtler
2002-01-08 16:58 ` Rene Engelhard
2002-01-10 18:20 ` root
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=20020107211757.A4196@rene-engelhard.de \
--to=mail@rene-engelhard.de \
--cc=greg@kroah.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