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: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Punnaiah Choudary Kalluri 2015-03-05 15:02:10 +01:00 committed by David S. Miller
parent f50724cdfe
commit d941bebf5e
1 changed files with 1 additions and 1 deletions

View File

@ -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