Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755412AbZAUXm7 (ORCPT ); Wed, 21 Jan 2009 18:42:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754088AbZAUXms (ORCPT ); Wed, 21 Jan 2009 18:42:48 -0500 Received: from h4320.serverkompetenz.net ([81.169.172.102]:42743 "EHLO www.deb-support.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754087AbZAUXmr (ORCPT ); Wed, 21 Jan 2009 18:42:47 -0500 Date: Wed, 21 Jan 2009 23:42:41 +0000 From: Michael Bramer To: Alan Cox Cc: Niels de Vos , Paulius Zaleckas , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH] drivers/serial/8250_pci.c (add support for '8-port RS-232 MIC-3620 from advantech' Message-ID: <20090121234241.GB10645@deb-support.de> References: <20090118135359.GA3087@deb-support.de> <20090119145101.GA16732@ports.donpac.ru> <20090119235122.GE21026@deb-support.de> <20090120151216.GB16732@ports.donpac.ru> <20090121075212.GA18485@deb-support.de> <4976DA3D.7050201@teltonika.lt> <4976DF6F.2010509@wincor-nixdorf.com> <20090121123215.1b3acc4d@lxorguk.ukuu.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20090121123215.1b3acc4d@lxorguk.ukuu.org.uk> User-Agent: Mutt/1.5.9i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: grisu@deb-support.de X-SA-Exim-Scanned: No (on www.deb-support.de); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1219 Lines: 30 On Wed, Jan 21, 2009 at 12:32:15PM +0000, Alan Cox wrote: > > >> static struct pci_device_id serial_pci_tbl[] = { > > >> + { PCI_VENDOR_ID_ADVANTECH, PCI_DEVICE_ID_ADVANTECH_PCI3620, > > >> + 0x3620, PCI_ANY_ID, 0, 0, > > > > Why not use PCI_VENDOR_ID_ADVANTECH as PCI_SUBVENDOR_ID too? > > The Advantech vendor id is not 0x3620. This confused me as well which is > why I asked for an lspci. Advantech has stuck the device id in the > subvendor bits and '1' in the subdevice (so it should be 1 not > PCI_ANY_ID). is this better? + { PCI_VENDOR_ID_ADVANTECH, PCI_DEVICE_ID_ADVANTECH_PCI3620, + PCI_DEVICE_ID_ADVANTECH_PCI3620, 1, 0, 0, Gruss Grisu -- Michael Bramer -- http://www.feuerwehr.kreuzau.de/wiki/ PGP: finger grisu@db.debian.org -- Linux Sysadmin -- Use Debian Linux "Wenn ich die Folgen geahnt h?tte, w?re ich Uhrmacher geworden!" --- Albert Einstein -- 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/