summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/stmicro/stmmac/common.h
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2016-11-28 14:55:59 +0300
committerDavid S. Miller <davem@davemloft.net>2016-11-30 03:53:22 +0300
commit22d3efe5f62e048eb2c85b9ef24e3b7af545a458 (patch)
treee332e1a84b983a5c828d09b543fd5ed3ea5fe537 /drivers/net/ethernet/stmicro/stmmac/common.h
parent01ae87eab53675cbdabd5c4d727c4a35e397cce0 (diff)
downloadlinux-22d3efe5f62e048eb2c85b9ef24e3b7af545a458.tar.xz
stmmac: fix comments, make debug output consistent
Fix comments, add some new, and make debugfs output consistent. Signed-off-by: Pavel Machek <pavel@denx.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/common.h')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h
index 6d2de4e01f6d..5bd4c0549a73 100644
--- a/drivers/net/ethernet/stmicro/stmmac/common.h
+++ b/drivers/net/ethernet/stmicro/stmmac/common.h
@@ -44,6 +44,7 @@
#define DWMAC_CORE_4_00 0x40
#define STMMAC_CHAN0 0 /* Always supported and default for all chips */
+/* These need to be power of two, and >= 4 */
#define DMA_TX_SIZE 512
#define DMA_RX_SIZE 512
#define STMMAC_GET_ENTRY(x, size) ((x + 1) & (size - 1))