#23 2.4.13: Cardbus devs in /proc/bus/pci

closed-fixed
nobody
bug fixes (18)
5
2002-06-02
2001-10-26
Chip Salzenberg
No

I don't know when this problem started showing up,
but when I compile pcmcia-cs against 2.4.13, cardbus
devices don't show up in /proc/bus/pci. The least
effect of this is that lspci fails.

The below patch arranges to call
pci_proc_{attach,detach}_device at appropriate times;
the code was mostly there already, but was disabled
for modern kernels.

Unfortunately, the stock Linux kernel fails to export
the required functions, so the small obvious patch to
drivers/pci/pci.c is also required before the
attached patch will work. (Maybe that's why the code
was disabled? Still, this needs to be fixed.)

Discussion

  • Patch to register cardbus devs in /proc/bus/pci

     
    Attachments
  • David Hinds
    David Hinds
    2001-10-29

    Logged In: YES
    user_id=7760

    As part of the 2.4 migration of PCMCIA drivers into the
    kernel, Linus un-exported the PCI functions that the
    standalone CardBus drivers used to add and remove devices
    from /proc/bus/pci. I think he might not want to add them
    back. It is inconvenient but people would argue that you
    should actually be using the kernel PCMCIA drivers.

    -- Dave

     
  • Logged In: YES
    user_id=151

    OK, I'll have to take this up with Linus.

     
  • Gorazd
    Gorazd
    2001-11-15

    Logged In: YES
    user_id=86336

    how i patch ? what is command for this ?

    patch ... ??

    please
    tnx
    dbmg

     
  • Logged In: NO

    What changes need to made to drivers/pci/pci.c in order to get this patch to
    work?

     
  • Logged In: YES
    user_id=151

    Current kernels (2.4.17pre*) have re-exported the symbols
    that we need.

     
  • Logged In: YES
    user_id=151

    Linus put them back.

     
    • status: open --> open-fixed
     
    • status: open-fixed --> closed-fixed