From patchwork Sat Apr 30 08:17:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: p.wassi@gmx.at X-Patchwork-Id: 617074 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (caladan.dune.hu [78.24.191.180]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qxk3414hNz9t5n for ; Sat, 30 Apr 2016 18:18:08 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id B8A74B916FC; Sat, 30 Apr 2016 10:18:02 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Sat, 30 Apr 2016 10:18:02 +0200 (CEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id DA157B916D9 for ; Sat, 30 Apr 2016 10:18:00 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmx. - helo: .mout.gmx. - helo-domain: .gmx.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 30 Apr 2016 10:17:59 +0200 (CEST) Received: from [82.218.215.208] by 3capp-gmx-bs06.server.lan (via HTTP); Sat, 30 Apr 2016 10:17:59 +0200 MIME-Version: 1.0 Message-ID: From: p.wassi@gmx.at To: openwrt-devel@lists.openwrt.org Date: Sat, 30 Apr 2016 10:17:59 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K0:uTJAvyeboLTTGGBobozWz01Uwmha4L+ARU2OHBjYsY5 XCyywbLVxQSBFhp+wKRz73xW2IWxVh84ltpvORnR6YNk2We3o+ +u0sDux7FQwj7VsNsrPuU2h6HqrqMgu75nt7UFC0kWWoO0KEWs bMq8ozSkpnhilPhAouAJ1K08MldEkIaH3xnNvF+UDVGthQj64x 5Yxzz27XKm5tUmYmLQI4S2PiMrlX6WAuFL7ZaV6OQAPYdO0jaB zmD4DuskeY2lY7Es0AXNTS4JdEKDREb6CxjDahL6/GV4I4e23j hl657A= X-UI-Out-Filterresults: notjunk:1; V01:K0:lLLRNAEk608=:49nXhpce8lesqaFmxOqe9k pwGtnBzlJZ2LzT5DiV4l6NaluLxPPkGZP7X65hplo0T++9shavewl/1iVdcZgpQ0Hsb499ahd ZeCAYjEN/KJ213Vj4up2l33UcdoXhurhyRLJJW3DO3pE/1iLGS4nePo1YTi09e5IiC/xXw3bD rdX3VLIATcX4kt3zXKbD5dj0eMN8pf2xNLHk1AoIpKecajcg7iUACD4olwNeZslfQSRBqGyVe ndSBE7jhX9hmQXCXfLHQfNd7CNurj6PXpuEhRG/LXz1VhNtdQtV2JcUs4UfKVMuSgpIHs9jbw tPTWg44jR0NnMv0rvSDyqWf0Xlic7vJfVBzKpV6uNG3gCtKUh5YVe/JOnE7WGWj6VIn5Ogr2B +ASmhmGKfI6OI0W+wzBQyzZ2s6XZtw85H09Fn6ZOuyIOg9aDzp5tJBCeKq815vokUiR8JR+hc eRe8UMiYig== Subject: [OpenWrt-Devel] [PATCH] ar71xx: Fix eth0 support for Ubiquiti UniFi AP AC X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" From: Paul Wassi Fix eth0 support for the Ubiquiti UniFi AP AC Signed-off-by: Paul Wassi --- In changeset 48937 a patch was introduced which changes the default behaviour of ath79_register_eth(). The patch below addresses this issue and provides proper device setup. Eth is then working out of the box. files/arch/mips/ath79/mach-ubnt-unifiac.c | 1 + 1 file changed, 1 insertion(+) diff -rupN a/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c @@ -84,6 +84,7 @@ static void __init ubnt_unifiac_setup(vo eeprom + UNIFIAC_MAC0_OFFSET, 0); ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_SGMII; + ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev; ath79_eth0_data.phy_mask = BIT(4); ath79_eth0_pll_data.pll_10 = 0x00001313;