lkml.org 
[lkml]   [2001]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] make Xircom cardbus modems work
    The attached allows serial.c to work with my Xircom cardbus
    ethernet+modem combo card. It doesn't get autodetected, because
    the serial driver explicitly doesn't recognize anything with
    more than one iomem region (the Xircom modem has two.)
    If the serial driver is linked in statically, the delay
    on initialization is needed, else the UART will get detected
    as a 16450 or not at all; I guess the card is just slow in
    coming up.

    Bill
    --- linux/drivers/char/serial.c.foo Tue May 8 23:44:41 2001
    +++ linux/drivers/char/serial.c Wed May 9 01:18:07 2001
    @@ -4182,6 +4182,15 @@
    return 0;
    }

    +static int
    +#ifndef MODULE
    +__devinit
    +#endif
    +pci_xircom_fn(struct pci_dev *dev, struct pci_board *board, int enable)
    +{
    + __set_current_state(TASK_UNINTERRUPTIBLE);
    + schedule_timeout(HZ/10);
    +}

    /*
    * This is the configuration table for all of the PCI serial boards
    @@ -4558,6 +4567,11 @@
    /*
    * Untested PCI modems, sent in from various folks...
    */
    + /* Xircom Cardbus Ethernet 10/100 + 56k Modem <notting@redhat.com> */
    + { 0x115d, 0x0103,
    + PCI_ANY_ID, PCI_ANY_ID,
    + SPCI_FL_BASE0, 1, 115200,
    + 0, 0, pci_xircom_fn },
    /* Elsa Model 56K PCI Modem, from Andreas Rath <arh@01019freenet.de> */
    { PCI_VENDOR_ID_ROCKWELL, 0x1004,
    0x1048, 0x1500,
    \
     
     \ /
      Last update: 2005-03-22 12:52    [W:0.035 / U:59.660 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site