diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2015-03-31 09:02:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-31 16:51:17 -0400 |
commit | 361918970b7426bba97a64678ef2b2679c37199b (patch) | |
tree | 7c4e2b81348c211458c6623c891da2de32469251 /drivers/net/ethernet/cadence/macb.c | |
parent | 7c39994fc1e2b6a1bb5cb207a88e88a6b1ac1694 (diff) |
net/macb: fix the peripheral version test
We currently need two checks of the peripheral version in MACB_MID register.
One of them got out of sync after modification by 8a013a9c71b2 (net: macb:
Include multi queue support for xilinx ZynqMP ethernet version).
Fix this in macb_configure_caps() so that xilinx ZynqMP will be considered
as a GEM flavor.
Fixes: 8a013a9c71b2 ("net: macb: Include multi queue support for xilinx ZynqMP
ethernet version")
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Cc: <stable@vger.kernel.org> #4.0 (if it doesn't make it for -final)
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence/macb.c')
-rw-r--r-- | drivers/net/ethernet/cadence/macb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index babe972a7c32..4412895cf4a8 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c | |||
@@ -2139,7 +2139,7 @@ static void macb_configure_caps(struct macb *bp, const struct macb_config *dt_co | |||
2139 | if (dt_conf) | 2139 | if (dt_conf) |
2140 | bp->caps = dt_conf->caps; | 2140 | bp->caps = dt_conf->caps; |
2141 | 2141 | ||
2142 | if (MACB_BFEXT(IDNUM, macb_readl(bp, MID)) == 0x2) | 2142 | if (MACB_BFEXT(IDNUM, macb_readl(bp, MID)) >= 0x2) |
2143 | bp->caps |= MACB_CAPS_MACB_IS_GEM; | 2143 | bp->caps |= MACB_CAPS_MACB_IS_GEM; |
2144 | 2144 | ||
2145 | if (macb_is_gem(bp)) { | 2145 | if (macb_is_gem(bp)) { |