diff options
| author | Vince Bridgers <vbridger@altera.com> | 2014-04-24 17:58:09 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-04-26 12:26:26 -0400 |
| commit | 5aec4ee3724ad93ee63cafc6f6b5f9cd40adda52 (patch) | |
| tree | 58cfdb00084388264b8a85cee8bb8b7715c0f2bd /drivers/net/ethernet/altera | |
| parent | 37c0ffaad21401eacc6618a121cc2c501131026f (diff) | |
Altera TSE: Set the Pause Quanta value to the IEEE default value
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/altera')
| -rw-r--r-- | drivers/net/ethernet/altera/altera_tse.h | 2 | ||||
| -rw-r--r-- | drivers/net/ethernet/altera/altera_tse_main.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/altera/altera_tse.h b/drivers/net/ethernet/altera/altera_tse.h index 6059a09bb8ae..465c4aabebbd 100644 --- a/drivers/net/ethernet/altera/altera_tse.h +++ b/drivers/net/ethernet/altera/altera_tse.h | |||
| @@ -58,6 +58,8 @@ | |||
| 58 | /* MAC function configuration default settings */ | 58 | /* MAC function configuration default settings */ |
| 59 | #define ALTERA_TSE_TX_IPG_LENGTH 12 | 59 | #define ALTERA_TSE_TX_IPG_LENGTH 12 |
| 60 | 60 | ||
| 61 | #define ALTERA_TSE_PAUSE_QUANTA 0xffff | ||
| 62 | |||
| 61 | #define GET_BIT_VALUE(v, bit) (((v) >> (bit)) & 0x1) | 63 | #define GET_BIT_VALUE(v, bit) (((v) >> (bit)) & 0x1) |
| 62 | 64 | ||
| 63 | /* MAC Command_Config Register Bit Definitions | 65 | /* 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 dabba5ed67bd..63712830b333 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) | |||
| 891 | 891 | ||
| 892 | iowrite32(cmd, &mac->command_config); | 892 | iowrite32(cmd, &mac->command_config); |
| 893 | 893 | ||
| 894 | iowrite32(ALTERA_TSE_PAUSE_QUANTA, &mac->pause_quanta); | ||
| 895 | |||
| 894 | if (netif_msg_hw(priv)) | 896 | if (netif_msg_hw(priv)) |
| 895 | dev_dbg(priv->device, | 897 | dev_dbg(priv->device, |
| 896 | "MAC post-initialization: CMD_CONFIG = 0x%08x\n", cmd); | 898 | "MAC post-initialization: CMD_CONFIG = 0x%08x\n", cmd); |
