Hi!

I'm using the kernel 2.4.5 (but same problem with 2.4.5-ac9 and
2.2.18). If I boot then irda works just fine. If I suspend (to disk or
to memory) then irda refuses to work afterwards. nsc_ircc refuses to
load because of the detection of a "Wrong chip version: ff". I have
the same problem if I don't load irda support or unloading the modules
before suspending.

I also tried the patches of Kai but they didn't help me (show no
effect). Uncommenting the version comparison doesn't help either :-).
I also build a kernel with no serial support at all, as otherwise
after suspend /resume the interrupt 10 is occupied by irda0
(/proc/interrupts) even if irda0 is not loaded (lsmod).

I will be happy for every hint.

Peter


Below are some outputs

#findchip -v
reg=0x010
Found NSC PC87338 Controller at 0x398, DevID=0x0b, Rev. 2
    SIR Base 0x2f8, FIR Base 0x2f8
    IRQ = 10, DMA = 0
    Enabled: yes, Suspended: no
    UART compatible: yes
    Half duplex delay = 0 us

modules.conf
# irda - section

alias irda0             nsc-ircc
alias char-major-160    irda0
alias char-major-161      ircomm-tty
alias tty-ldisc-11        irtty

options irda irda_debug=4
options nsc-ircc dongle_id=0x09 io=0x3e8,0x3e8,0x3e8,0x3e8 irq=10,10,10,10
alias net-pf-23         off


loading irda0 support with irattach irda0 -s 

