From: Jeff Garzik <jgarzik@pobox.com>
To: Francois Romieu <romieu@fr.zoreil.com>
Cc: netdev@oss.sgi.com, jdmason@us.ibm.com
Subject: Re: [patch 2.6.11-rc4-netdev1 5/5] r8169: literate PCI ID
Date: Tue, 22 Feb 2005 20:31:00 -0500 [thread overview]
Message-ID: <421BDCD4.3050705@pobox.com> (raw)
In-Reply-To: <20050221235834.GE31723@electric-eye.fr.zoreil.com>
Francois Romieu wrote:
> De-obfuscate supported PCI ID
>
> Non-hackers happen to read the sources too.
>
> Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
>
> diff -puN drivers/net/r8169.c~r8169-440 drivers/net/r8169.c
> --- a/drivers/net/r8169.c~r8169-440 2005-02-21 23:42:21.193570455 +0100
> +++ b/drivers/net/r8169.c 2005-02-21 23:42:21.200569312 +0100
> @@ -174,8 +174,10 @@ const static struct {
> #undef _R
>
> static struct pci_device_id rtl8169_pci_tbl[] = {
> - {0x10ec, 0x8169, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
> - {0x1186, 0x4300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
> + { PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_8169,
> + PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL },
> + { PCI_VENDOR_ID_DLINK, PCI_DEVICE_ID_DLINK_DGE528T,
> + PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL },
Although I leave it up to you as maintainer, I encourage use of
PCI_VENDOR_ID_xxx and discourage use of PCI_DEVICE_ID_xxx.
Defining constants for each PCI device
(a) endlessly patches pci_ids.h for little value, and
(b) means that updates to a single driver are no longer self-contained.
For people pulling driver updates into distro kernels particularly,
pci_ids PCI_DEVICE_ID_xxx constants are a pain.
I'm apply patches 1-4 to netdev right now -- please tell me if I should
apply patch #5 as-is, given my comments here.
Jeff
next prev parent reply other threads:[~2005-02-23 1:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-21 23:51 [patch 2.6.11-rc4-netdev1 0/5] r8169: intro Francois Romieu
2005-02-21 23:53 ` [patch 2.6.11-rc4-netdev1 1/5] r8169: fix rx skb allocation error logging Francois Romieu
2005-02-21 23:54 ` [patch 2.6.11-rc4-netdev1 2/5] r8169: skb alignment nitpicking Francois Romieu
2005-02-21 23:56 ` [patch 2.6.11-rc4-netdev1 3/5] r8169: removal of unused #define Francois Romieu
2005-02-21 23:57 ` [patch 2.6.11-rc4-netdev1 4/5] r8169: uniformize comments Francois Romieu
2005-02-21 23:58 ` [patch 2.6.11-rc4-netdev1 5/5] r8169: literate PCI ID Francois Romieu
2005-02-23 1:31 ` Jeff Garzik [this message]
2005-02-23 8:25 ` Francois Romieu
2005-02-22 0:26 ` [patch 2.6.11-rc4-netdev1 0/5] r8169: intro Jeff Garzik
2005-02-22 1:10 ` Francois Romieu
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=421BDCD4.3050705@pobox.com \
--to=jgarzik@pobox.com \
--cc=jdmason@us.ibm.com \
--cc=netdev@oss.sgi.com \
--cc=romieu@fr.zoreil.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).