From: Ayaz Abdulla <aabdulla@nvidia•com>
To: Manfred Spraul <manfred@colorfullife•com>,
"David S. Miller" <davem@davemloft•net>,
Andrew Morton <akpm@osdl•org>, nedev <netdev@vger•kernel.org>
Subject: [PATCH 2/2] forcedeth: Addition of new device id
Date: Tue, 02 Jun 2009 15:18:50 -0400 [thread overview]
Message-ID: <4A257B1A.8080205@nvidia.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 122 bytes --]
This patch adds support for new ethernet device in the MCP89 chipset.
Signed-off-by: Ayaz Abdulla <aabdulla@nvidia•com>
[-- Attachment #2: patch-forcedeth-mcp89-device --]
[-- Type: text/plain, Size: 1301 bytes --]
--- old/drivers/net/forcedeth.c 2009-06-02 14:53:45.000000000 -0400
+++ new/drivers/net/forcedeth.c 2009-06-02 14:53:49.000000000 -0400
@@ -6149,7 +6149,8 @@
for (i = 0;i <= np->register_size/sizeof(u32); i++)
writel(np->saved_config_space[i], base+i*sizeof(u32));
- pci_write_config_dword(pdev, NV_MSI_PRIV_OFFSET, NV_MSI_PRIV_VALUE);
+ if (np->device_id != PCI_DEVICE_ID_NVIDIA_NVENET_40)
+ pci_write_config_dword(pdev, NV_MSI_PRIV_OFFSET, NV_MSI_PRIV_VALUE);
/* restore phy state, including autoneg */
phy_init(dev);
@@ -6353,6 +6354,10 @@
PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NVENET_39),
.driver_data = DEV_NEED_LINKTIMER|DEV_HAS_LARGEDESC|DEV_HAS_CHECKSUM|DEV_HAS_HIGH_DMA|DEV_HAS_MSI|DEV_HAS_POWER_CNTRL|DEV_HAS_PAUSEFRAME_TX_V3|DEV_HAS_STATISTICS_V3|DEV_HAS_TEST_EXTENDED|DEV_HAS_CORRECT_MACADDR|DEV_HAS_COLLISION_FIX|DEV_NEED_TX_LIMIT|DEV_HAS_GEAR_MODE,
},
+ { /* MCP89 Ethernet Controller */
+ PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NVENET_40),
+ .driver_data = DEV_NEED_LINKTIMER|DEV_HAS_LARGEDESC|DEV_HAS_CHECKSUM|DEV_HAS_HIGH_DMA|DEV_HAS_MSI|DEV_HAS_POWER_CNTRL|DEV_HAS_PAUSEFRAME_TX_V3|DEV_HAS_STATISTICS_V3|DEV_HAS_TEST_EXTENDED|DEV_HAS_CORRECT_MACADDR|DEV_HAS_COLLISION_FIX|DEV_NEED_TX_LIMIT|DEV_HAS_GEAR_MODE,
+ },
{0,},
};
next reply other threads:[~2009-06-03 0:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-02 19:18 Ayaz Abdulla [this message]
2009-06-03 20:25 ` [PATCH 2/2] forcedeth: Addition of new device id Andrew Morton
2009-06-03 21:26 ` David Miller
2009-06-03 21:52 ` Andrew Morton
2009-06-03 21:57 ` David Miller
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=4A257B1A.8080205@nvidia.com \
--to=aabdulla@nvidia$(echo .)com \
--cc=akpm@osdl$(echo .)org \
--cc=davem@davemloft$(echo .)net \
--cc=manfred@colorfullife$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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