Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1266483 > unrolled thread

[PATCH 3/6] net: dsa: mv88e6060: use the correct MaxFrameSize bit

Started byNeil Armstrong <narmstrong@baylibre.com>
First post2015-11-10 14:30 +0100
Last post2015-11-10 14:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 3/6] net: dsa: mv88e6060: use the correct MaxFrameSize bit Neil Armstrong <narmstrong@baylibre.com> - 2015-11-10 14:30 +0100

#1266483 — [PATCH 3/6] net: dsa: mv88e6060: use the correct MaxFrameSize bit

FromNeil Armstrong <narmstrong@baylibre.com>
Date2015-11-10 14:30 +0100
Subject[PATCH 3/6] net: dsa: mv88e6060: use the correct MaxFrameSize bit
Message-ID<qth9M-5Bq-1@gated-at.bofh.it>
According to the mv88e6060 datasheet, the MaxFrameSize bit position
is 10 instead of 11 which is reserved.
Use the bit correctly to setup max frame size to 1536.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
 drivers/net/dsa/mv88e6060.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dsa/mv88e6060.c b/drivers/net/dsa/mv88e6060.c
index 26f668c..6a35e3f 100644
--- a/drivers/net/dsa/mv88e6060.c
+++ b/drivers/net/dsa/mv88e6060.c
@@ -119,7 +119,7 @@ static int mv88e6060_setup_global(struct dsa_switch *ds)
 	 * set the maximum frame size to 1536 bytes, and mask all
 	 * interrupt sources.
 	 */
-	REG_WRITE(REG_GLOBAL, 0x04, 0x0800);
+	REG_WRITE(REG_GLOBAL, 0x04, 0x400);

 	/* Enable automatic address learning, set the address
 	 * database size to 1024 entries, and set the default aging
-- 
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web