mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrey Panin <pazke@donpac.ru>
To: jes@trained-monkey.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] add config option for qla1280 SCSI MMIO/ioport selection
Date: Mon, 1 Sep 2003 16:24:15 +0400	[thread overview]
Message-ID: <20030901122415.GB23771@pazke> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 288 bytes --]

Hi,

attached patch adds config option which allows ioport/mmio
selection for QLA1280 SCSI driver.

With this patch applied QLA1280 can be used on Visws again.

Best regards.

-- 
Andrey Panin		| Linux and UNIX system administrator
pazke@donpac.ru		| PGP key: wwwkeys.pgp.net

[-- Attachment #1.2: patch-qla1280-mmio --]
[-- Type: text/plain, Size: 1595 bytes --]

diff -urN -X /usr/share/dontdiff linux-2.6.0-test3.vanilla/drivers/scsi/Kconfig linux-2.6.0-test3/drivers/scsi/Kconfig
--- linux-2.6.0-test3.vanilla/drivers/scsi/Kconfig	Sat Aug  9 08:40:56 2003
+++ linux-2.6.0-test3/drivers/scsi/Kconfig	Mon Sep  1 20:58:04 2003
@@ -1298,6 +1298,16 @@
 	  The module will be called qla1280. If you want to compile it as
 	  a module, say M here and read <file:Documentation/modules.txt>.
 
+config SCSI_QLOGIC_1280_PIO
+	bool "Use PIO instead of MMIO" if !X86_VISWS
+	depends on SCSI_QLOGIC_1280
+	default y if X86_VISWS
+	help
+	  This instructs the driver to use programmed I/O ports (PIO) instead
+	  of PCI shared memory (MMIO).  This can possibly solve some problems
+	  in case your mainboard has memory consistency issues.  If unsure,
+	  say N.
+
 config SCSI_QLOGICPTI
 	tristate "PTI Qlogic, ISP Driver"
 	depends on SBUS && SCSI
diff -urN -X /usr/share/dontdiff linux-2.6.0-test3.vanilla/drivers/scsi/qla1280.c linux-2.6.0-test3/drivers/scsi/qla1280.c
--- linux-2.6.0-test3.vanilla/drivers/scsi/qla1280.c	Mon Sep  1 21:50:04 2003
+++ linux-2.6.0-test3/drivers/scsi/qla1280.c	Mon Sep  1 21:21:33 2003
@@ -331,11 +331,17 @@
  */
 #define  QL1280_LUN_SUPPORT	0
 #define  WATCHDOGTIMER		0
-#define  MEMORY_MAPPED_IO	1
+
 #define  DEBUG_QLA1280_INTR	0
 #define  DEBUG_PRINT_NVRAM	0
 #define  DEBUG_QLA1280		0
 
+#ifdef	CONFIG_SCSI_QLOGIC_1280_PIO
+#define	MEMORY_MAPPED_IO	0
+#else
+#define	MEMORY_MAPPED_IO	1
+#endif
+
 #define UNIQUE_FW_NAME
 #include "qla1280.h"
 #include "ql12160_fw.h"		/* ISP RISC codes */

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

                 reply	other threads:[~2003-09-01 12:24 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=20030901122415.GB23771@pazke \
    --to=pazke@donpac.ru \
    --cc=jes@trained-monkey.org \
    --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®