[patch 2.6.9-rc2] 3c59x: do not mask reset of aism logic at rmmod

From: John W. Linville (linville_at_tuxdriver.com)
Date: 09/28/04

  • Next message: Kilau, Scott: "RE: [PATCH 2.6.8.1] drivers/char: New serial driver."
    Date:	Tue, 28 Sep 2004 14:54:55 -0400
    To: akpm@osdl.org
    
    

    Some (earlier?) versions of the 3c905(B) card get confused and refuse to
    work again after the 3c59x module is removed (even after reloading the
    module). Changing vortex_remove_one() to allow the auto-initialize
    state machine logic to be reset when the module is removed alleviates
    this problem.

    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    ---
    See http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=133388 for more
    details.

    If anyone can suggest a better way to fix this problem, please do so.
    I'll be happy to pursue it.

     drivers/net/3c59x.c | 2 +-
     1 files changed, 1 insertion(+), 1 deletion(-)

    This patch should apply (with a little fuzz) to 2.4 as well...

    --- linux-2.6/drivers/net/3c59x.c.orig
    +++ linux-2.6/drivers/net/3c59x.c
    @@ -3162,7 +3162,7 @@ static void __devexit vortex_remove_one
                             pci_restore_state(VORTEX_PCI(vp), vp->power_state);
             }
             /* Should really use issue_and_wait() here */
    - outw(TotalReset|0x14, dev->base_addr + EL3_CMD);
    + outw(TotalReset|0x04, dev->base_addr + EL3_CMD);
     
             pci_free_consistent(pdev,
                                                     sizeof(struct boom_rx_desc) * RX_RING_SIZE
    -
    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: Kilau, Scott: "RE: [PATCH 2.6.8.1] drivers/char: New serial driver."

    Relevant Pages

    • Re: HARDWARE: Open-Source-Friendly Graphics Cards -- Viable?
      ... If it has any chance of being on-par or a little ... I wouldn't buy a card that wouldn't have the three aforementioned features. ... a blurry fast one. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.11 vs DVB cx88 stuffs
      ... >> be a good idea to build the cx88 stuff in the DVB section ... the card is working in ntsc just fine. ... Copyright 2005 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC] Small PCI core patch
      ... the binary drivers make absolutely no verification of the ... > command streams passed from userland, you can make the card do whatever ... The resulting bad PR should fix their security holes quick ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Large slab cache in 2.6.1
      ... > threads where someone refused to test patches. ... and I fully understand if you refuse to test patches on ... > PS, if I can apply them to my 2.6.1 kernel, then I wouldn't have to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.9-rc1-bk11+ and 2.6.9-rc1-mm3,4 r8169: freeze during boot (FIX included)
      ... the crash is not immediate. ... possibly in>32-bit addresses but the card hasn't been told to support ... Turning off high DMA fixes it. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)

    Loading