[PATCH] drivers/pcmcia/yenta.c, kernel 2.3.99-pre8

From: Erwin Bolwidt (ejb@tryllian.com)
Date: Sat May 20 2000 - 20:49:33 EDT

  • Next message: Petr Vandrovec: "Re: [patch] Re: 2.2.16pre nls in 2.3?"

    With 2.3.99-pre6 and 8 I still had problems with incorrect voltage on
    cardbus cards, and the patch included in this post fixed it.

    Erwin

    This is a simple, one-line patch. I believe that is corrects an important bug
    in the PCMCIA cardbus code that resulted in incorrect voltage being applied to
    3.3 Volt Cardbus cards on computers with a Texas Instruments PCI1221 cardbus
    (and probably other models) bridge. The fix is quite obvious; the status of
    a cardbus socket must be obtained using cb_readl, not config_readl since the
    latter reads the pci config (using pci_read_config_dword). It should fix
    voltage problems with other cardbus bridges that only supply the correct
    voltage parameters in the status after a forced CB_CVSTEST.

    May 20, 2000 Erwin Bolwidt <ejb@klomp.org>


    --- old/linux-2.3.99-pre8/drivers/pcmcia/yenta.c Wed May 3 10:45:19 2000
    +++ new/linux-2.3.99-pre8/drivers/pcmcia/yenta.c Sat May 20 01:32:49 2000
    @@ -564,7 +564,7 @@
      */
     static void yenta_power_sense(pci_socket_t *socket)
     {
    - u32 status = config_readl(socket, CB_SOCKET_STATE);
    + u32 status = cb_readl(socket, CB_SOCKET_STATE);
     
             /*
              * Nothing inserted, nothing to sense..

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Sat May 20 2000 - 20:56:01 EDT