Skip to contentSkip to conversation

PCMCIA hotplugging, in-kernel-matching and depmod support

PATCH Jean Tourrilhes 3 participants 4 messages Apr 8, 2003 – Apr 9, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 12 lines · Jeff Garzik
Quoted 11 lines · Dominik Brodowski

... and the deprecation of "cardmgr" and "cardctl"

Dear kernel developers and testers,

Updated and re-diffed revisions of my pcmcia-related patches are available at http://www.brodo.de/pcmcia/

These patches update the PCMCIA subsystem (16-bit) to use the driver model matching and hotplug utilities. The "cardmgr" will not be needed any longer - in fact, it won't even work any longer.

Quoted 7 lines
Quoted 1 line

They are based on kernel 2.5.67

Will we see pcmcia id lists making their way into low-level drivers?

That was a big stumbling block when I last looked at the "big picture" for pcmcia -- in-kernel drivers still required probe assistance from userspace via the /etc/pcmcia/* bindings.

No ! Please don't do that, it will only bring madness.

Example :
Lucent/Agere Orinoco wireless card :
manfid 0x0156,0x0002
possible drivers : wlan_cs ; orinoco_cs
Intersil PrismII and clones (Linksys, ...) :
manfid 0x0156,0x0002
possible drivers : prism2_cs ; hostap_cs

Please explain me in details how your stuff will cope with the
above, and how to make sure the right driver is loaded in every case and how user can control this.
If your scheme can't cope with the simple real life example
above (I've got those cards on my desk, and those drivers on my disk), then it's no good to me.

Good luck...

Jean

#1 lore raw
Quoted 7 lines · Jean Tourrilhes
Quoted 3 lines · Jeff Garzik

That was a big stumbling block when I last looked at the "big picture" for pcmcia -- in-kernel drivers still required probe assistance from userspace via the /etc/pcmcia/* bindings.

No ! Please don't do that, it will only bring madness.

Nope. It's already a solved problem :) More below...

Quoted 8 lines

Example :
Lucent/Agere Orinoco wireless card :
manfid 0x0156,0x0002
possible drivers : wlan_cs ; orinoco_cs
Intersil PrismII and clones (Linksys, ...) :
manfid 0x0156,0x0002
possible drivers : prism2_cs ; hostap_cs

Quoted 6 lines

Please explain me in details how your stuff will cope with the
above, and how to make sure the right driver is loaded in every case and how user can control this.
If your scheme can't cope with the simple real life example
above (I've got those cards on my desk, and those drivers on my disk), then it's no good to me.

These cases already exist for PCI, so pcmcia behavior should follow what the kernel does when the PCI core sees such.

Jeff

#2 lore raw
Quoted 16 lines · Jeff Garzik
Quoted 9 lines

Example :
Lucent/Agere Orinoco wireless card :
manfid 0x0156,0x0002
possible drivers : wlan_cs ; orinoco_cs
Intersil PrismII and clones (Linksys, ...) :
manfid 0x0156,0x0002
possible drivers : prism2_cs ; hostap_cs

Quoted 6 lines

Please explain me in details how your stuff will cope with the
above, and how to make sure the right driver is loaded in every case and how user can control this.
If your scheme can't cope with the simple real life example
above (I've got those cards on my desk, and those drivers on my disk), then it's no good to me.

Quoted 4 lines

These cases already exist for PCI, so pcmcia behavior should follow what the kernel does when the PCI core sees such.

Jeff

I've never heard of a case of PCI-ID collision between two
different manufacturer, so I need to update myself ;-)
I was already burnt by this mess, as many IrDA users get
confused when ir-usb loads instead of irda-usb, so my experience so far in handling those case has not been very positive.

	But, I trust you now have things under control ;-)

	Have fun...

	Jean
#3 lore raw
Quoted 10 lines · Jean Tourrilhes
Quoted 9 lines · Jeff Garzik
Quoted 9 lines

Example :
Lucent/Agere Orinoco wireless card :
manfid 0x0156,0x0002
possible drivers : wlan_cs ; orinoco_cs
Intersil PrismII and clones (Linksys, ...) :
manfid 0x0156,0x0002
possible drivers : prism2_cs ; hostap_cs

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Please explain me in details how your stuff will cope with the
above, and how to make sure the right driver is loaded in every case and how user can control this.

Actually, I was unaware of this problem: etc/* of pcmcia-cs-3.2.3 only tells me about the orinoco_cs driver. And that's the only one I can find in kernel 2.5.67 as well.... However, for such cases there is already an override option in my patches:
echo -n "driver_the_next_device_needs" > /sys/bus/pcmcia/settings/force_match

Quoted 6 lines
Quoted 6 lines
Quoted 3 lines

If your scheme can't cope with the simple real life example
above (I've got those cards on my desk, and those drivers on my disk), then it's no good to me.

These cases already exist for PCI, so pcmcia behavior should follow what the kernel does when the PCI core sees such.

i.e. a ->probe() callback?

Dominik