From: Anton Blanchard <anton@samba.org>
To: Andrew Vasquez <praka@san.rr.com>,
linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: [ANNOUNCE] QLogic qla2xxx driver update available (v8.00.00b3).
Date: Sat, 31 May 2003 09:52:34 +1000 [thread overview]
Message-ID: <20030530235234.GA31401@krispykreme> (raw)
In-Reply-To: <20030530160040.GA11238@praka.local.home>
Hi,
> A new version of the 8.x series driver for Linux 2.5.x kernels has
> been uploaded to SourceForge:
>
> http://sourceforge.net/projects/linux-qla2xxx/
A few suggestions:
- Use pci_set_mwi since it will set the cacheline size if necessary.
- Dont set/clear IO/MEMORY/MASTER, it should be handled in
pci_enable_device/pci_set_master.
Anton
--- qla_init.c~ 2003-05-31 09:18:31.000000000 +1000
+++ qla_init.c 2003-05-31 09:21:16.000000000 +1000
@@ -521,6 +521,7 @@
* default.
*/
pci_set_master(ha->pdev);
+ pci_set_mwi(ha->pdev);
pci_read_config_word(ha->pdev, PCI_REVISION_ID, &ha->revision);
if (!ha->iobase)
@@ -532,18 +533,7 @@
* interest to us are properly set in command register.
*/
pci_read_config_word(ha->pdev, PCI_COMMAND, &w);
- w |= (PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER |
- PCI_COMMAND_INVALIDATE | PCI_COMMAND_PARITY | PCI_COMMAND_SERR);
-
-#if MEMORY_MAPPED_IO
- DEBUG(printk("scsi(%ld): I/O SPACE and MEMORY MAPPED I/O enabled.\n",
- ha->host_no));
-#else
- DEBUG(printk("scsi(%ld): I/O SPACE enabled and MEMORY MAPPED I/O "
- "disabled.\n", ha->host_no));
-
- w &= ~PCI_COMMAND_MEMORY;
-#endif
+ w |= (PCI_COMMAND_PARITY | PCI_COMMAND_SERR);
#if defined(ISP2300)
/* PCI Specification Revision 2.3 changes */
next prev parent reply other threads:[~2003-05-30 23:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-30 16:00 [ANNOUNCE] QLogic qla2xxx driver update available (v8.00.00b3) Andrew Vasquez
2003-05-30 23:52 ` Anton Blanchard [this message]
2003-06-06 15:07 ` Andrew Vasquez
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=20030530235234.GA31401@krispykreme \
--to=anton@samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=praka@san.rr.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