From: "Bao C. Ha" <baoha@sensoria.com>
To: <mlord@pobox.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Ide.c and Flash drives
Date: Wed, 2 Jan 2002 10:47:18 -0800 [thread overview]
Message-ID: <011501c193bd$e7f3a150$456c020a@SENSORIA> (raw)
Hi Mark,
In the kernel 2.4.17, ide.c makes an assumption that
CompactFlash cards and their brethern don't have a
slave unit. Unfortunately, I have two that can do
master/slave and get caught since they are side by
side: (1) CompactFlash on an IDE/ATA adapter (as
master)and (2) Simple Tech Flash disk (as slave).
I patched the following to get it to work:
--- ide.c.orig Wed Jan 2 10:35:38 2002
+++ ide.c Wed Jan 2 10:39:44 2002
@@ -324,13 +324,14 @@
struct hd_driveid *id = drive->id;
if (drive->removable && id != NULL) {
- if (id->config == 0x848a) return 1; /* CompactFlash */
+ /* if (id->config == 0x848a) return 1; */ /* CompactFlash
*/
if (!strncmp(id->model, "KODAK ATA_FLASH", 15) /* Kodak */
|| !strncmp(id->model, "Hitachi CV", 10) /* Hitachi
*/
|| !strncmp(id->model, "SunDisk SDCFB", 13) /* SunDisk
*/
|| !strncmp(id->model, "HAGIWARA HPC", 12) /* Hagiwara
*/
|| !strncmp(id->model, "LEXAR ATA_FLASH", 15) /* Lexar */
- || !strncmp(id->model, "ATA_FLASH", 9)) /* Simple
Tech */
+ /* || !strncmp(id->model, "ATA_FLASH", 9)) */ /* Simple
Tech */
+ )
{
return 1; /* yes, it is a flash memory card */
}
Could the assumption be re-evaluated? Am I going to
get into trouble doing this?
Regards.
Bao
reply other threads:[~2002-01-02 18:47 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='011501c193bd$e7f3a150$456c020a@SENSORIA' \
--to=baoha@sensoria.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mlord@pobox.com \
/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
all inboxes | Powered by JetHome®