Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2274553pxb; Mon, 11 Jan 2021 05:48:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQaJKCh3fvi8U+nMUK+xP6JFTvC/UO6++UBdMf8rG/jPxh863cdWyNaDneZV11DZq94BS0 X-Received: by 2002:a50:fc9a:: with SMTP id f26mr13854829edq.255.1610372882301; Mon, 11 Jan 2021 05:48:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610372882; cv=none; d=google.com; s=arc-20160816; b=dCDq2gUCue8Aud5idYHkrs5tFM/R075K5zbslZIUD6SNL5ngbZgRjR+2skvQjVlNKc Dyiy4eEn7yX4lW4Qz6MibK1DhDrOd9kCV4Y2w838VLYj5v5NQeeiAeUnBaNdtUN37Eld fG0kVGwqSFgcoLRGHOMYn+uvBy1+GdSC7lpG6tDXsc4GexsxpujKhTTh6+qPmuxRMxf2 J8mM5Pfvzn4hPp8KTVX1sUmGcKME2kA1VMP7HNKoQThOwZyK+AoplZExcy/44k//lcmw 2WLhwfCwoX8oVaQEzYXQxfYswy78veU1VSRpt1Mtda3+uPjLmiT9P0On913VfLGa4+M2 ZjrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JXDgjjBwpI1mXCfbTdg8EiW0pTF2gl4/nyqyschFniU=; b=tspOD1/16zQjwkOhNY4AHssnynUq+BN7y37njUgrielAfpeu0nyezkU9Cg9GxbfrSW 0eiqtv+4Ksc8L8mz4flnojA+5nHyhL24Gr28oehHrVJrcakzeUcXgTDkQAARVdjk/lwf VeTwQzuu0xDsxKBe14r0AEBBI9z+R3cW0fA2kj3vcGTiRj+Qa8W/o95FE0zeYbeHBa35 rKWvLVIYuVnRlRMmsTzWc3A7Sl+35Ts7TemcMhpyROfANANRAGg/MwyVn5sQi2RqgtuF R4iQony2FCbPFIuCbHvjsfQGbfmlJN/v8vQkxAV3oXlBxgbleOsk1muYPE8e7d7uP7GB qBVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OArwEHD8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i11si6390194ejb.22.2021.01.11.05.47.38; Mon, 11 Jan 2021 05:48:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OArwEHD8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731513AbhAKNpa (ORCPT + 99 others); Mon, 11 Jan 2021 08:45:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:58628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731398AbhAKNLc (ORCPT ); Mon, 11 Jan 2021 08:11:32 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 210D322AAF; Mon, 11 Jan 2021 13:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610370651; bh=ccBS/hWyb3h6coi6EBSTzSoXbm+XMMwYhYsG3vq8QOg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OArwEHD8IXvLNyyHfV1hHt6dTVGBimPJJ8sBOuBgnW7tuh2yfVIc8L785NhYcLyGm VVl6kZFRFM5ZdgC/sZC5QWofP5680tIqHBOPCIsPiIYzZta9FduvjseOalAfN+v2nE KIKlVUeO6rDgsCFoiPfjIsx6JmsuMfYDk5hiIFZM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hauke Mehrtens , Martin Blumenstingl , Florian Fainelli , Jakub Kicinski Subject: [PATCH 5.4 39/92] net: dsa: lantiq_gswip: Enable GSWIP_MII_CFG_EN also for internal PHYs Date: Mon, 11 Jan 2021 14:01:43 +0100 Message-Id: <20210111130041.032614053@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210111130039.165470698@linuxfoundation.org> References: <20210111130039.165470698@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Blumenstingl [ Upstream commit c1a9ec7e5d577a9391660800c806c53287fca991 ] Enable GSWIP_MII_CFG_EN also for internal PHYs to make traffic flow. Without this the PHY link is detected properly and ethtool statistics for TX are increasing but there's no RX traffic coming in. Fixes: 14fceff4771e51 ("net: dsa: Add Lantiq / Intel DSA driver for vrx200") Suggested-by: Hauke Mehrtens Signed-off-by: Martin Blumenstingl Acked-by: Hauke Mehrtens Reviewed-by: Florian Fainelli Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/dsa/lantiq_gswip.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/net/dsa/lantiq_gswip.c +++ b/drivers/net/dsa/lantiq_gswip.c @@ -1522,9 +1522,7 @@ static void gswip_phylink_mac_link_up(st { struct gswip_priv *priv = ds->priv; - /* Enable the xMII interface only for the external PHY */ - if (interface != PHY_INTERFACE_MODE_INTERNAL) - gswip_mii_mask_cfg(priv, 0, GSWIP_MII_CFG_EN, port); + gswip_mii_mask_cfg(priv, 0, GSWIP_MII_CFG_EN, port); } static void gswip_get_strings(struct dsa_switch *ds, int port, u32 stringset,