2.6.x kernels & PCI-to-PCMCIA bridges [again]

jar jar at pcuf.fi
Sat May 1 20:56:13 BST 2004


komujun at nifty.com wrote:
> Following code is unnecessary ?
> 
> -	if ((io->start > 0xffff) || (io->stop > 0xffff) || (io->stop < io->start)){
> -		dprintk("pd6729_set_io_map with invalid io");
> -		return -EINVAL;
> -	}
I don't know is it unnecessary or not. Who can tell?


> Please check [Device]-[Input device support]-[Misc]-{PC Speaker support]
> in your kernel configuration.

Sorry, that part has changed in 2.6 series. Thans for pointing it
out.Beeps are working now.

> I can't reproduce this in my system.
> "/etc/init.d/pcmcia restart" works properly.

I don't know but to me it looks like below.

At first boot
================================================
Linux Kernel Card Services
  options:  [pci] [cardbus] [pm]
PCI: Found IRQ 5 for device 0000:00:0b.0
pd6729: Cirrus PD6729 PCI to PCMCIA Bridge.
pd6729: configured as a 2 socket device.
cs: IO port probe 0x0c00-0x0cff: clean.
cs: IO port probe 0x0100-0x04ff: excluding 0x170-0x177 0x370-0x37f
0x4d0-0x4d7
cs: IO port probe 0x0a00-0x0aff: clean.
cs: memory probe 0x0d0000-0x0dffff: clean.
hostap_crypt: registered algorithm 'NULL'
hostap_cs: 0.1.3 - 2004-02-08 (Jouni Malinen <jkmaline at cc.hut.fi>)
hostap_cs: setting Vcc=33 (constant)
hostap_cs: CS_EVENT_CARD_INSERTION
hostap_cs: setting Vcc=33 (from config)
Checking CFTABLE_ENTRY 0x01 (default 0x01)
Config has no IRQ info, but trying to enable IRQ anyway..
IO window settings: cfg->io.nwin=1 dflt.io.nwin=1
io->flags = 0x0046, io.base=0x0000, len=64
hostap_cs: index 0x01: Vcc 3.3, irq 5, io 0x0100-0x013f
divert: allocating divert_blk for wlan0
hostap_cs: Registered netdevice wlan0
prism2_hw_init: initialized in 214 ms
wlan0: trying to read PDA from 0x007f0000: failed
wlan0: trying to read PDA from 0x003f0000: failed
wlan0: trying to read PDA from 0x00390000: OK
wlan0: NIC: id=0x8002 v1.0.1
wlan0: PRI: id=0x15 v0.3.0
wlan0: STA: id=0x1f v1.5.6


After service pcmcia restart
================================================

wwlan0: Deauthenticate all stations
device wlan0 left promiscuous mode
hostap_cs: detach postponed, 'wlan0' still locked
divert: freeing divert_blk for wlan0
hostap_cs: Driver unloaded
hostap_crypt: unregistered algorithm 'NULL' (deinit)
cs: IO port probe 0x0c00-0x0cff: clean.
cs: IO port probe 0x0100-0x04ff: excluding 0x170-0x177 0x370-0x37f
0x4d0-0x4d7
cs: IO port probe 0x0a00-0x0aff: clean.

cs: unable to map card memory!

hostap_crypt: registered algorithm 'NULL'
hostap_cs: 0.1.3 - 2004-02-08 (Jouni Malinen <jkmaline at cc.hut.fi>)
hostap_cs: setting Vcc=33 (constant)
hostap_cs: CS_EVENT_CARD_INSERTION
hostap_cs: setting Vcc=33 (from config)
Checking CFTABLE_ENTRY 0x01 (default 0x01)
Config has no IRQ info, but trying to enable IRQ anyway..
IO window settings: cfg->io.nwin=1 dflt.io.nwin=1
io->flags = 0x0046, io.base=0x0000, len=64

cs: unable to map card memory!

hostap_cs: index 0x01: Vcc 3.3, irq 5, io 0x0100-0x013f
divert: allocating divert_blk for wlan0
hostap_cs: Registered netdevice wlan0
prism2_hw_init: initialized in 154 ms
wlan0: trying to read PDA from 0x007f0000: failed
wlan0: trying to read PDA from 0x003f0000: failed
wlan0: trying to read PDA from 0x00390000: OK
wlan0: NIC: id=0x8002 v1.0.1
wlan0: PRI: id=0x15 v0.3.0
wlan0: STA: id=0x1f v1.5.6

Regards, Jar



More information about the linux-pcmcia mailing list