pcmcia / hotplugging in kernel 2.4.16/17 with Thinkpad T21

Andreas Hartmann (andihartmann@freenet.de)
Sun, 23 Dec 2001 09:28:16 +0100


Hello all,

Some hints for using pcmcia / hotplugging feature with kernel 2.4.16/17.
Please notice my mail "[2.4.17rc1] various hotplugging problems" too.

My laptop is a IBM Thinkpad T21. I have the PCMCIA-card
Xircom CBEM56G-100 CardBus 10/ 100 CardBus 10/100 Ethernet + 56K Modem.
APM is enabled. "Ignore user suspend" and "allow interrupts during APM
BIOS calls" seem to have no effect.

There are potentially two ways to get pcmcia working:

1. Using hotplug-function of kernel 2.4.x
I could get it working (basic modules statically linked
in the kernel) with some restrictions:
- No ethernet connects with autonegotiation 100Mb/FD are possible.
- Forcing 100Mb/FD on client and server is possible with a lot of errors
on the laptop.
- apm -s crashes the laptop.
- Hotplugging feature doesn't recognize the modem on the Xircom card.

2. Using no hotplugging of the kernel but only the pcmcia-cs-package
(3.1.29/30)
It was for me the best way with the fewest restrictions.

Restarting of pcmcia after stopping and laptop has been once in suspend
mode before doesn't work. Not later than the next card-change, the
laptop hangs.
That's why it is good to leave cardmgr / pcmcia untouched once it is
started.
If you leave cardmgr and modules untouched, apm -s or HW-suspend via
Fn-F4 seems to work.

Another problem was the hotplugging of the cdrom or the floppy drive.
It is necessary to put the boot option "hdc=cdrom" in lilo.conf to give
the kernel the chance to find the cdrom drive plugged in after booting.
The floppy drive is found with /dev/fd1 (not fd0).
If you change the floppy drive / cdrom drive, it is necessary to do a
HW-suspend and wake up (with Fn-F4 - key combination) to give the kernel
a chance to recognize the changed HW.
Because of this, it's very important to have a working suspend mode - no
matter
if hw-mode or sw-mode.

I would be glad to hear your experiences / comments,
regards,
Andreas Hartmann

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/