Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53619C61DA3 for ; Tue, 21 Feb 2023 09:53:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234196AbjBUJxh (ORCPT ); Tue, 21 Feb 2023 04:53:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234168AbjBUJxF (ORCPT ); Tue, 21 Feb 2023 04:53:05 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA8B62658A; Tue, 21 Feb 2023 01:52:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7IhbMrpB1x7JbHpi0+5qsoFoROWCWYrh9Y+lOe8gXRw=; b=CejrUhXgN6Gc0Su5jF/GfaAu1U S6KvX+DzCkG/pRNfXTVtG7Hm4joM37ZDQ9FTHNE4nqY/2FWRUp12QrA/c8xNv9wDywB8llSDmTE0n 7JU2oQh4uO1XNaED2y334EkA9GX6YhgQdfeddxpTs3PnrphYwSn9WruG1GsoxSF4LCPOEh4Fm2oOR wtRA5qBaBjk7i+cehlP6DSRzChf2zIpTiflIJDy4tGNusxL+zR9xoqOj1O+ulKC2W1FoYyppI/jyy ecEomALojhI5eHA2yJM5iPcKtBXzlyG0HOgVEnBVBGaOMbpGJBC42O7lZDlWXeOBfMZiiqKh0ZAD8 Ir1YZEvg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:48488) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pUPK1-0005aj-8I; Tue, 21 Feb 2023 09:52:29 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pUPK0-00027d-2Q; Tue, 21 Feb 2023 09:52:28 +0000 Date: Tue, 21 Feb 2023 09:52:28 +0000 From: "Russell King (Oracle)" To: Oleksij Rempel Cc: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next v2 0/4] net: phy: EEE fixes Message-ID: References: <20230221050334.578012-1-o.rempel@pengutronix.de> <20230221094809.GF19238@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230221094809.GF19238@pengutronix.de> Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 21, 2023 at 10:48:09AM +0100, Oleksij Rempel wrote: > On Tue, Feb 21, 2023 at 09:36:35AM +0000, Russell King (Oracle) wrote: > > On Tue, Feb 21, 2023 at 06:03:30AM +0100, Oleksij Rempel wrote: > > > changes v2: > > > - restore previous ethtool set logic for the case where advertisements > > > are not provided by user space. > > > > I don't think the _kernel_ should be doing this - this introduces a > > different behaviour to the kernel. As I already said, setting the > > default advertisement in the case of ethtool -s is done by userspace > > not by the kernel. > > > > In fact, the kernel explicitly rejects an attempt to have autoneg > > enabled with a zero advertising mask: > > > > linkmode_copy(advertising, cmd->link_modes.advertising); > > linkmode_and(advertising, advertising, phydev->supported); > > if (autoneg == AUTONEG_ENABLE && linkmode_empty(advertising)) > > return -EINVAL; > > > > and I think we should have a uniform behaviour with the same API, > > rather than different behaviours, as that becomes quite messy. > > I decided to revert this part to not mix different issue. This logic > existed before my refactoring. So, it is better to handle it as > different patch. Current patch set should address only regressions. Okay, let's keep it like that then. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!