提交 d941bebf 编写于 作者: P Punnaiah Choudary Kalluri 提交者: David S. Miller

net: macb: Correct the MID field length value

The latest spec "I-IPA01-0266-USR Rev 10" limit the MID field length to 12 bit
value. For previous versions it is 16 bit value.

This change will not break the backward compatibility as the latest ID value is
7 and with in the 12 bit value limit.
Signed-off-by: NPunnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f50724cd
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
/* Bitfields in MID */ /* Bitfields in MID */
#define MACB_IDNUM_OFFSET 16 #define MACB_IDNUM_OFFSET 16
#define MACB_IDNUM_SIZE 16 #define MACB_IDNUM_SIZE 12
#define MACB_REV_OFFSET 0 #define MACB_REV_OFFSET 0
#define MACB_REV_SIZE 16 #define MACB_REV_SIZE 16
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册