From: Andrew Lunn Subject: Re: [PATCH net-next] net: phy: don't allow __set_phy_supported to add unsupported modes Date: Mon, 3 Dec 2018 14:23:50 +0100 Message-ID: <20181203132350.GB31655@lunn.ch> References: <28a0d107-120c-83f4-9ce8-42b0cf45f415@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Florian Fainelli , David Miller , "netdev@vger.kernel.org" To: Heiner Kallweit Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:58662 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbeLCNYw (ORCPT ); Mon, 3 Dec 2018 08:24:52 -0500 Content-Disposition: inline In-Reply-To: <28a0d107-120c-83f4-9ce8-42b0cf45f415@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Mon, Dec 03, 2018 at 08:04:57AM +0100, Heiner Kallweit wrote: > Currently __set_phy_supported allows to add modes w/o checking whether > the PHY supports them. This is wrong, it should never add modes but > only remove modes we don't want to support. > > Signed-off-by: Heiner Kallweit Reviewed-by: Andrew Lunn Andrew