diff options
author | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2019-08-07 17:08:05 +0200 |
---|---|---|
committer | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2019-08-27 10:32:44 +0200 |
commit | e10b163247b188b0059e08bc447b624beabd24cb (patch) | |
tree | fe43ad8336d558f7650fcf4fbfa5be5eb05d43a0 | |
parent | 08e274da9d7b1e4864885921dfa73454bc23b3f9 (diff) | |
download | upstream-e10b163247b188b0059e08bc447b624beabd24cb.tar.gz upstream-e10b163247b188b0059e08bc447b624beabd24cb.tar.bz2 upstream-e10b163247b188b0059e08bc447b624beabd24cb.zip |
ar71xx: ag71xx: add missing register writes
These are added in ath79, but were not backported here
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c index f0d8d46a18..e97317bd20 100644 --- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -1274,6 +1274,9 @@ static int ag71xx_change_mtu(struct net_device *dev, int new_mtu) return -EBUSY; dev->mtu = new_mtu; + ag71xx_wr(ag, AG71XX_REG_MAC_MFL, + ag71xx_max_frame_len(dev->mtu)); + return 0; } @@ -1413,6 +1416,8 @@ static int ag71xx_probe(struct platform_device *pdev) ag71xx_dump_regs(ag); + ag71xx_wr(ag, AG71XX_REG_MAC_CFG1, 0); + ag71xx_hw_init(ag); ag71xx_dump_regs(ag); |