lkml.org 
[lkml]   [2009]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 22/56] 8250_pci: add support for netmos 9835 IBM devices
    2.6.27-stable review patch.  If anyone has any objections, please let us know.
    ------------------

    From: Jiri Slaby <jirislaby@gmail.com>

    commit 25cf9bc1fcb085daaeb82b09bab0fb3c40570887 upstream.

    Most of netmos 9835 hardware is handled by parport-serial. IBM introduces
    a device which doesn't have any parallel ports and have screwed subdevice
    PCI id (not corresponding to port numbers).

    Handle this device (9710:9835 1014:0299) properly.

    Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Alan Cox <alan@redhat.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/serial/8250_pci.c | 8 ++++++++
    1 file changed, 8 insertions(+)

    --- a/drivers/serial/8250_pci.c
    +++ b/drivers/serial/8250_pci.c
    @@ -599,6 +599,10 @@ static int pci_netmos_init(struct pci_de
    /* subdevice 0x00PS means <P> parallel, <S> serial */
    unsigned int num_serial = dev->subsystem_device & 0xf;

    + if (dev->subsystem_vendor == PCI_VENDOR_ID_IBM &&
    + dev->subsystem_device == 0x0299)
    + return 0;
    +
    if (num_serial == 0)
    return -ENODEV;
    return num_serial;
    @@ -2846,6 +2850,10 @@ static struct pci_device_id serial_pci_t
    0,
    pbn_b0_8_115200 },

    + { PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9835,
    + PCI_VENDOR_ID_IBM, 0x0299,
    + 0, 0, pbn_b0_bt_2_115200 },
    +
    /*
    * These entries match devices with class COMMUNICATION_SERIAL,
    * COMMUNICATION_MODEM or COMMUNICATION_MULTISERIAL


    \
     
     \ /
      Last update: 2009-02-11 01:39    [W:0.034 / U:29.384 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site