public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Problem with pci_fixups in drivers/pci/probe.c
@ 2006-01-05 23:46 alan
  2006-01-05 23:56 ` Dominik Brodowski
  2006-01-06 13:48 ` Alan Cox
  0 siblings, 2 replies; 8+ messages in thread
From: alan @ 2006-01-05 23:46 UTC (permalink / raw)
  To: linux-kernel

I have an HP zv5200z laptop running a x86_64 kernel.

In order to get cardbus devices to work, I had to patch the kernel to get 
the cardbus to actually see those devices.  (We will call this patch 
"cardbus.patch".)

I went to patch the current FC5T1 kernel and found that the patch no 
longer applied.  On further investigation I found that the patch had been 
added to the kernel, but some helpful soul had added a subroutine that 
made it absolutely worthless to anyone on x86 architecture.

in drivers/pci/probe.c at line 408 there is the following code:

        /* Attempts to fix that up are really dangerous unless
           we're going to re-assign all bus numbers. */
        if (!pcibios_assign_all_busses())
                return;

The problem with this is that for x86 and x86_64 this function is defined 
as 0.

include/asm-x86_64/pci.h:18:#define pcibios_assign_all_busses() 0
include/asm-i386/pci.h:14:extern unsigned int pcibios_assign_all_busses(void);
include/asm-i386/pci.h:16:#define pcibios_assign_all_busses()   0
include/asm-ia64/pci.h:18:#define pcibios_assign_all_busses()     0

This "fix" makes the patch absolutely useless to me.

Is there a way to get this to only run the fixup where needed or to make 
this patch less problematic or just remove the test entirely?

My cardbus devices will thank you.

-- 
"George W. Bush -- Bringing back the Sixties one Nixon at a time."


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

end of thread, other threads:[~2006-04-14 14:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-05 23:46 Problem with pci_fixups in drivers/pci/probe.c alan
2006-01-05 23:56 ` Dominik Brodowski
2006-01-06 13:48 ` Alan Cox
2006-02-16 22:06   ` [PATCH] PCI/Cardbus cards hidden, needs pci=assign-busses to fix Bernhard Kaindl
2006-02-18  9:41     ` Andrew Morton
2006-02-24  1:47       ` Greg KH
2006-02-24 13:16         ` Dominik Brodowski
2006-04-14 14:01       ` [PATCH] Cardbus cards hidden, fixup parent subordinate# carefully Bernhard Kaindl

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