From: Andrey Ulanov <Andrey.Ulanov@acronis.com>
To: Russell King <rmk+lkml@arm.linux.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PCMCIA bug fix
Date: Wed, 30 Jun 2004 09:39:56 +0400 [thread overview]
Message-ID: <20040630053956.GA1942@dhcp6-7.acronis.ru> (raw)
In-Reply-To: <20040629164832.C24951@flint.arm.linux.org.uk>
Hi, Russell!
On Tue, Jun 29, 2004 at 04:48:32PM +0100, Russell King wrote:
> On Tue, Jun 29, 2004 at 07:38:09PM +0400, Andrey Ulanov wrote:
>> I tested with one of ieee1394+usb2.0 PCMCIA adapters. Worked fine.
>> Without this patch only first device (ieee1394 controller) was
>> detected.
> Can you provide the lspci output, and a better description of the
> problem you're trying to solve please?
OK. Sorry.
This PCMCIA has four devices:
Bus 6, device 0, function 0:
Class 0c00: PCI device 104c:8024 (rev 0).
IRQ 10.
Master Capable. Latency=16.
Non-prefetchable 32 bit memory at 0x11000000 [0x110007ff].
Non-prefetchable 32 bit memory at 0x11004000 [0x11007fff].
Bus 6, device 0, function 4:
Class 0c03: PCI device 104c:0035 (rev 67).
IRQ 10.
Master Capable. Latency=64.
Non-prefetchable 32 bit memory at 0x11001000 [0x11001fff].
Bus 6, device 0, function 5:
Class 0c03: PCI device 104c:0035 (rev 67).
IRQ 10.
Master Capable. Latency=64.
Non-prefetchable 32 bit memory at 0x11002000 [0x11002fff].
Bus 6, device 0, function 6:
Class 0c03: PCI device 104c:00e0 (rev 4).
IRQ 10.
Master Capable. Latency=68.
Non-prefetchable 32 bit memory at 0x11000800 [0x110008ff].
As you can see functions numbers do not form continual sequence
beginning with zero. That's why current implementation do not work for
me. Here is the part of old code:
fn = 1;
if (hdr & 0x80) {
do {
tmp.devfn = fn;
if (pci_readw(&tmp, PCI_VENDOR_ID, &v) || !v || v == 0xffff)
break;
fn++;
} while (fn < 8);
}
s->functions = fn;
I hope now it is obvious that it detects only first one in my case.
--
with best regards, Andrey Ulanov.
prev parent reply other threads:[~2004-06-30 5:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-29 15:38 [PATCH] PCMCIA bug fix Andrey Ulanov
2004-06-29 15:48 ` Russell King
2004-06-30 5:39 ` Andrey Ulanov [this message]
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=20040630053956.GA1942@dhcp6-7.acronis.ru \
--to=andrey.ulanov@acronis.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+lkml@arm.linux.org.uk \
/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.