From: Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [patch] qlogic: don't use qinfo as name
Date: Thu, 19 Feb 2004 14:26:19 -0300 [thread overview]
Message-ID: <20040219172619.GA667@cathedrallabs.org> (raw)
In-Reply-To: <20040219150747.A23822@infradead.org>
[-- Attachment #1.1: Type: text/plain, Size: 299 bytes --]
hi Christoph,
> do you have those qlogicfas patches from before the freeze still around?
> I just noticed they still aren't merged and without them the driver is
> pretty much useless..
yes, I'm sending it attached. I didn't changed them since, so I'm not sure if
they will apply cleanly.
--
aris
[-- Attachment #1.2: qlogic-dont_use_qinfo.patch --]
[-- Type: text/plain, Size: 348 bytes --]
--- linux/drivers/scsi/qlogicfas.c.orig 2003-10-17 16:47:54.000000000 -0200
+++ linux/drivers/scsi/qlogicfas.c 2003-10-17 16:48:30.000000000 -0200
@@ -665,7 +665,6 @@
sprintf(qinfo,
"Qlogicfas Driver version 0.46, chip %02X at %03X, IRQ %d, TPdma:%d",
qltyp, qbase, qlirq, QL_TURBO_PDMA);
- host->name = qinfo;
return hreg;
[-- Attachment #1.3: qlogic-force_can_queue.patch --]
[-- Type: text/plain, Size: 410 bytes --]
--- linux/drivers/scsi/qlogicfas.c.orig 2003-10-20 21:12:09.000000000 -0200
+++ linux/drivers/scsi/qlogicfas.c 2003-10-20 21:12:17.000000000 -0200
@@ -793,7 +793,7 @@
.eh_device_reset_handler= qlogicfas_device_reset,
.eh_host_reset_handler = qlogicfas_host_reset,
.bios_param = qlogicfas_biosparam,
- .can_queue = 0,
+ .can_queue = 1,
.this_id = -1,
.sg_tablesize = SG_ALL,
.cmd_per_lun = 1,
[-- Attachment #1.4: qlogic-kill_qluseirq.patch --]
[-- Type: text/plain, Size: 1335 bytes --]
--- linux-2.5/drivers/scsi/qlogicfas.c 2003-10-15 17:16:15.000000000 -0200
+++ build-2.5/drivers/scsi/qlogicfas.c 2003-10-17 16:44:41.000000000 -0200
@@ -48,11 +48,6 @@
#define QL_INT_ACTIVE_HIGH 2
-/* Set the following to 1 to enable the use of interrupts. Note that 0 tends
- to be more stable, but slower (or ties up the system more) */
-
-#define QL_USE_IRQ 1
-
/* Set the following to max out the speed of the PIO PseudoDMA transfers,
again, 0 tends to be slower, but more stable. */
@@ -500,8 +495,6 @@
return (result << 16) | (message << 8) | (status & STATUS_MASK);
}
-#if QL_USE_IRQ
-
/*
* Interrupt handler
*/
@@ -541,10 +534,6 @@
return IRQ_HANDLED;
}
-#endif
-
-#if QL_USE_IRQ
-
/*
* Queued command
*/
@@ -566,12 +555,6 @@
ql_icmd(cmd);
return 0;
}
-#else
-int qlogicfas_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *))
-{
- return 1;
-}
-#endif
#ifdef PCMCIA
@@ -641,7 +624,6 @@
REG0;
#endif
-#if QL_USE_IRQ
/*
* IRQ probe - toggle pin and check request pending
*/
@@ -670,7 +652,7 @@
if (qlirq >= 0 && !request_irq(qlirq, do_ql_ihandl, 0, "qlogicfas", NULL))
host->can_queue = 1;
-#endif
+
hreg = scsi_register(host, 0); /* no host data */
if (!hreg)
goto err_release_mem;
[-- Attachment #1.5: qlogic-pcmcia_dont_release_region.patch --]
[-- Type: text/plain, Size: 477 bytes --]
--- linux/drivers/scsi/pcmcia/qlogic_stub.c.orig 2003-10-22 22:31:05.000000000 -0200
+++ linux/drivers/scsi/pcmcia/qlogic_stub.c 2003-10-22 22:31:36.000000000 -0200
@@ -240,9 +240,6 @@
outb(0x04, link->io.BasePort1 + 0xd);
}
- /* A bad hack... */
- release_region(link->io.BasePort1, link->io.NumPorts1);
-
/* The KXL-810AN has a bigger IO port window */
if (link->io.NumPorts1 == 32)
qlogicfas_preset(link->io.BasePort1 + 16, link->irq.AssignedIRQ);
[-- Attachment #1.6: qlogic-pcmcia_uses_scsi_host_alloc.patch --]
[-- Type: text/plain, Size: 829 bytes --]
--- linux/drivers/scsi/qlogicfas.c.orig 2003-10-22 22:25:19.000000000 -0200
+++ linux/drivers/scsi/qlogicfas.c 2003-10-22 21:26:59.000000000 -0200
@@ -650,7 +650,11 @@
} else
printk(KERN_INFO "Ql: Using preset IRQ %d\n", qlirq);
+#ifdef PCMCIA
+ hreg = scsi_host_alloc(host, 0);
+#else
hreg = scsi_register(host, 0); /* no host data */
+#endif
if (!hreg)
goto err_release_mem;
hreg->io_port = qbase;
--- linux/drivers/scsi/pcmcia/qlogic_stub.c.orig 2003-10-20 21:04:02.000000000 -0200
+++ linux/drivers/scsi/pcmcia/qlogic_stub.c 2003-10-22 22:24:34.000000000 -0200
@@ -288,7 +288,7 @@
CardServices(ReleaseIO, link->handle, &link->io);
CardServices(ReleaseIRQ, link->handle, &link->irq);
- scsi_unregister(info->host);
+ scsi_host_put(info->host);
link->state &= ~DEV_CONFIG;
}
[-- Attachment #1.7: qlogic-request_irq_with_priv_data.patch --]
[-- Type: text/plain, Size: 929 bytes --]
--- linux/drivers/scsi/qlogicfas.c.orig 2003-10-17 16:49:30.000000000 -0200
+++ linux/drivers/scsi/qlogicfas.c 2003-10-17 16:54:06.000000000 -0200
@@ -650,9 +650,6 @@
} else
printk(KERN_INFO "Ql: Using preset IRQ %d\n", qlirq);
- if (qlirq >= 0 && !request_irq(qlirq, do_ql_ihandl, 0, "qlogicfas", NULL))
- host->can_queue = 1;
-
hreg = scsi_register(host, 0); /* no host data */
if (!hreg)
goto err_release_mem;
@@ -666,12 +663,20 @@
"Qlogicfas Driver version 0.46, chip %02X at %03X, IRQ %d, TPdma:%d",
qltyp, qbase, qlirq, QL_TURBO_PDMA);
+ if (request_irq(qlirq, do_ql_ihandl, 0, "qlogicfas", hreg))
+ goto free_scsi_host;
+
return hreg;
+free_scsi_host:
+#ifdef PCMCIA
+ scsi_host_put(hreg);
+#else
+ scsi_unregister(hreg);
+#endif
+
err_release_mem:
release_region(qbase, 0x10);
- if (host->can_queue)
- free_irq(qlirq, do_ql_ihandl);
return NULL;;
}
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-02-19 17:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20031020232200.GA473@cathedrallabs.org>
2004-02-19 15:07 ` [patch] qlogic: don't use qinfo as name Christoph Hellwig
2004-02-19 17:26 ` Aristeu Sergio Rozanski Filho [this message]
2004-02-21 21:36 ` James Bottomley
2004-03-02 1:27 ` Aristeu Sergio Rozanski Filho
2004-03-09 13:32 ` [patch][0/15] qlogicfas/qlogic_cs Aristeu Sergio Rozanski Filho
2004-03-09 15:20 ` Christoph Hellwig
2003-10-24 1:10 [patch] qlogic: don't use qinfo as name Aristeu Sergio Rozanski Filho
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=20040219172619.GA667@cathedrallabs.org \
--to=aris@cathedrallabs.org \
--cc=hch@infradead.org \
--cc=linux-scsi@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