Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2460352imd; Fri, 2 Nov 2018 11:47:35 -0700 (PDT) X-Google-Smtp-Source: AJdET5dlJr7HicW/+kUDa4kdCzd7AgIpU3ERKSd82RF4/GpL90iTD9IDkurnlV5WwHL0rB40sGyi X-Received: by 2002:a17:902:6b46:: with SMTP id g6-v6mr12622444plt.33.1541184455615; Fri, 02 Nov 2018 11:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184455; cv=none; d=google.com; s=arc-20160816; b=xGNvkP6K2w7Kkgo3MA0Lk95zr9VsBHtkEtJMRBHWR4OaVadhz9DkxohKAP292+APqa jNK7nhKj309z+WlGM845i2EpaRRS7zYB3kZ2TDIZm4DfdXi0U+i5MS7vonkAM0oVBlYF 7rKc/mKsfMjY3mIEpzKs8iJ9d52S7kLGtyek4py+o+r/BxiHJDQuNPSgzJxQmyvkZfxP cghIF/hMw/FakR5vyjjmtfaC/3RLcnfsfwB3AAB27/9Bf2Waw+/COlUGvZLY3X66NXEx TN9sxr4O7WkCk0lSiBxuwVOzSSxsPw+g4RHcyGU723VLBgzwemeNvokKS4XyuVvA6UYz FPeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Os9MyESuChZ/ThA/VCEO264GAnTGjvVuIW+88UiVRl8=; b=owfP19NtFsvs2sznPIOOSQ6/yPrrz4Ya3crpbtY5S5bwtJNRFTfeHtIU9ujJVNIEvD RQVE3lU/LDTetqLj0wNzDicCcufcNPrGB5gJi7DLXQkvCgoCMPL06gVo5/KfCXNgHkcr CyVytmA1bk/JGXQhaLM7aBv4pgp14/KC2I89RoMFaaWEpIBlH1w5J/MXmI9LSJmUSdbd zv/7zx+FBQoUbY4KPzFDi0YBAredB4AmqDGvWbv/j7RZyDwzJRz3AI/mMArwE6PE7V0I t3hbVej6mtixsPYuMfAgaFVbCOWtTUCmq+QgyNIR/z8EkJ/KQzWQA5ljgQ6x07a9XzkK pLGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gsnvQGa9; 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 i1-v6si33593244pgm.328.2018.11.02.11.47.20; Fri, 02 Nov 2018 11:47:35 -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; dkim=pass header.i=@kernel.org header.s=default header.b=gsnvQGa9; 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 S1730123AbeKCDxO (ORCPT + 99 others); Fri, 2 Nov 2018 23:53:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:48736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729632AbeKCDxN (ORCPT ); Fri, 2 Nov 2018 23:53:13 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC0EF2084A; Fri, 2 Nov 2018 18:44:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184300; bh=WWC7YOcl/KHv47808iM/Ek6AkzoIXAsY2IjPaZ6NpTg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gsnvQGa9bi+03s1Dh+fDRBbZtWPYYrNevLeY+YK+koYxZBwu2rhR7OB6348Q7o1bO bVLkj6tWmrltBIwFg76onDEuClLCrX7k35O8dmCm/QyLmP4dnCQVIpw+h/j5zqighB vyEPKZRjXmnRTitJzpKu76gscxv06CHkry7w9TCs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florian Fainelli , "David S. Miller" Subject: [PATCH 4.18 128/150] net: bcmgenet: Poll internal PHY for GENETv5 Date: Fri, 2 Nov 2018 19:34:50 +0100 Message-Id: <20181102182911.740371760@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Florian Fainelli [ Upstream commit 64bd9c8135751b561f27edaaffe93d07093f81af ] On GENETv5, there is a hardware issue which prevents the GENET hardware from generating a link UP interrupt when the link is operating at 10Mbits/sec. Since we do not have any way to configure the link detection logic, fallback to polling in that case. Fixes: 421380856d9c ("net: bcmgenet: add support for the GENETv5 hardware") Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/broadcom/genet/bcmmii.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/drivers/net/ethernet/broadcom/genet/bcmmii.c +++ b/drivers/net/ethernet/broadcom/genet/bcmmii.c @@ -321,9 +321,12 @@ int bcmgenet_mii_probe(struct net_device phydev->advertising = phydev->supported; /* The internal PHY has its link interrupts routed to the - * Ethernet MAC ISRs + * Ethernet MAC ISRs. On GENETv5 there is a hardware issue + * that prevents the signaling of link UP interrupts when + * the link operates at 10Mbps, so fallback to polling for + * those versions of GENET. */ - if (priv->internal_phy) + if (priv->internal_phy && !GENET_IS_V5(priv)) dev->phydev->irq = PHY_IGNORE_INTERRUPT; return 0;