From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Chevallier Subject: Re: [PATH RFC net-next 3/8] net: phy: Add helper to convert MII ADV register to a linkmode Date: Mon, 17 Sep 2018 11:50:27 +0200 Message-ID: <20180917115027.602bf132@bootlin.com> References: <1536961136-30453-1-git-send-email-andrew@lunn.ch> <1536961136-30453-4-git-send-email-andrew@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev , Florian Fainelli To: Andrew Lunn Return-path: Received: from mail.bootlin.com ([62.4.15.54]:59337 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726824AbeIQPRH (ORCPT ); Mon, 17 Sep 2018 11:17:07 -0400 In-Reply-To: <1536961136-30453-4-git-send-email-andrew@lunn.ch> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, 14 Sep 2018 23:38:51 +0200 Andrew Lunn wrote: >The phy_mii_ioctl can be used to write a value into the MII_ADVERTISE >register in the PHY. Since this changes the state of the PHY, we need >to make the same change to phydev->advertising. Add a helper which can >convert the register value to a linkmode. > >Signed-off-by: Andrew Lunn Reviewed-by: Maxime Chevallier