From: Mickael Marchand <marchand@kde.org>
To: linux-kernel@vger.kernel.org
Cc: Jeff Garzik <jgarzik@pobox.com>
Subject: [PATCH] adaptec 1210sa
Date: Mon, 22 Dec 2003 03:05:28 +0100 [thread overview]
Message-ID: <200312220305.29955.marchand@kde.org> (raw)
[-- Attachment #1: Type: Text/Plain, Size: 703 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
reading linux-scsi I found a suggestion by Justin to make adaptec's 1210 sa
working. I made the corresponding patch for libata, and it actually works :)
it needs some redesign to only apply to aar1210 (as standard sil3112 does not
need it) and I guess some testing before inclusion.
the idea suggested by Justin was to clear bits 6 and 7 at 0x8a of pci
configuration space. (which I hope did fine :)
Thanks Justin :)
Cheers,
Mik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/5lFoyOYzc4nQ8j0RAo9LAJ90CMeKb8wcE9ZgGULpUmep2wScdQCfYQ7B
fjiz1d2FE1+HTxFXSG2Pc6s=
=aott
-----END PGP SIGNATURE-----
[-- Attachment #2: aar1210sa.patch --]
[-- Type: text/x-diff, Size: 583 bytes --]
--- /usr/src/linux-2.6.0/drivers/scsi/sata_sil.c 2003-12-21 13:30:58.000000000 +0100
+++ linux-2.6.0/drivers/scsi/sata_sil.c 2003-12-22 02:46:32.000000000 +0100
@@ -276,6 +276,16 @@
goto err_out_regions;
}
+ //let's have fun
+ u8 v;
+ pci_read_config_byte(pdev, 0x8a, &v);
+ int mask = 0x3f; //clear 6 and 7 bits
+ if (v & ~mask) {
+ printk("Reenabling interrupts because Adaptec's BIOS disables them\n" );
+ v &= mask;
+ pci_write_config_byte(pdev, 0x8a, v);
+ }
+
memset(probe_ent, 0, sizeof(*probe_ent));
INIT_LIST_HEAD(&probe_ent->node);
probe_ent->pdev = pdev;
next reply other threads:[~2003-12-22 2:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-22 2:05 Mickael Marchand [this message]
2003-12-30 23:34 ` [PATCH] adaptec 1210sa Jeff Garzik
2003-12-30 23:57 ` Justin T. Gibbs
2003-12-30 23:55 ` Jeff Garzik
2003-12-31 0:10 ` Hugo Mills
2003-12-30 23:51 ` Jeff Garzik
2003-12-31 0:20 ` Jeff Garzik
2003-12-31 11:25 ` Mickael Marchand
2004-01-03 20:46 ` Mickael Marchand
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=200312220305.29955.marchand@kde.org \
--to=marchand@kde.org \
--cc=jgarzik@pobox.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