Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp22148pxb; Fri, 15 Jan 2021 04:56:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwAbAhDkyzrc3h4SXOYu1BIOZDgsCH8R5JlrtyDo0mypVOOeFlavWvR2k0vAwgFNHWzI7Pa X-Received: by 2002:a17:906:36da:: with SMTP id b26mr8507068ejc.28.1610715401876; Fri, 15 Jan 2021 04:56:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610715401; cv=none; d=google.com; s=arc-20160816; b=FHOWcTnN6i3vee534pe501vGDCih4mfStkDjzBFNE6WQ6mDauYZR5y1XQB6IdtGwCe lU6fg+MbqzODpiA9D3bJ9oU1WprVEZbvRblbpB1fWEmVQbDn7i8mpyVcu3hybjed0Dpf 3LuVzsTtmGL1m5LOWibeq3KTyq//CEQZVXCXFThfjGwp2bjH4XyNa+pVUON2m8qICKuK zHAoMEUHmKjciYXwk0+mc6ZiIsa5Z5cYFlPR6qWnLc8Lspem3bp78hEg7qlo58RjqU+Q UBf8JjRu83CaEXfEVghNQbybgtKYha+ADDqiWQrRUQpQ4K9cZttqy5W/blem+SxUNwyi bi8A== 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=2qB8q9l2c2aDWVY+vKEJacAACqApwD1DMeVsRF6BfHM=; b=jI/z/lDnw15GLLHNEa9+gaSoNmRaYHTM+YcvX48KxkLUrhF6fe6b1MSUKsfaYpy7RG H75mXCCI/gANAsxLYmOcQS8EoTtNdrAldpT/w8VfFjPjgjCNtVSEf/vCmUZQ+xWBwtov tCKGf0iFzdIOUrTsorRoI511F/493ie3DxRTwHL/cYw8tPiV2F8mLIPTL35QgL8XO0ej E0R8aFPe9kPYcDV0rA9/Kr/ktqY51EMh0+ZDDCVGU2h8yKFau1OeQTjdjpMEvr/Mp9M+ wUP7T0Yxno+CB01X9ghWU8Qw3g5kNQ9wR6Ek8yikAzz6o9GrQjbPeBnukMixA2RrbvRx kWcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=v7RY86qb; 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 cq13si3631573edb.130.2021.01.15.04.56.18; Fri, 15 Jan 2021 04:56:41 -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=v7RY86qb; 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 S2388440AbhAOMzU (ORCPT + 99 others); Fri, 15 Jan 2021 07:55:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:41338 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387640AbhAOMfU (ORCPT ); Fri, 15 Jan 2021 07:35:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 00644223E0; Fri, 15 Jan 2021 12:35:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610714105; bh=Qe4Gq1BiktvxjL/ZaekxISO/O3xNb6cvTOm77gyAm74=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v7RY86qbKJF9QPaKX8IZBHPaq/gR0b++N2FQxn+nseBdv9RCytlfMjkqGnhBkph46 7WZfipB/MUkhRbd+Bn4rwNktFpyvYVpf+JSNNhho/RvR9K0LQbmGUpXoz2iigjxXoM c+f8SHzScgkLwZvqmJzgXSMoUV9rsUwC8wdWFp6o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aleksander Jan Bajkowski , Florian Fainelli , Jakub Kicinski Subject: [PATCH 5.4 18/62] net: dsa: lantiq_gswip: Exclude RMII from modes that report 1 GbE Date: Fri, 15 Jan 2021 13:27:40 +0100 Message-Id: <20210115121959.282968059@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210115121958.391610178@linuxfoundation.org> References: <20210115121958.391610178@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: Aleksander Jan Bajkowski [ Upstream commit 3545454c7801e391b0d966f82c98614d45394770 ] Exclude RMII from modes that report 1 GbE support. Reduced MII supports up to 100 MbE. Fixes: 14fceff4771e ("net: dsa: Add Lantiq / Intel DSA driver for vrx200") Signed-off-by: Aleksander Jan Bajkowski Reviewed-by: Florian Fainelli Link: https://lore.kernel.org/r/20210107195818.3878-1-olek2@wp.pl Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/dsa/lantiq_gswip.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/drivers/net/dsa/lantiq_gswip.c +++ b/drivers/net/dsa/lantiq_gswip.c @@ -1419,11 +1419,12 @@ static void gswip_phylink_validate(struc phylink_set(mask, Pause); phylink_set(mask, Asym_Pause); - /* With the exclusion of MII and Reverse MII, we support Gigabit, - * including Half duplex + /* With the exclusion of MII, Reverse MII and Reduced MII, we + * support Gigabit, including Half duplex */ if (state->interface != PHY_INTERFACE_MODE_MII && - state->interface != PHY_INTERFACE_MODE_REVMII) { + state->interface != PHY_INTERFACE_MODE_REVMII && + state->interface != PHY_INTERFACE_MODE_RMII) { phylink_set(mask, 1000baseT_Full); phylink_set(mask, 1000baseT_Half); }