From: Greg KH <gregkh@linuxfoundation.org>
To: Kevin Cernekee <cernekee@gmail.com>
Cc: alan@linux.intel.com, jslaby@suse.cz,
linux-serial@vger.kernel.org, dwmw2@infradead.org,
ben@decadent.org.uk
Subject: Re: [PATCH 2/3] tty: rocket: Explicitly list supported PCI IDs
Date: Tue, 15 Jan 2013 21:26:35 -0800 [thread overview]
Message-ID: <20130116052635.GA15131@kroah.com> (raw)
In-Reply-To: <8e99cbf1f2bdfacaeaf0a5ac99d99309@localhost>
On Sat, Dec 29, 2012 at 11:23:23PM -0800, Kevin Cernekee wrote:
> Matching PCI_ANY_ID causes conflicts with RocketPort 2 adapters, which
> are supported by a different driver.
>
> Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
> ---
> drivers/tty/rocket.c | 31 ++++++++++++++++++++++++++++---
> 1 file changed, 28 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/tty/rocket.c b/drivers/tty/rocket.c
> index e42009a..c73ca4e 100644
> --- a/drivers/tty/rocket.c
> +++ b/drivers/tty/rocket.c
> @@ -1758,8 +1758,32 @@ static void rp_flush_buffer(struct tty_struct *tty)
>
> #ifdef CONFIG_PCI
>
> -static struct pci_device_id __used rocket_pci_ids[] = {
> - { PCI_DEVICE(PCI_VENDOR_ID_RP, PCI_ANY_ID) },
> +#define RP_PCI_DEVICE(id) \
> + { PCI_DEVICE(PCI_VENDOR_ID_RP, PCI_DEVICE_ID_##id) }
> +
> +static DEFINE_PCI_DEVICE_TABLE(rocket_pci_ids) = {
> + RP_PCI_DEVICE(RP4QUAD),
Ick, no, please just use the PCI_DEVICE() macro and don't define a new
one that makes it hard to grep for things. It's not that hard to just
list them all properly.
thanks,
greg k-h
next prev parent reply other threads:[~2013-01-16 5:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-30 7:23 [PATCH V2 1/3] serial: rp2: New driver for Comtrol RocketPort 2 cards Kevin Cernekee
2012-12-30 7:23 ` [PATCH 2/3] tty: rocket: Explicitly list supported PCI IDs Kevin Cernekee
2013-01-16 5:26 ` Greg KH [this message]
2012-12-30 7:23 ` [PATCH -firmware 3/3] rp2: Initial commit of Comtrol RocketPort 2 microcode Kevin Cernekee
2012-12-30 12:29 ` Ben Hutchings
2012-12-30 11:59 ` [PATCH V2 1/3] serial: rp2: New driver for Comtrol RocketPort 2 cards Ben Hutchings
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130116052635.GA15131@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=alan@linux.intel.com \
--cc=ben@decadent.org.uk \
--cc=cernekee@gmail.com \
--cc=dwmw2@infradead.org \
--cc=jslaby@suse.cz \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.