841 v8 8m comapt
authorChuanhong Guo <gch981213@gmail.com>
Sun, 13 Sep 2020 09:53:45 +0000 (17:53 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Sat, 19 Sep 2020 13:55:20 +0000 (21:55 +0800)
target/linux/ath79/dts/ar9341_tplink_tl-wr841-v8.dts
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c
target/linux/ath79/image/tiny-tp-link.mk

index 95a047c6d4d27a46643779877ceafedba423d0ec..d2fd6834ff1d0aeccb801934017b8b02bcaec11a 100644 (file)
                        partition@20000 {
                                compatible = "tplink,firmware";
                                label = "firmware";
-                               reg = <0x020000 0x3d0000>;
+                               reg = <0x020000 0x7d0000>;
                        };
 
                        art: partition@3f0000 {
                                label = "art";
-                               reg = <0x3f0000 0x010000>;
+                               reg = <0x7f0000 0x010000>;
                                read-only;
                        };
                };
index a58ee3346bb602401a706be8b370446d5b090b83..abbf466c614e5950fffaa58c03a32bba25a455e2 100644 (file)
@@ -47,6 +47,7 @@ static int ag71xx_mdio_mii_read(struct mii_bus *bus, int addr, int reg)
        int err;
        int ret;
 
+       lockdep_assert_held(&bus->mdio_lock);
        err = ag71xx_mdio_wait_busy(am);
        if (err)
                return 0xffff;
@@ -73,6 +74,7 @@ static int ag71xx_mdio_mii_write(struct mii_bus *bus, int addr, int reg, u16 val
 {
        struct ag71xx_mdio *am = bus->priv;
 
+       lockdep_assert_held(&bus->mdio_lock);
        DBG("mii_write: addr=%04x, reg=%04x, value=%04x\n", addr, reg, val);
 
        regmap_write(am->mii_regmap, AG71XX_REG_MII_ADDR,
index c918c6baa682e78b2b1c204fb9a55dc0a5aef1e7..f134a7a3262ab0b67e8854ff373d1ea23a0353e5 100644 (file)
@@ -348,7 +348,7 @@ endef
 TARGET_DEVICES += tplink_tl-wr841-v7
 
 define Device/tplink_tl-wr841-v8
-  $(Device/tplink-4mlzma)
+  $(Device/tplink-8mlzma)
   SOC := ar9341
   DEVICE_MODEL := TL-WR841N/ND
   DEVICE_VARIANT := v8