From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52F9B3DB62B; Tue, 19 May 2026 11:56:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779191808; cv=none; b=kbMa2Vzh/3EZh7yeDklFEgrm2JuEs7DkUosppm84WQ8f23w1lj3/6LH14V91hTihpzU9O7X23MyTTyXDfEjcgxBfOPYOMwrFjFHgM+i+Eeg5ItCP6fj/pncwxcMInfq+Vp4wsWB61bcksjtexTgkWiW7G7rcn7Sb2qkUyUdpPSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779191808; c=relaxed/simple; bh=CpNQuTYqWEmQ0jxtASrxsdjSo7pbVPqzz7x73T94pn8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tWxNPtXK5RCZZmho23i1notujuxgSXuTRXNJohQ7Zv8yfwRvjcua7EFRYEIUpfGXQi4l9jWA7WTQ6qcS14ZObvm93xndPY92uPB27Sexdft8xQM3yosxcdDMkv/GsA/KSTpiWRsh3F8oaQc2YwJRXpEDMEvL3FCLrTkj3WxVUIM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=VDg0zf11; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="VDg0zf11" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=aoyUbTDpd3rcxoAsbcPCvdPbnM/atKRFCZSR1ycX05I=; b=VDg0zf11OnpZbO1Npmkce9IhMC keY6gfXZAMCpf65rhv0cPHw0+ts5q4prHKT/JRiSVBtKNAjoGonnqKvh9ATpUjIReRB6bVg5yezX8 //ULtxe98bj2QgVT8mXWMqZXswP0aSk7Ur6t2OY79lvzhBXrMp48VVWIGXc5+UQ/GjDM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1wPJ3t-003epG-Fq; Tue, 19 May 2026 13:56:37 +0200 Date: Tue, 19 May 2026 13:56:37 +0200 From: Andrew Lunn To: Nicolai Buchwitz Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Oleksij Rempel , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v2 2/2] net: phy: honor eee_disabled_modes in phy_advertise_eee_all() Message-ID: <156e0ef1-1e61-490c-8e44-a75ea83f31cb@lunn.ch> References: <20260518-devel-phy-support-eee-fix-v2-0-05b52626fa68@tipi-net.de> <20260518-devel-phy-support-eee-fix-v2-2-05b52626fa68@tipi-net.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260518-devel-phy-support-eee-fix-v2-2-05b52626fa68@tipi-net.de> On Mon, May 18, 2026 at 10:23:10AM +0200, Nicolai Buchwitz wrote: > phy_advertise_eee_all() copies supported_eee into advertising_eee > unconditionally, overwriting any filtering applied during phy_probe() > based on DT eee-broken-* properties or driver-populated > eee_disabled_modes. genphy_c45_ethtool_set_eee() calls this helper > when user space passes an empty advertisement, undoing the filtering. > > Apply the same eee_disabled_modes mask in phy_advertise_eee_all() so > the filtering survives the copy, matching the pattern in phy_probe() > and phy_support_eee(). > > Fixes: b64691274f5d ("net: phy: add helper phy_advertise_eee_all") > Signed-off-by: Nicolai Buchwitz Reviewed-by: Andrew Lunn Andrew