lkml.org 
[lkml]   [2009]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 07/48] parport: parport_serial, dont bind netmos ibm 0299
    2.6.28-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Jiri Slaby <jirislaby@gmail.com>

    commit 3abdbf90a3ffb006108c831c56b092e35483b6ec upstream.

    Since netmos 9835 with subids 0x1014(IBM):0x0299 is now bound with
    serial/8250_pci, because it has no parallel ports and subdevice id isn't
    in the expected form, return -ENODEV from probe function.

    This is performed in netmos preinit_hook.

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

    ---
    drivers/parport/parport_serial.c | 5 +++++
    1 file changed, 5 insertions(+)

    --- a/drivers/parport/parport_serial.c
    +++ b/drivers/parport/parport_serial.c
    @@ -64,6 +64,11 @@ struct parport_pc_pci {

    static int __devinit netmos_parallel_init(struct pci_dev *dev, struct parport_pc_pci *card, int autoirq, int autodma)
    {
    + /* the rule described below doesn't hold for this device */
    + if (dev->device == PCI_DEVICE_ID_NETMOS_9835 &&
    + dev->subsystem_vendor == PCI_VENDOR_ID_IBM &&
    + dev->subsystem_device == 0x0299)
    + return -ENODEV;
    /*
    * Netmos uses the subdevice ID to indicate the number of parallel
    * and serial ports. The form is 0x00PS, where <P> is the number of


    \
     
     \ /
      Last update: 2009-02-14 02:33    [W:4.388 / U:0.928 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site