Jun 24 12:44:47 vaio irattach: executing: '/sbin/modprobe irda0'
Jun 24 12:44:47 vaio kernel: irda_init()
Jun 24 12:44:47 vaio kernel: irlmp_init()
Jun 24 12:44:47 vaio kernel: irlmp_register_service_Re6fe6c31(), hints = 0004
Jun 24 12:44:47 vaio kernel: hashbin_find()
Jun 24 12:44:47 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:44:47 vaio kernel: enqueue_first()
Jun 24 12:44:47 vaio kernel: irias_new_object_R508b66e4()
Jun 24 12:44:47 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:44:47 vaio kernel: enqueue_first()
Jun 24 12:44:47 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:44:47 vaio kernel: enqueue_first()
Jun 24 12:44:47 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:44:47 vaio kernel: enqueue_first()
Jun 24 12:44:47 vaio kernel: iriap_open_R221d2371()
Jun 24 12:44:47 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:44:47 vaio kernel: enqueue_first()
Jun 24 12:44:47 vaio kernel: iriap_register_lsap()
Jun 24 12:44:47 vaio kernel: irlmp_slsap_inuse()
Jun 24 12:44:47 vaio kernel: irlmp_next_lsap_state(), LMP LSAP = LSAP_DISCONNECTED
Jun 24 12:44:47 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:44:47 vaio kernel: enqueue_first()
Jun 24 12:44:47 vaio kernel: nsc_ircc_init(), Probing for PC87108 ...
Jun 24 12:44:47 vaio kernel: nsc_ircc_init() no chip at 0x150
Jun 24 12:44:47 vaio kernel: nsc_ircc_init(), Wrong chip id=0xff
Jun 24 12:44:47 vaio kernel: nsc_ircc_init() no chip at 0x0ea
Jun 24 12:44:47 vaio kernel: nsc_ircc_init(), Probing for PC87338 ...
Jun 24 12:44:47 vaio kernel: nsc_ircc_init() Found PC87338 chip, revision=2
Jun 24 12:44:47 vaio kernel: nsc_ircc_open()
Jun 24 12:44:47 vaio kernel: nsc-ircc, Found chip at base=0x398
Jun 24 12:44:47 vaio kernel: nsc-ircc, driver loaded (Dag Brattli)
Jun 24 12:44:47 vaio kernel: nsc_ircc_net_init()
Jun 24 12:44:47 vaio kernel: IrDA: Registered device irda0
Jun 24 12:44:47 vaio kernel: nsc-ircc, Using dongle: IBM31T1100 or Temic 
TFDS6000/TFDS6500
Jun 24 12:44:47 vaio kernel: nsc_ircc_init() no chip at 0x15c
Jun 24 12:44:47 vaio kernel: nsc_ircc_init() no chip at 0x02e
Jun 24 12:44:47 vaio irattach: executing: 'echo 1 > /proc/sys/net/irda/discovery'
Jun 24 12:44:47 vaio irattach: Starting device irda0
Jun 24 12:44:47 vaio irattach: executing: 'echo vaio > /proc/sys/net/irda/devname'
Jun 24 12:44:47 vaio kernel: irda_create()
Jun 24 12:44:47 vaio kernel: irlmp_register_client_R17f18bfb()
Jun 24 12:44:47 vaio kernel: hashbin_find()
Jun 24 12:44:47 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:44:47 vaio kernel: enqueue_first()
Jun 24 12:44:47 vaio kernel: irda_ioctl(), cmd=0x8913
Jun 24 12:44:47 vaio kernel: irda_ioctl(), doing device ioctl!
Jun 24 12:44:47 vaio kernel: irda_ioctl(), cmd=0x8914
Jun 24 12:44:47 vaio kernel: irda_ioctl(), doing device ioctl!
Jun 24 12:44:47 vaio kernel: nsc_ircc_net_open()
Jun 24 12:44:47 vaio kernel: irlap_open_Re262e3fc()
Jun 24 12:44:47 vaio kernel: next LAP state = LAP_OFFLINE
Jun 24 12:44:47 vaio kernel: irlap_apply_default_connection_parameters()
Jun 24 12:44:47 vaio kernel: irlap_change_speed(), setting speed to 9600
Jun 24 12:44:47 vaio kernel: irda_device_set_media_busy_Rb8ad1fb7(TRUE)
Jun 24 12:44:47 vaio kernel: Media busy!
Jun 24 12:44:47 vaio kernel: next LAP state = LAP_NDM
Jun 24 12:44:47 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:44:47 vaio kernel: enqueue_first()
Jun 24 12:44:47 vaio kernel: irlmp_next_lap_state(), LMP LAP = LAP_STANDBY
Jun 24 12:44:47 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:44:47 vaio kernel: enqueue_first()
Jun 24 12:44:47 vaio kernel: irda_device_event(), NETDEV_UP
Jun 24 12:44:47 vaio kernel: hashbin_find()
Jun 24 12:44:47 vaio kernel: hashbin_find()
Jun 24 12:44:47 vaio kernel: irias_delete_value_Rb9394173()
Jun 24 12:44:48 vaio kernel: irda_device_set_media_busy_Rb8ad1fb7(FALSE)
Jun 24 12:44:50 vaio kernel: irlmp_discovery_timer_expired()
Jun 24 12:44:50 vaio kernel: irlmp_expire_discoveries()
Jun 24 12:44:50 vaio kernel: irlmp_do_lap_event(), EVENT = LM_LAP_DISCOVERY_REQUEST, 
STATE = LAP_STANDBY
Jun 24 12:44:50 vaio kernel: irlmp_state_standby()
Jun 24 12:44:50 vaio kernel: irlap_discovery_request(), nslots = 6
Jun 24 12:44:50 vaio kernel: irlap_do_event(), event = DISCOVERY_REQUEST, state = 
LAP_NDM
Jun 24 12:44:50 vaio kernel: irlap_send_discovery_xid_frame(), s=0, S=6, command=1
Jun 24 12:44:50 vaio kernel: async_wrap_skb_R313e8eae(), xbofs=12
Jun 24 12:44:50 vaio kernel: nsc_ircc_pio_write()
Jun 24 12:44:50 vaio kernel: nsc_ircc_pio_write(), fifo_size 1 ; 30 sent of 30
Jun 24 12:44:50 vaio kernel: next LAP state = LAP_QUERY
Jun 24 12:44:50 vaio kernel: nsc_ircc_sir_interrupt(), Changing speed!
Jun 24 12:44:50 vaio kernel: nsc_ircc_change_speed(), speed=9600
Jun 24 12:44:50 vaio kernel: irlap_do_event(), event = SLOT_TIMER_EXPIRED, state = 
LAP_QUERY

... and after unloading, suspend, resume, reload (with irattach irda0 -s)

