From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH v2 net-next 7/8] net: ethernet: xgbe: expand PHY_GBIT_FEAUTRES Date: Tue, 2 Oct 2018 01:23:33 +0200 Message-ID: <20181001232333.GA29932@lunn.ch> References: <1538255056-15114-1-git-send-email-andrew@lunn.ch> <1538255056-15114-8-git-send-email-andrew@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: David Miller , netdev , Florian Fainelli , Maxime Chevallier To: Sergei Shtylyov Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:51105 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbeJBGDt (ORCPT ); Tue, 2 Oct 2018 02:03:49 -0400 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Sun, Sep 30, 2018 at 11:41:00AM +0300, Sergei Shtylyov wrote: > Hello! > > On 9/30/2018 12:04 AM, Andrew Lunn wrote: > > >The macro PHY_GBIT_FEAUTRES needs to change into a bitmap in order to > >support link_modes. Remove its use from xgde by replacing it with its > >definition. > > > >Probably, the current behavior is wrong. It probably should be > >ANDing not assigning. > > ORing, maybe? Hi Sergei It is hard to know what was intended here. By assigning these speeds, if the PHY does not actually support 1Gbps, that information is going to be overwritten. So it should really be ANDing with that the MAC supports. ORing would have the same problem. This assignment is also clearing out an TP, AUI, BNC bits which might be set. Since i don't really know what the intention is here, i'm just going to leave it alone. > > >Signed-off-by: Andrew Lunn > >--- > >v2 > >Remove unneeded () > > Really? :-) I did not say all unneeded :-) I will remove some more. Andrew