netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell King - ARM Linux admin <linux@armlinux.org.uk>
To: Ioana Ciornei <ioana.ciornei@nxp.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
	vladimir.oltean@nxp.com, claudiu.manoil@nxp.com,
	alexandru.marginean@nxp.com, andrew@lunn.ch,
	f.fainelli@gmail.com, olteanv@gmail.com
Subject: Re: [PATCH net-next v4 3/5] net: mdiobus: add clause 45 mdiobus write accessor
Date: Tue, 28 Jul 2020 16:07:20 +0100	[thread overview]
Message-ID: <20200728150720.GQ1551@shell.armlinux.org.uk> (raw)
In-Reply-To: <20200724080143.12909-4-ioana.ciornei@nxp.com>

On Fri, Jul 24, 2020 at 11:01:41AM +0300, Ioana Ciornei wrote:
> Add the locked variant of the clause 45 mdiobus write accessor -
> mdiobus_c45_write().
> 
> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
> ---

Reviewed-by: Russell King <rmk+kernel@armlinux.org.uk>

Thanks.

> Changes in v4:
>  - none
> 
>  include/linux/mdio.h | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/include/linux/mdio.h b/include/linux/mdio.h
> index 898cbf00332a..3a88b699b758 100644
> --- a/include/linux/mdio.h
> +++ b/include/linux/mdio.h
> @@ -358,6 +358,12 @@ static inline int mdiobus_c45_read(struct mii_bus *bus, int prtad, int devad,
>  	return mdiobus_read(bus, prtad, mdiobus_c45_addr(devad, regnum));
>  }
>  
> +static inline int mdiobus_c45_write(struct mii_bus *bus, int prtad, int devad,
> +				    u16 regnum, u16 val)
> +{
> +	return mdiobus_write(bus, prtad, mdiobus_c45_addr(devad, regnum), val);
> +}
> +
>  int mdiobus_register_device(struct mdio_device *mdiodev);
>  int mdiobus_unregister_device(struct mdio_device *mdiodev);
>  bool mdiobus_is_registered_device(struct mii_bus *bus, int addr);
> -- 
> 2.25.1
> 
> 

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

  reply	other threads:[~2020-07-28 15:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-24  8:01 [PATCH net-next v4 0/5] net: phy: add Lynx PCS MDIO module Ioana Ciornei
2020-07-24  8:01 ` [PATCH net-next v4 1/5] net: phylink: add helper function to decode USXGMII word Ioana Ciornei
2020-07-28 15:06   ` Russell King - ARM Linux admin
2020-07-24  8:01 ` [PATCH net-next v4 2/5] net: phylink: consider QSGMII interface mode in phylink_mii_c22_pcs_get_state Ioana Ciornei
2020-07-28 15:06   ` Russell King - ARM Linux admin
2020-07-24  8:01 ` [PATCH net-next v4 3/5] net: mdiobus: add clause 45 mdiobus write accessor Ioana Ciornei
2020-07-28 15:07   ` Russell King - ARM Linux admin [this message]
2020-07-24  8:01 ` [PATCH net-next v4 4/5] net: phy: add Lynx PCS module Ioana Ciornei
2020-07-28 15:46   ` Russell King - ARM Linux admin
2020-07-24  8:01 ` [PATCH net-next v4 5/5] net: dsa: ocelot: use the Lynx PCS helpers in Felix and Seville Ioana Ciornei
2020-07-24 21:47 ` [PATCH net-next v4 0/5] net: phy: add Lynx PCS MDIO module Vladimir Oltean
2020-07-27 18:27 ` Ioana Ciornei
2020-07-27 18:29 ` Florian Fainelli
2020-07-27 18:48   ` Ioana Ciornei
2020-07-27 19:47     ` Florian Fainelli
2020-07-27 20:28       ` Andrew Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200728150720.GQ1551@shell.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --cc=alexandru.marginean@nxp.com \
    --cc=andrew@lunn.ch \
    --cc=claudiu.manoil@nxp.com \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=ioana.ciornei@nxp.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=vladimir.oltean@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).