From: Jeff Garzik <jgarzik@pobox.com>
To: "Miller, Mike (OS Dev)" <Mike.Miller@hp.com>
Cc: linux-kernel@vger.kernel.org, "Cameron, Steve" <Steve.Cameron@hp.com>
Subject: Re: cciss patches for 2.4.21pre7
Date: Wed, 16 Apr 2003 12:04:49 -0400 [thread overview]
Message-ID: <20030416160449.GC13488@gtf.org> (raw)
In-Reply-To: <D4CFB69C345C394284E4B78B876C1CF102399B32@cceexc23.americas.cpqcorp.net>
On Wed, Apr 16, 2003 at 10:53:48AM -0500, Miller, Mike (OS Dev) wrote:
> - for (i=0; i<6; i++) {
> + for (i=0; i<DEVICE_COUNT_RESOURCE; i++) {
> /* is this an IO range */
> if (pdev->resource[i].flags & 0x01) {
> c->io_mem_addr = pdev->resource[i].start;
> @@ -2492,6 +2521,7 @@
> printk("IO value found base_addr[%d] %lx %lx\n", i,
> c->io_mem_addr, c->io_mem_length);
> #endif /* CCISS_DEBUG */
> + printk(KERN_DEBUG "IO range: %lx\n", c->io_mem_addr);
> /* register the IO range */
> if (!request_region( c->io_mem_addr,
> c->io_mem_length, "cciss")) {
> @@ -2511,7 +2541,7 @@
> printk("device_id = %x\n", device_id);
> printk("command = %x\n", command);
> for(i=0; i<6; i++)
> - printk("addr[%d] = %x\n", i, addr[i]);
> + printk("addr[%d] = %x\n", i, pdev->resource[i].start);
FWIW, if you care about source compatibility, or just like the
convenient wrappers, you can use
pci_resource_start(pdev, BAR#)
in place of
pdev->resource[i].start.
Ditto for .len and pci_resource_len() wrapper.
If you don't care, just ignore this message, the code otherwise looks ok.
Jeff
next prev parent reply other threads:[~2003-04-16 15:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-16 15:53 cciss patches for 2.4.21pre7 Miller, Mike (OS Dev)
2003-04-16 16:04 ` Jeff Garzik [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-04-16 15:53 Miller, Mike (OS Dev)
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=20030416160449.GC13488@gtf.org \
--to=jgarzik@pobox.com \
--cc=Mike.Miller@hp.com \
--cc=Steve.Cameron@hp.com \
--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