From: James Bottomley <James.Bottomley@steeleye.com>
To: Zwane Mwaikambo <zwane@linuxpower.ca>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>,
William Lee Irwin III <wli@holomorphy.com>
Subject: Re: [PATCH] fix aic7xxx probing
Date: 25 Jun 2004 09:52:52 -0500 [thread overview]
Message-ID: <1088175172.2193.14.camel@mulgrave> (raw)
In-Reply-To: <Pine.LNX.4.58.0406251034390.2219@montezuma.fsmlabs.com>
On Fri, 2004-06-25 at 09:35, Zwane Mwaikambo wrote:
> Doesn't detect the HBA with that patch either.
Hmm, probably doesn't do direct host addition in certain cases. How
about third time lucky?
James
===== drivers/scsi/aic7xxx/aic7xxx_osm.c 1.54 vs edited =====
--- 1.54/drivers/scsi/aic7xxx/aic7xxx_osm.c 2004-04-26 02:09:37 -04:00
+++ edited/drivers/scsi/aic7xxx/aic7xxx_osm.c 2004-06-25 10:50:05 -04:00
@@ -844,7 +844,6 @@
{
struct ahc_softc *ahc;
int found = 0;
- int eisa_err, pci_err;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
/*
@@ -892,13 +891,10 @@
*/
ahc_list_lockinit();
- pci_err = ahc_linux_pci_init();
- eisa_err = ahc_linux_eisa_init();
-
- if(pci_err && eisa_err)
- goto out;
-
-
+ found = ahc_linux_pci_init();
+ if (!ahc_linux_eisa_init())
+ found++;
+
/*
* Register with the SCSI layer all
* controllers we've found.
@@ -908,7 +904,6 @@
if (ahc_linux_register_host(ahc, template) == 0)
found++;
}
-out:
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
spin_lock_irq(&io_request_lock);
===== drivers/scsi/aic7xxx/aic7xxx_osm.h 1.54 vs edited =====
--- 1.54/drivers/scsi/aic7xxx/aic7xxx_osm.h 2004-05-12 11:46:27 -04:00
+++ edited/drivers/scsi/aic7xxx/aic7xxx_osm.h 2004-06-24 18:41:49 -04:00
@@ -940,7 +940,7 @@
}
#else
static inline int ahc_linux_pci_init(void) {
- return -ENODEV;
+ return 0;
}
static inline void ahc_linux_pci_exit(void) {
}
===== drivers/scsi/aic7xxx/aic7xxx_osm_pci.c 1.12 vs edited =====
--- 1.12/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c 2003-12-19 16:31:43 -05:00
+++ edited/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c 2004-06-25 09:24:54 -04:00
@@ -198,7 +198,8 @@
ahc_linux_pci_init(void)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
- return (pci_module_init(&aic7xxx_pci_driver));
+ /* Translate error or zero return into zero or one */
+ return pci_module_init(&aic7xxx_pci_driver) ? 0 : 1;
#else
struct pci_dev *pdev;
u_int class;
next prev parent reply other threads:[~2004-06-25 14:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-24 22:49 [PATCH] fix aic7xxx probing James Bottomley
2004-06-25 4:56 ` Zwane Mwaikambo
2004-06-25 13:29 ` James Bottomley
2004-06-25 14:35 ` Zwane Mwaikambo
2004-06-25 14:52 ` James Bottomley [this message]
2004-06-25 15:09 ` Zwane Mwaikambo
2004-06-25 15:16 ` James Bottomley
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=1088175172.2193.14.camel@mulgrave \
--to=james.bottomley@steeleye.com \
--cc=linux-scsi@vger.kernel.org \
--cc=wli@holomorphy.com \
--cc=zwane@linuxpower.ca \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.