[PATCH][2.4.21] orinoco_cs card reinsertion

From: Sebastian Reichelt (SebastianR_at_gmx.de)
Date: 08/31/03

  • Next message: Jeff Garzik: "[bk patches] 2.4.x net driver updates"
    Date:	Sun, 31 Aug 2003 16:05:44 +0200
    To: linux-kernel@vger.kernel.org
    
    
    

    Hello!

    After switching from 2.4.20 to 2.4.21 (Debian unstable package
    kernel-source-2.4.21-5), my wireless LAN PCMCIA card stopped working
    when I hot-removed and reinserted it. I got these messages in
    /var/log/syslog, plus a high beep on removal and a high and then a low
    beep on reinsertion:

    Upon removal:
    Aug 29 16:00:41 SebastianL2 kernel: orinoco_lock() called with
    hw_unavailable (dev=cf34b800)

    Upon reinsertion:
    Aug 29 16:00:44 SebastianL2 cardmgr[192]: socket 0: ZCOMAX
    AirRunner/XI-300
    Aug 29 16:00:44 SebastianL2 kernel: GetNextTuple(). No matching CIS
    configuration, maybe you need the ignore_cis_vcc=1 parameter.
    Aug 29 16:00:44 SebastianL2 kernel: orinoco_cs: GetFirstTuple: No more
    items
    Aug 29 16:00:45 SebastianL2 cardmgr[192]: get dev info on socket 0
    failed: Resource temporarily unavailable

    I looked at the changes between the two kernels, in orinoco.c,
    orinoco_cs.c, and hermes.c, and it seems that quite a bit of code was
    restructured. So unfortunately, I cannot narrow it down to a single
    change that caused this. The attached patch fixes the problem for me,
    but it is NOT a simple copy from the old driver, and it may not be
    correct at all. However, it might give someone a hint about what went
    wrong. Anyway, even with this patch, I still get the "orinoco_lock()
    called with hw_unavailable" message when I remove the card.

    Sorry if I'm posting a patch for a problem that has already been fixed
    in 2.4.22. The Debian package is still at 2.4.21, and I don't know
    anything about the Debian patches and why they are needed, etc. If I can
    just install a kernel from kernel.org, I will do this, and try to see if
    the problem is still there (I can see an item "orinoco driver update"
    in the changelog, but it's not specific). Should I also install a 2.6
    kernel and check?

    I have attached the output of lspci -vvv and the parts of the syslog
    that identify my card and show the problem. The controller is this entry
    in lspci.txt:
    00:08.0 CardBus bridge: O2 Micro, Inc. OZ6912 Cardbus Controller

    Here is the output of ver_linux:

    ------------------------------------------------------------------------
    Linux SebastianL2 2.4.21 #1 Sat Aug 30 00:22:04 CEST 2003 i686 GNU/Linux
     
    Gnu C 3.3.2
    Gnu make 3.80
    binutils 2.14.90.0.5
    util-linux 2.11z
    mount 2.11z
    modutils 0.9.13
    e2fsprogs 1.35-WIP
    pcmcia-cs 3.2.2
    Linux C Library 2.3.2
    Dynamic linker (ldd) 2.3.2
    Procps 3.1.11
    Net-tools 1.60
    Console-tools 0.2.3
    Sh-utils 5.0.90
    ------------------------------------------------------------------------

    Hopefully someone can find the true cause of the problem. Good luck.

    -- 
    Sebastian Reichelt
    
    
    
    

    -
    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/





  • Next message: Jeff Garzik: "[bk patches] 2.4.x net driver updates"

    Relevant Pages