From: Russell McConnachie <russell.mcconnachie@guest-tek.com>
To: linux-kernel@vger.kernel.org
Subject: Compact Flash Serial ATA patch
Date: Tue, 23 May 2006 04:16:37 -0600 [thread overview]
Message-ID: <1148379397.1182.4.camel@gt-alphapbx2> (raw)
[-- Attachment #1: Type: text/plain, Size: 381 bytes --]
I was having some trouble with a serial ATA compact flash adapter with
libata. I wrote a small patch for the kernel to work around the sanity
check, dma blacklisting and device ID detections in ata_dev_classify().
I am not exactly a programmer, I'm sure this can be written much better
but for anyone who may run into a similar problem with compact flash.
Russell McConnachie.
[-- Attachment #2: linux-2.6.16.16-compactflash-sata.patch --]
[-- Type: text/x-patch, Size: 1256 bytes --]
822,825c822,845
< ((tf->lbam == 0x3c) && (tf->lbah == 0xc3))) {
< DPRINTK("found ATA device by sig\n");
< return ATA_DEV_ATA;
< }
---
> // Allows the compact flash to work, For some reason our
> // Addonics SATA flash reader/writer.
> // The following types of flash have been used:
> // - Infineon 2.0GB
> // - Sandisk Ultra II 2.0GB
> // - Lexar Platinum
> //
>
> // Sandisk Compact Flash
> ((tf->lbam == 0x30) && (tf->lbah == 0)) ||
>
> // Infineon Compact Flash
> ((tf->lbam == 0x50) && (tf->lbah == 0)) ||
>
> // Infineon Compact Flash
> ((tf->lbam == 0x55) && (tf->lbah == 0)) ||
>
> // Infineon Compact Flash
> (((tf->lbam > 0x2f) && (tf->lbam < 0x7f)) && (tf->lbah == 0)) ||
>
> ((tf->lbam == 0x3c) && (tf->lbah == 0xc3))) {
> DPRINTK("found ATA device by sig\n");
> return ATA_DEV_ATA;
> }
875a896,897
> else if (device == 0)
> /* do nothing */ ;
1335,1336c1357,1358
< if (!ata_id_is_ata(dev->id)) /* sanity check */
< goto err_out_nosup;
---
> // if (!ata_id_is_ata(dev->id)) /* sanity check */
> // goto err_out_nosup;
2235a2258,2260
> "MODEL",
> "SMI MODEL",
> "SanDisk SDCFH-2048",
next reply other threads:[~2006-05-23 17:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-23 10:16 Russell McConnachie [this message]
2006-05-23 17:23 ` Matthew Dharm
2006-05-23 10:41 ` Russell McConnachie
2006-05-23 18:54 ` Alan Cox
2006-05-23 18:56 ` Alan Cox
2006-05-23 20:47 ` markus reichelt
2006-05-24 7:14 ` Helge Hafting
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=1148379397.1182.4.camel@gt-alphapbx2 \
--to=russell.mcconnachie@guest-tek.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
all inboxes | Powered by JetHome®