Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5761085imm; Mon, 23 Jul 2018 05:44:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc4DTC8xAVO3Wr2CRqOzGoozy0+0yT1LYM0lwsydHUdJKwPKmdjHCdQdj+gU4EzvKe1OEnT X-Received: by 2002:a17:902:8308:: with SMTP id bd8-v6mr12825420plb.329.1532349882600; Mon, 23 Jul 2018 05:44:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532349882; cv=none; d=google.com; s=arc-20160816; b=aAwsrMbyqfbq5aztvteriikGsVDmqoKPIEoHH31SEET6J4ciE8MYXQSSqWet3RIxyF aymsMCTJ7z99T9qq1hriQC7giL8x5TIR0CE8vwpwT8o9UDOmfgEZ+wunYTf4Bhs6NEXt +DP6cn9ppMYjbBUV/hTWQ5Dw4h24W8a3C13uwt58cJ43p775ZSMtKI2i2pf6W4C3PKuk IE1+sHkxkBKKYDnJXkpbf/kXBKAEEUenRD7evtU5erSeDXp/FDBmEKKWsqiWNoeMyrgS dpF+DtALIThJ7o/yRQvNyhAGtGA8JkS1bWqWIN6sYr+CBA1eil1eSSwqIVVicpxoWrXl wqwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=YXlYfrlntY46ZvjMOjuIarP8BlTka4z3mTJf16dQ8ac=; b=ox2365Rz93uV+6ZsWw54Zcrekkcemd4GNvGZ3/SoeeYlialJrFf5TuT4JW8mAq3KL/ 0KWvr+mUWGI3zPXUbELhdRA64pih2TWEnC7PVRUtFsGoCy/747vzSj2uzdBTI4vqr7XA RketfZ6dG3F2M5tqm0QrylRNoSy+XFoiaouUfta+adbTfG/GG0U6AxuvfKQulLKYtRUS tcG68Q1zOfUa6KJMbkpjcHAS1+zRdERfYsKLSwHwb9h22bTlWgioEP572B5SVuNVOWJG FYpq1dKLbkawZbMqJkmHki+JH7kgSGR3tN0quaPr+OSv8m/1QsYqF5XPjcXAcW6ayhj9 lxOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w133-v6si9433626pfd.313.2018.07.23.05.44.27; Mon, 23 Jul 2018 05:44:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388677AbeGWNoF (ORCPT + 99 others); Mon, 23 Jul 2018 09:44:05 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47650 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388242AbeGWNoF (ORCPT ); Mon, 23 Jul 2018 09:44:05 -0400 Received: from localhost (LFbn-1-12238-233.w90-92.abo.wanadoo.fr [90.92.53.233]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2C3DBBCF; Mon, 23 Jul 2018 12:43:02 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sanjeev Bansal , Siva Reddy Kallam , Michael Chan , "David S. Miller" Subject: [PATCH 4.4 014/107] tg3: Add higher cpu clock for 5762. Date: Mon, 23 Jul 2018 14:41:08 +0200 Message-Id: <20180723122413.524246405@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180723122413.003644357@linuxfoundation.org> References: <20180723122413.003644357@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sanjeev Bansal [ Upstream commit 3a498606bb04af603a46ebde8296040b2de350d1 ] This patch has fix for TX timeout while running bi-directional traffic with 100 Mbps using 5762. Signed-off-by: Sanjeev Bansal Signed-off-by: Siva Reddy Kallam Reviewed-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/broadcom/tg3.c | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c @@ -9278,6 +9278,15 @@ static int tg3_chip_reset(struct tg3 *tp tg3_restore_clk(tp); + /* Increase the core clock speed to fix tx timeout issue for 5762 + * with 100Mbps link speed. + */ + if (tg3_asic_rev(tp) == ASIC_REV_5762) { + val = tr32(TG3_CPMU_CLCK_ORIDE_ENABLE); + tw32(TG3_CPMU_CLCK_ORIDE_ENABLE, val | + TG3_CPMU_MAC_ORIDE_ENABLE); + } + /* Reprobe ASF enable state. */ tg3_flag_clear(tp, ENABLE_ASF); tp->phy_flags &= ~(TG3_PHYFLG_1G_ON_VAUX_OK |