From patchwork Fri Mar 25 12:59:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weijie Gao X-Patchwork-Id: 601980 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 3qWk0G0zJTz9s9Z for ; Fri, 25 Mar 2016 23:59:26 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=UvytHv6n; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 5E4A7B92E73; Fri, 25 Mar 2016 13:59:15 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, T_DKIM_INVALID 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; Fri, 25 Mar 2016 13:59:15 +0100 (CET) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 15F76B92E6C for ; Fri, 25 Mar 2016 13:59:13 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-pa0-f42.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 25 Mar 2016 13:59:12 +0100 (CET) Received: by mail-pa0-f42.google.com with SMTP id td3so45938225pab.2 for ; Fri, 25 Mar 2016 05:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=HmTxRDtx35/l3cLUGqbLFqwO3VitQWlM1RN52rUmOZk=; b=UvytHv6nQ1U3O1eG5KdoXqJ6w7MIanolDLT4byI0gnCHcQf8hojn9ZkPG8PfIp/j0J GLBjrYSNQHMVpOsz6/xfCUfxxAdclQsOnz4tn9PGbSDj668b8/OqmGZtvlXzM2SrizqU dK+Fl83AWOxvJd21B7f4uoXHqyv0hNSTrYKbysSyzBWBb9vOMHv4DyPzpzLAYkCWzVGE FZGdxZNmKc4IejWxF4v08IfXSHM+55N37Ui8SyEonUQ8BLyrt8BjRnbXtj3/BimEJFyt 9yAtfFp2OJYqqNYHcp8HSvRFRkY6n5Zj0LvU1FrAtAdocajce8XV1repiXYWcemuR0dB d1mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HmTxRDtx35/l3cLUGqbLFqwO3VitQWlM1RN52rUmOZk=; b=VOhnXEYByhw1lZKE9CpEa54orT9haRwIYjWvCThZ34p3BR05O+D4nDHIGcej6C/xqr kXPQReRXa9N1sGtR4nZenwydlNsuW0f5QZGktZZwb4ydpv27Cs3dDkgT0jncSiiS/KNS w9jhvvjHGA+kNHglhfU8h+4YsJxoMT/8/gqXD+k1oN0uduIyHMy7jgF/4QR7Kt+JwQVW PnGyDcns5+CleNMzbm1UkAGX0iEsS1uI3Ha5fo/FgXFml9AELthbCxniPVL7ClA6zuGI jh4ME2vz7BwZjiGDLIoafyfBRSaMbjOBC1xLzbeVLzzmEXwQ9AsJE8ID3Yxvf5tEXPOe XklQ== X-Gm-Message-State: AD7BkJIUXChWda3Np5+vfssSHRv7RWaZ5nLZiVbEg62KeQQMUo5CDCDMLBJGuhvgmxWB7A== X-Received: by 10.66.121.97 with SMTP id lj1mr20855171pab.51.1458910749024; Fri, 25 Mar 2016 05:59:09 -0700 (PDT) Received: from localhost ([2605:f700:40:c00::ab48:b246]) by smtp.gmail.com with ESMTPSA id xs10sm16528784pab.4.2016.03.25.05.59.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Mar 2016 05:59:08 -0700 (PDT) From: Weijie Gao To: openwrt-devel@lists.openwrt.org Date: Fri, 25 Mar 2016 20:59:01 +0800 Message-Id: <1458910741-21461-1-git-send-email-hackpascal@gmail.com> X-Mailer: git-send-email 2.5.0 Subject: [OpenWrt-Devel] [PATCH] ar71xx: fix qca956x ge0 speed 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: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" when qca956x uses the internal fe switch, the dummy function should be used Signed-off-by: Weijie Gao --- target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c index b43c80a..f292800 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c @@ -1128,7 +1128,7 @@ void __init ath79_register_eth(unsigned int id) if (pdata->phy_if_mode == PHY_INTERFACE_MODE_SGMII) pdata->set_speed = qca956x_set_speed_sgmii; else - pdata->set_speed = ath79_set_speed_ge0; + pdata->set_speed = ath79_set_speed_dummy; } else { pdata->reset_bit = QCA955X_RESET_GE1_MAC | QCA955X_RESET_GE1_MDIO;