From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: davem@davemloft.net
Cc: Bruce Allan <bruce.w.allan@intel.com>,
netdev@vger.kernel.org, gospo@redhat.com, sassmann@redhat.com,
Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Subject: [net-next 11/12] e1000e: use hardware default values for Transmit Control register
Date: Wed, 25 Jan 2012 23:21:54 -0800 [thread overview]
Message-ID: <1327562515-29664-12-git-send-email-jeffrey.t.kirsher@intel.com> (raw)
In-Reply-To: <1327562515-29664-1-git-send-email-jeffrey.t.kirsher@intel.com>
From: Bruce Allan <bruce.w.allan@intel.com>
This code snippet is simply writing default values to the register which is
unnecessary since the values are programmed into the register by default.
There is a special case for 80003es2lan needing the Retransmit on Late
Collision bit set but that is also done in e1000_init_hw_80003es2lan().
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
drivers/net/ethernet/intel/e1000e/netdev.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index fb29990..89af6c0 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -2770,7 +2770,7 @@ static void e1000_configure_tx(struct e1000_adapter *adapter)
struct e1000_hw *hw = &adapter->hw;
struct e1000_ring *tx_ring = adapter->tx_ring;
u64 tdba;
- u32 tdlen, tctl, tarc;
+ u32 tdlen, tarc;
/* Setup the HW Tx Head and Tail descriptor pointers */
tdba = tx_ring->dma;
@@ -2808,12 +2808,6 @@ static void e1000_configure_tx(struct e1000_adapter *adapter)
/* erratum work around: set txdctl the same for both queues */
ew32(TXDCTL(1), er32(TXDCTL(0)));
- /* Program the Transmit Control Register */
- tctl = er32(TCTL);
- tctl &= ~E1000_TCTL_CT;
- tctl |= E1000_TCTL_PSP | E1000_TCTL_RTLC |
- (E1000_COLLISION_THRESHOLD << E1000_CT_SHIFT);
-
if (adapter->flags & FLAG_TARC_SPEED_MODE_BIT) {
tarc = er32(TARC(0));
/*
@@ -2845,8 +2839,6 @@ static void e1000_configure_tx(struct e1000_adapter *adapter)
/* enable Report Status bit */
adapter->txd_cmd |= E1000_TXD_CMD_RS;
- ew32(TCTL, tctl);
-
e1000e_config_collision_dist(hw);
}
--
1.7.7.6
next prev parent reply other threads:[~2012-01-26 7:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-26 7:21 [net-next 00/12][pull request] Intel Wired LAN Driver Updates Jeff Kirsher
2012-01-26 7:21 ` [net-next 01/12] e1000e: cleanup Rx checksum offload code Jeff Kirsher
2012-01-26 7:21 ` [net-next v2 02/12] e1000e: add Receive Packet Steering (RPS) support Jeff Kirsher
2012-01-26 7:21 ` [net-next 03/12] e1000e: re-enable alternate MAC address for all devices which support it Jeff Kirsher
2012-01-26 7:21 ` [net-next 04/12] e1000e: convert head, tail and itr_register offsets to __iomem pointers Jeff Kirsher
2012-01-26 7:21 ` [net-next 05/12] e1000e: pass pointer to ring struct instead of adapter struct Jeff Kirsher
2012-01-26 7:21 ` [net-next 06/12] e1000e: re-factor ethtool get/set ring parameter Jeff Kirsher
2012-01-26 7:21 ` [net-next 07/12] e1000e: default IntMode based on kernel config & available hardware support Jeff Kirsher
2012-01-26 7:21 ` [net-next 08/12] e1000e: always set transmit descriptor control registers the same Jeff Kirsher
2012-01-26 7:21 ` [net-next 09/12] e1000e: 82579: workaround for link drop issue Jeff Kirsher
2012-01-26 7:21 ` [net-next 10/12] e1000e: use default settings for Tx Inter Packet Gap timer Jeff Kirsher
2012-01-26 7:21 ` Jeff Kirsher [this message]
2012-01-26 7:21 ` [net-next 12/12] e1000e: 82574/82583 Tx hang workaround Jeff Kirsher
2012-01-26 18:49 ` [net-next 00/12][pull request] Intel Wired LAN Driver Updates David Miller
2012-01-26 21:27 ` 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=1327562515-29664-12-git-send-email-jeffrey.t.kirsher@intel.com \
--to=jeffrey.t.kirsher@intel.com \
--cc=bruce.w.allan@intel.com \
--cc=davem@davemloft.net \
--cc=gospo@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=sassmann@redhat.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).