public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: 2.5.5[01]]: Xircom Cardbus broken (PCI resource collisions)
@ 2002-12-12 22:47 Valdis.Kletnieks
  2002-12-13  0:43 ` Greg KH
  2002-12-13 10:10 ` Arjan van de Ven
  0 siblings, 2 replies; 15+ messages in thread
From: Valdis.Kletnieks @ 2002-12-12 22:47 UTC (permalink / raw)
  To: Alessandro Suardi; +Cc: linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 214 bytes --]

> PCI: Device 02:00.0 not available because of resource collisions
> PCI: Device 02:00.1 not available because of resource collisions

Been there. Done that. Does the attached patch help? It did for me.

/Valdis



[-- Attachment #1.2: pcmcia.patch --]
[-- Type: text/plain , Size: 492 bytes --]

--- drivers/pcmcia/cardbus.c.dist	2002-12-03 01:49:29.000000000 -0500
+++ drivers/pcmcia/cardbus.c	2002-12-03 01:50:23.000000000 -0500
@@ -283,8 +283,6 @@
 		dev->hdr_type = hdr & 0x7f;
 
 		pci_setup_device(dev);
-		if (pci_enable_device(dev))
-			continue;
 
 		strcpy(dev->dev.bus_id, dev->slot_name);
 
@@ -302,6 +300,8 @@
 			pci_writeb(dev, PCI_INTERRUPT_LINE, irq);
 		}
 
+		if (pci_enable_device(dev))
+			continue;
 		device_register(&dev->dev);
 		pci_insert_device(dev, bus);
 	}

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: 2.5.5[01]]: Xircom Cardbus broken (PCI resource collisions)
@ 2002-12-14 17:28 ALESSANDRO.SUARDI
  2002-12-16 14:54 ` Valdis.Kletnieks
  0 siblings, 1 reply; 15+ messages in thread
From: ALESSANDRO.SUARDI @ 2002-12-14 17:28 UTC (permalink / raw)
  To: zwane, valdis.kletnieks; +Cc: davej, pekon, linux-kernel

> On Fri, 13 Dec 2002 Valdis.Kletnieks@vt.edu wrote:
> > On Fri, 13 Dec 2002 17:36:56 GMT, Dave Jones said:
> >
> > > It's my understanding that pci_enable_device() *must* be called
> > > before we fiddle with dev->resource, dev->irq and the like.
> >
> > OK.. it looks like the problem only hits if it's a PCMCIA card *with an
> > onboard ROM*.
> Hmm i just saw this thread, which card is the non working one?;

It's a RBEM56G-100.

Sorry it took me a while to reply - Valdis' patch does fix the problem for
 me, too. Awaiting for a final form of the fix in the upcoming series :)


Thanks,

--alessandro

^ permalink raw reply	[flat|nested] 15+ messages in thread
* 2.5.5[01]]: Xircom Cardbus broken (PCI resource collisions)
@ 2002-12-12 14:10 Alessandro Suardi
  0 siblings, 0 replies; 15+ messages in thread
From: Alessandro Suardi @ 2002-12-12 14:10 UTC (permalink / raw)
  To: linux-kernel

As per subject - my RBEM56G-100BTX isn't usable due to the reasons
  printed in /var/log/messages. This has already been reported but
  I don't recall seeing patches or any debug stuff to be tried

[...]

NET4: Linux TCP/IP 1.0 for NET4.0
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
cs: cb_alloc(bus 2): vendor 0x115d, device 0x0003
PCI: Device 02:00.0 not available because of resource collisions
PCI: Device 02:00.1 not available because of resource collisions
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.

[...]

--alessandro

  "Seems that you can't get any more than half free"
        (Bruce Springsteen, "Straight Time")


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2002-12-16 14:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-12 22:47 2.5.5[01]]: Xircom Cardbus broken (PCI resource collisions) Valdis.Kletnieks
2002-12-13  0:43 ` Greg KH
2002-12-13  4:22   ` Valdis.Kletnieks
2002-12-13 10:10 ` Arjan van de Ven
2002-12-13 13:45   ` Valdis.Kletnieks
2002-12-13 16:17     ` Petr Konecny
     [not found]     ` <200212131633.gBDGX0617899@anxur.fi.muni.cz>
2002-12-13 17:18       ` Valdis.Kletnieks
2002-12-13 17:36         ` Dave Jones
2002-12-13 18:46           ` Valdis.Kletnieks
2002-12-14  0:18             ` Zwane Mwaikambo
2002-12-13 19:03           ` Jeff Garzik
2002-12-14  3:43             ` Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2002-12-14 17:28 ALESSANDRO.SUARDI
2002-12-16 14:54 ` Valdis.Kletnieks
2002-12-12 14:10 Alessandro Suardi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox