From: Vince Bridgers <vbridgers2013@gmail.com>
To: netdev@vger.kernel.org, davem@davemloft.net
Cc: vbridgers2013@gmail.com, Vince Bridgers <vbridger@altera.com>
Subject: [PATCH net-next 2/4] Altera TSE: Set the Pause Quanta value to the IEEE default value
Date: Thu, 24 Apr 2014 16:58:09 -0500 [thread overview]
Message-ID: <1398376691-15265-3-git-send-email-vbridgers2013@gmail.com> (raw)
In-Reply-To: <1398376691-15265-1-git-send-email-vbridgers2013@gmail.com>
From: Vince Bridgers <vbridger@altera.com>
This patch initializes the pause quanta set for transmitted pause frames
to the IEEE specified default of 0xffff.
Signed-off-by: Vince Bridgers <vbridgers2013@gmail.com>
---
drivers/net/ethernet/altera/altera_tse.h | 2 ++
drivers/net/ethernet/altera/altera_tse_main.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/drivers/net/ethernet/altera/altera_tse.h b/drivers/net/ethernet/altera/altera_tse.h
index 6059a09..465c4aa 100644
--- a/drivers/net/ethernet/altera/altera_tse.h
+++ b/drivers/net/ethernet/altera/altera_tse.h
@@ -58,6 +58,8 @@
/* MAC function configuration default settings */
#define ALTERA_TSE_TX_IPG_LENGTH 12
+#define ALTERA_TSE_PAUSE_QUANTA 0xffff
+
#define GET_BIT_VALUE(v, bit) (((v) >> (bit)) & 0x1)
/* MAC Command_Config Register Bit Definitions
diff --git a/drivers/net/ethernet/altera/altera_tse_main.c b/drivers/net/ethernet/altera/altera_tse_main.c
index dabba5e..6371283 100644
--- a/drivers/net/ethernet/altera/altera_tse_main.c
+++ b/drivers/net/ethernet/altera/altera_tse_main.c
@@ -891,6 +891,8 @@ static int init_mac(struct altera_tse_private *priv)
iowrite32(cmd, &mac->command_config);
+ iowrite32(ALTERA_TSE_PAUSE_QUANTA, &mac->pause_quanta);
+
if (netif_msg_hw(priv))
dev_dbg(priv->device,
"MAC post-initialization: CMD_CONFIG = 0x%08x\n", cmd);
--
1.7.9.5
next prev parent reply other threads:[~2014-04-24 22:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-24 21:58 [PATCH net-next 0/4] Altera Triple Speed Ethernet (TSE) Driver Vince Bridgers
2014-04-24 21:58 ` [PATCH net-next 1/4] Altera TSE: Work around unaligned DMA receive packet issue with Altera SGDMA Vince Bridgers
2014-04-24 21:58 ` Vince Bridgers [this message]
2014-04-24 21:58 ` [PATCH net-next 3/4] Altera TSE: Fix Panic in probe routine when phy probe fails Vince Bridgers
2014-04-24 21:58 ` [PATCH net-next 4/4] Altera TSE: Change driver name used by Ethtool Vince Bridgers
2014-04-26 16:27 ` [PATCH net-next 0/4] Altera Triple Speed Ethernet (TSE) Driver 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=1398376691-15265-3-git-send-email-vbridgers2013@gmail.com \
--to=vbridgers2013@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=vbridger@altera.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).