Oh no ! that's a get dev info on socket 0 failed: No such device

Mathieu Deschamps mathieu.deschamps at com2gether.net
Thu Jul 20 05:17:34 EDT 2006


Hello,

I have a problem getting my serial card up and running with pcmcia-3.2.8-cs 
for 2.4.x whereas flash IDE disks and Wifi devices works correctly. On 
insertion, serial_cs is called and card's just recognized properly :
Socket 0:
  product info: "Quatech Inc", "RS-232 Serial Port PC Card", "SSP-100"
  manfid: 0x0137, 0x004b
  function: 2 (serial)

But no tty is binded to the driver serial_cs. /var/pcmcia/stab says :
Socket 0: Serial or Modem

/proc/bus/pccard/00/clients says:
fn 0: 'serial_cs' [attr 0x0012] [state 0x0008]
fn ff: 'Driver Services' [attr 0x0001] [state 0x0000]

Actually I've spotted two problems. 

1.In the dump hereafter I've noticed :
io_space:base=0x3f8,num=0x8,lines=16 
I think 0x3f8 is wrong. Looking to corresponding source 
pcmcia-3.2.8-cs/client/serial_cs.c around line 345 in the "First pass" :

            if ((cf->io.nwin > 0) && (cf->io.win[0].len == 8) &&
                (cf->io.win[0].base != 0)) {
                link->conf.ConfigIndex = cf->index;
                link->io.BasePort1 = cf->io.win[0].base;
                link->io.IOAddrLines = (try == 0) ?
                    16 : cf->io.flags & CISTPL_IO_LINES_MASK;
                i = CardServices(RequestIO, link->handle, &link->io);
 
That's cf->io.win[0].base which sets to 0x3f8. But where does it
come from ? How may I sensibly change it ?

2.Also raised initially in ds.c::get_dev_device_info::445 the error is 
reported via cardmgr  :
cardmgr[141]: get dev info on socket 0 failed: No such device

This happen just after modules insertion (see dump hereafter). 
Further on, I've seen myself gratified with a :
kernel: uart_register_port : No more space on device !
Here I don't really know what is going on, maybe that's as it looks
on a bad iobase it just can find any space.    


Hope you may help understand the issue and sort it out. 
Thank you for sharing your thought.



Kind regards,

Mathieu Deschamps
Com2gether Design Center
Electronic and Embedded Engineering Services
www.com2gether.net 

---------
Here 's a detailed dump 

syslogd started: BusyBox v1.1.1
login[2052]: root login  on `ttyS2'
kernel: cs:parse_events
kernel: cs:parse_events SS_DETECT
kernel: cs:parse add_timer
kernel: cs: setup_socket(0): applying power
kernel: i365_set_socket: disable CB_SM_CCD
kernel: i365_set_socket: disable CB_SM_CCD
kernel: i365_set_socket: disable CB_SM_CCD
cardmgr[141]: socket 0: Serial or Modem
kernel: cs: read_cis_mem(1, 0x0, 2)
kernel: cs: memory probe 0x000000-0xffffffff: clean.
kernel: setup_cis_mem:sys_start:0x80000000  sys_stop:0x80000fff
kernel: cs:  0x01 0x03 0x00 0x00 ...
kernel: cs: read_cis_mem(1, 0x5, 2)
kernel: cs:  0x17 0x03 0x00 0x00 ...
[...more cs_cis debugging spew...]
cardmgr[141]: 'serial_cs' has been bounded to socket 0 successfully !
cardmgr[141]: get dev info on socket 0 failed: No such device
kernel: cs:  0x02 0x01 0x03 0xf1 ...
kernel: cs: read_cis_mem(1, 0x14, 50)
kernel: cs:  0x04 0x01 0x51 0x75 ...
kernel: serial_attach()
kernel: serial_event(0x000004)
kernel: serial_config(0xc1fe3e00)
kernel: cs: read_cis_mem(1, 0x52, 5)
kernel: cs:  0x01 0x00 0x00 0x80 ...
kernel: cs: read_cis_mem(1, 0x59, 15)
kernel: cs:  0xc1 0x41 0x19 0x0f ...
kernel: requestio:0
kernel: io_space:base=0x3f8,num=0x8,lines=16
kernel: allocio2.1:base=0x3f8,num=0x8
kernel: cs_request_irq:1 airq:0 irqinfo1:0x30 irqinfo2:0xdeb8
kernel: cs_request_irq:3 irq:19
kernel: i365_set_socket: disable CB_SM_CCD
kernel: i365_set_socket: disable CB_SM_CCD
kernel: Register_serial : line:-1022405264 iobase:0x3f8 membase:0x0 irq:19 
baudrate:0 iotype:0 ...
kernel: uart_register_port(-1022405264) : called
kernel: uart_register_port(-1022405264) : No more space on device !
kernel: serial_cs: register_serial() at 0x03f8, irq 19 failed
kernel: serial_release(0xc1fe3e00)
kernel: i365_set_socket: disable CB_SM_CCD
kernel: serial_detach(0xc1fe3e00)



More information about the linux-pcmcia mailing list