Jun 24 12:49:01 vaio irattach: executing: '/sbin/modprobe irda0'
Jun 24 12:49:01 vaio kernel: irda_init()
Jun 24 12:49:01 vaio kernel: irlmp_init()
Jun 24 12:49:01 vaio kernel: irlmp_register_service_Re6fe6c31(), hints = 0004
Jun 24 12:49:01 vaio kernel: hashbin_find()
Jun 24 12:49:01 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:49:01 vaio kernel: enqueue_first()
Jun 24 12:49:01 vaio kernel: irias_new_object_R508b66e4()
Jun 24 12:49:01 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:49:01 vaio kernel: enqueue_first()
Jun 24 12:49:01 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:49:01 vaio kernel: enqueue_first()
Jun 24 12:49:01 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:49:01 vaio kernel: enqueue_first()
Jun 24 12:49:01 vaio kernel: iriap_open_R221d2371()
Jun 24 12:49:01 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:49:01 vaio kernel: enqueue_first()
Jun 24 12:49:01 vaio kernel: iriap_register_lsap()
Jun 24 12:49:01 vaio kernel: irlmp_slsap_inuse()
Jun 24 12:49:01 vaio kernel: irlmp_next_lsap_state(), LMP LSAP = LSAP_DISCONNECTED
Jun 24 12:49:01 vaio kernel: hashbin_insert_R0bbf1ddb()
Jun 24 12:49:01 vaio kernel: enqueue_first()
Jun 24 12:49:01 vaio kernel: nsc_ircc_init(), Probing for PC87108 ...
Jun 24 12:49:01 vaio kernel: nsc_ircc_init() no chip at 0x150
Jun 24 12:49:01 vaio kernel: nsc_ircc_init(), Wrong chip id=0xff
Jun 24 12:49:01 vaio kernel: nsc_ircc_init() no chip at 0x0ea
Jun 24 12:49:01 vaio kernel: nsc_ircc_init(), Probing for PC87338 ...
Jun 24 12:49:01 vaio kernel: nsc_ircc_init() Found PC87338 chip, revision=2
Jun 24 12:49:01 vaio kernel: nsc_ircc_open()
Jun 24 12:49:01 vaio kernel: nsc-ircc, Found chip at base=0x398
Jun 24 12:49:01 vaio kernel: nsc-ircc, Wrong chip version ff
Jun 24 12:49:01 vaio kernel: nsc_ircc_init() no chip at 0x15c
Jun 24 12:49:01 vaio kernel: nsc_ircc_init() no chip at 0x02e
Jun 24 12:49:01 vaio irattach: + 
/lib/modules/2.4.5-win4lin/kernel/drivers/net/irda/nsc-ircc.o: init_module: No such 
device
Jun 24 12:49:01 vaio irattach: + 
/lib/modules/2.4.5-win4lin/kernel/drivers/net/irda/nsc-ircc.o: insmod 
/lib/modules/2.4.5-win4lin/kernel/drivers/net/irda/nsc-ircc.o failed
Jun 24 12:49:02 vaio kernel: dequeue_first()
Jun 24 12:49:02 vaio last message repeated 7 times
Jun 24 12:49:02 vaio kernel: irlmp_unregister_service_R6b2845d2()
Jun 24 12:49:02 vaio kernel: hashbin_find()
Jun 24 12:49:02 vaio kernel: hashbin_remove_R1938d18d()
Jun 24 12:49:02 vaio kernel: dequeue_general()
Jun 24 12:49:02 vaio kernel: dequeue_first()
Jun 24 12:49:02 vaio kernel: __iriap_close()
Jun 24 12:49:02 vaio kernel: dequeue_first()
Jun 24 12:49:02 vaio last message repeated 18 times
Jun 24 12:49:02 vaio kernel: irias_delete_value_Rb9394173()
Jun 24 12:49:02 vaio kernel: dequeue_first()
Jun 24 12:49:02 vaio kernel: dequeue_first()
Jun 24 12:49:02 vaio kernel: irias_delete_value_Rb9394173()
Jun 24 12:49:02 vaio kernel: dequeue_first()
Jun 24 12:49:02 vaio last message repeated 5 times
Jun 24 12:49:02 vaio kernel: irda_device_cleanup()
Jun 24 12:49:02 vaio kernel: dequeue_first()
Jun 24 12:49:02 vaio last message repeated 64 times
Jun 24 12:49:02 vaio irattach: + 
/lib/modules/2.4.5-win4lin/kernel/drivers/net/irda/nsc-ircc.o: insmod irda0 failed
Jun 24 12:49:02 vaio irattach: + Hint: insmod errors can be caused by incorrect module 
parameters, including invalid IO or IRQ parameters
Jun 24 12:49:02 vaio irattach: Trying to load module irda0 exited with status 255
Jun 24 12:49:02 vaio irattach: executing: 'echo 1 > /proc/sys/net/irda/discovery'
Jun 24 12:49:02 vaio irattach: Setting discovery to 1 exited with status 1
Jun 24 12:49:02 vaio irattach: Starting device irda0
_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to