Skip to contentSkip to conversation

sunhme.c patch for new PCI interface (UNTESTED)

DISCUSSION Adam J. Richter 3 participants 3 messages Nov 17, 2000 – Nov 19, 2000

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines · Jeff Garzik

Are you aware of any hotplug sunhme hardware? If no, don't change it to __devinit...

Can I have a hot plug PCI bridge card that connects to
a regular PCI backplane (perhaps as some kind of CardBus docking station card)? If so, all PCI drivers should use __dev{init,exit}{,data}.

The other excellent points that you raise apply equally to
the driver before and after my patch (although my patch made it more clear that the struct netdevice parameters previously being passed around were always null). It is important to realize this becase, as of yesterday, Dave had said that he was not going to apply the new style PCI changes at this point, but had integrated the MODULE_DEVICE_TABLE changes. So, Dave: you should look at the points that Jeff raised, even if you are not integrating the rest of my new style PCI patch.

Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 104
[email protected]     \ /                  San Jose, California 95129-1034
+1 408 261-6630         | g g d r a s i l   United States of America

fax +1 408 261-6631 "Free Software For The Rest Of Us."
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw
Quoted 7 lines · Adam J. Richter
Quoted 2 lines · Jeff Garzik

Are you aware of any hotplug sunhme hardware? If no, don't change it to __devinit...

Can I have a hot plug PCI bridge card that connects to
a regular PCI backplane (perhaps as some kind of CardBus docking station card)? If so, all PCI drivers should use __dev{init,exit}{,data}.

I am willing to consider adding __devxxx only when other __devxxx entries already exist.

These conversions to _devxxx are too late in the freeze, and only have value for isolated cases --which you admit you don't even know exist--. Linus Rule 1: Don't overdesign. Even if such cases do exist, and this is a need, it should be addressed some other way.

Your suggestion bloats drivers needlessly for the majority of cases and I will not be applying any such patches...

Jeff

Signature · 7 lines
Jeff Garzik             |
Building 1024           | The chief enemy of creativity is "good" sense
MandrakeSoft            |          -- Picasso
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#2 lore raw
In reply to Adam J. Richter
Quoted 3 lines · Adam J. Richter

Can I have a hot plug PCI bridge card that connects to
a regular PCI backplane (perhaps as some kind of CardBus docking station card)? If so, all PCI drivers should use __dev{init,exit}{,data}.

PCI is certainly hot-plug hardware, but not on common desktop PCs. Since PCI is so popular and so often not hot-plug, users should not be forced to have hot-plug PCI support when they only need hot-plug SCSI, etc.

Obvious hack: __pciinit, __pciexit, __pciinitdata...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/