From: Jeff Garzik <jeff@garzik.org>
To: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: linux-scsi@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
Boaz Harrosh <bharrosh@panasas.com>,
Jiri Slaby <jirislaby@gmail.com>
Subject: Re: [PATCH] gdth: convert to PCI hotplug API
Date: Fri, 15 Feb 2008 10:44:52 -0500 [thread overview]
Message-ID: <47B5B374.2080403@garzik.org> (raw)
In-Reply-To: <1203024822.3158.29.camel@localhost.localdomain>
James Bottomley wrote:
>> diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c
>> index c825239..1b53e92 100644
>> --- a/drivers/scsi/gdth.c
>> +++ b/drivers/scsi/gdth.c
>> @@ -595,85 +595,107 @@ static int __init gdth_search_isa(ulong32 bios_adr)
>> #endif /* CONFIG_ISA */
>>
>> #ifdef CONFIG_PCI
>> -static void gdth_search_dev(gdth_pci_str *pcistr, ushort *cnt,
>> - ushort vendor, ushort dev);
>> +static gdth_pci_str gdth_pcistr[MAXHA];
>> +static int gdth_pci_cnt;
>> +static bool gdth_pci_registered;
>
> Could we get rid of these static arrays and MAXHA entirely? It should
> be possible just to bung the parameters in pci_str into gdth_ha_str and
> dump the arrays.
I kept those array for one reason: you need it to preserve the existing
in-driver PCI device sort.
If we can eliminate the sorting, then the array can easily disappear.
I /think/ the sort can be eliminated now because we have pci=reverse,
but I have not verified that guess.
Jeff
next prev parent reply other threads:[~2008-02-15 15:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-12 23:49 [PATCH] gdth: convert to PCI hotplug API Jeff Garzik
2008-02-13 9:21 ` Jiri Slaby
2008-02-14 21:59 ` Jeff Garzik
2008-02-13 11:07 ` Boaz Harrosh
2008-02-14 21:59 ` Jeff Garzik
2008-02-15 13:50 ` Jan Engelhardt
2008-02-14 21:33 ` James Bottomley
2008-02-15 15:44 ` Jeff Garzik [this message]
2008-02-15 15:54 ` Matthew Wilcox
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=47B5B374.2080403@garzik.org \
--to=jeff@garzik.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=bharrosh@panasas.com \
--cc=jirislaby@gmail.com \
--cc=linux-kernel@vger.kernel.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 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.