Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2343687pxb; Sun, 15 Nov 2020 01:00:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXGyQLnzd1HxBL0YvNJxNtoOg2YRlIqJM+msNaZaPhQ6o5MY5NdEyq2CYghcry+fUuAQDv X-Received: by 2002:a17:906:e285:: with SMTP id gg5mr9860693ejb.7.1605430802820; Sun, 15 Nov 2020 01:00:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605430802; cv=none; d=google.com; s=arc-20160816; b=iEV2TkRMBCRcXXaHKUDy88c4fBg6DwzZo1lD2Y4iNxzIYJkr/R1koAo1RDt1behaDo qHIFitNw6BAHsCVH6UForommMMgdgQns3crNEvZh34F+2xm14Zkdf0AlJ98pCAEaBewv 9iRqVDgbc0OdhHdjprVb5mCoNs0ykNZ/sVKpTD00Vj/6gR7wlJczG7A2GSOblbaonbDn rajaRWSfitIbwyK2i7PIQaQZIDC0Y+196v+455MfldgicmiNIQB5TcfVs7MnMFQJlYGW n4Zp+qvDIGFki4JYdM32eWW/5mCJnpF0hEfgu4a9dFFKYORVruSMvVPEETjUJ0YNWKTt ipdQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=S+56hfQEEyW8A6sejWHfFF15OPqpwWnip+jFKB7pa7A=; b=rdzO0FpVAeBS3zcNEpHj90VPC8UQQskuebLSrDivsZRdct4LeaLUTtXyS8G9TCtzBf LMKexipdDowRKdD4gZiq3gNFVJcZzFHdcBQ2pYjRLWoazdT6yamVtxGb9u+6zmRXPGot 3qOJJQc8epBXnzm+D+BxUjfQphcbami4hIS71AiXF3k5otRa+URJkCr2e1A2uoAYvOxX tf77YednnWmouHhtlZtQTkp3/GmFKeTlPtaCkJNLL4rxPYLHLgjued1jbNW2+4KsKKWz E0C0NtcaDBTekqwd8msZlPA1SqTD1kePJPyuaVp2JFFgtP4DhiN8e3APsiJNxCYKphWC 3DAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SLqbXgfY; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a6si9318671ejj.398.2020.11.15.00.59.39; Sun, 15 Nov 2020 01:00: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=@kernel.org header.s=default header.b=SLqbXgfY; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726738AbgKOI4V (ORCPT + 99 others); Sun, 15 Nov 2020 03:56:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:35954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726600AbgKOI4U (ORCPT ); Sun, 15 Nov 2020 03:56:20 -0500 Received: from localhost (otava-0257.koleje.cuni.cz [78.128.181.4]) (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 1B913223FB; Sun, 15 Nov 2020 08:48:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605430113; bh=Rb5YMKuDhGA8y27ozdkJkBkaoCrinqJTdOX9QLayzaI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SLqbXgfYurGq37YLB0Ug66DB0D9xSxF2FZ4C4qLsdTFOmGSlYVuDDz37jWUzyIlZ9 e5d/jh28ccpFk1tPHu81sQROPRKMJLTy+NYWQxP1ufza1JjvWTXnkgSlgyTmUB3dQl he5s7um2zxLE/FLL2yTJ6OuzfLuP5BBZ5wxLA+E0= Date: Sun, 15 Nov 2020 09:48:27 +0100 From: Marek =?UTF-8?B?QmVow7pu?= To: Andreas =?UTF-8?B?RsOkcmJlcg==?= Cc: "David S . Miller" , Thomas Petazzoni , Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= , Michal Hrusecki , Tomas Hlavacek , =?UTF-8?B?QmVkxZlpY2hhIEtvxaFhdHU=?= , Sascha Hauer , Andrew Lunn , Jason Cooper , Gregory CLEMENT , Jakub Kicinski , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: mvneta: Fix validation of 2.5G HSGMII without comphy Message-ID: <20201115094827.74eacbc3@kernel.org> In-Reply-To: <20201115004151.12899-1-afaerber@suse.de> References: <20201115004151.12899-1-afaerber@suse.de> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 15 Nov 2020 01:41:51 +0100 Andreas F=C3=A4rber wrote: > - if (pp->comphy || state->interface =3D=3D PHY_INTERFACE_MODE_2500BASEX)= { > + if (pp->comphy || state->interface =3D=3D PHY_INTERFACE_MODE_2500BASEX > + || state->interface =3D=3D PHY_INTERFACE_MODE_NA) { > phylink_set(mask, 2500baseT_Full); > phylink_set(mask, 2500baseX_Full); > } No, this will cause, on systems without comphy described, phylink to think that 2500baseX/T is possible. But without comphy how can it be configured? Marek