32bit Cardbus not working with Ricoh 475 PCI

Alistair John Strachan s0348365 at sms.ed.ac.uk
Sun May 2 20:07:32 BST 2004


On Sunday 02 May 2004 13:27, Alistair John Strachan wrote:
> Hi,
>
> OK, originally I posted this to the linux 2.4 forums by mistake, but here's
> a copy of the email sent.
>
> My problem is that although 16bit PCMCIA devices work with my Ricoh RL5c475
> (rev 80) PCMCIA->PCI adaptor, any 32bit cardbus device does not get
> enumerated as a PCI device by Linux 2.6.
>
>  For example, I have a 16bit PCMCIA memory card reader that once inserted
> (via ide-cs) works fine and I can read any data I want from it.
>
>  However, if I connect a 32bit 3Com wireless PCMCIA card (supported by the
> prism54.org project; works well in a laptop) I get the following messages
> to kernel log.
>
>  Linux Kernel Card Services
>  options: [pci] [cardbus] [pm]
>  Yenta: CardBus bridge found at 0000:01:07.0 [0000:0000]
>  yenta 0000:01:07.0: Preassigned resource 2 busy, reconfiguring...
>  Yenta: ISA IRQ mask 0x0000, PCI irq 19
>  Socket status: 30000820
>
>  PCI: Failed to allocate mem resource #0:2000 at e3022000 for 0000:02:00.0
>  Loaded prism54 driver, version 1.1
>  PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
>  prism54: PCI device memory region not configured; fix your BIOS or CardBus
> bridge/drivers
>  prism54: probe of 0000:02:00.0 failed with error -5
>
>  Any ideas? I'd really like to get this working, and as 16bit devices work
> I'm guessing I'm not too far off a fix.
>
[snip]

I checked the kernel bugzilla and found the following:
http://bugzilla.kernel.org/show_bug.cgi?id=1840

It seems to approximately describe my problem. I tried the attached patch and 
got (what seems to be) a little further. However, now dmesg reports the 
following:

PCI: cardbus bridge: 0000:01:07.0
PCI: Failed to allocate resource 7(2000000) for 0000:01:07.0
PCI: Failed to allocate resource 8(2000000) for 0000:01:07.0
PCI: Failed to allocate resource 10(1000) for 0000:01:07.0

Before getting to init. prism.ko now loads, however;

Loaded prism54 driver, version 1.1
eth1: prism54 driver detected card model: 3COM 3CRWE154G72

The card doesn't work, however, as hotplug won't upload the firmware and 
ifconfig eth1 up doesn't do anything. The card still appears dead to the 
world.

Since the cardbus bridge shares an IRQ with my video card, when I start X I 
get:

Assuming someone else called the IRQ
Assuming someone else called the IRQ

Thousands of times. The message doesn't stop until I unplug the card.

-- 
Cheers,
Alistair.

personal:   alistair()devzero!co!uk
university: s0348365()sms!ed!ac!uk
student:    CS/AI Undergraduate
contact:    7/10 Darroch Court,
            University of Edinburgh.



More information about the linux-pcmcia mailing list