From: David Miller <davem@davemloft.net>
To: vbridgers2013@gmail.com
Cc: f.fainelli@gmail.com, netdev@vger.kernel.org
Subject: Re: [PATCH net V2 1/2] libphy: Add phy specific function to access mmd phy registers
Date: Mon, 02 Jun 2014 14:12:41 -0700 (PDT) [thread overview]
Message-ID: <20140602.141241.2078113558597319616.davem@davemloft.net> (raw)
In-Reply-To: <1401380913-4207-2-git-send-email-vbridgers2013@gmail.com>
From: Vince Bridgers <vbridgers2013@gmail.com>
Date: Thu, 29 May 2014 11:28:32 -0500
> - eee_cap = phy_read_mmd_indirect(phydev->bus, MDIO_PCS_EEE_ABLE,
> - MDIO_MMD_PCS, phydev->addr);
> + eee_cap = phydrv->rd_mmd_indirect(phydev, MDIO_PCS_EEE_ABLE,
> + MDIO_MMD_PCS, phydev->addr);
> +
...
> */
> - eee_lp = phy_read_mmd_indirect(phydev->bus, MDIO_AN_EEE_LPABLE,
> - MDIO_MMD_AN, phydev->addr);
> + eee_lp = phydrv->rd_mmd_indirect(phydev, MDIO_AN_EEE_LPABLE,
> + MDIO_MMD_AN, phydev->addr);
...
> - eee_adv = phy_read_mmd_indirect(phydev->bus, MDIO_AN_EEE_ADV,
> - MDIO_MMD_AN, phydev->addr);
> + eee_adv = phydrv->rd_mmd_indirect(phydev, MDIO_AN_EEE_ADV,
> + MDIO_MMD_AN, phydev->addr);
In the case above you properly adjusted the argument indentation.
But, in the cases below, you did not. Please fix this up.
> @@ -1029,14 +1031,14 @@ int phy_init_eee(struct phy_device *phydev, bool clk_stop_enable)
> /* Configure the PHY to stop receiving xMII
> * clock while it is signaling LPI.
> */
> - int val = phy_read_mmd_indirect(phydev->bus, MDIO_CTRL1,
> + int val = phydrv->rd_mmd_indirect(phydev, MDIO_CTRL1,
> MDIO_MMD_PCS,
> phydev->addr);
...
> @@ -1056,7 +1058,7 @@ EXPORT_SYMBOL(phy_init_eee);
> */
> int phy_get_eee_err(struct phy_device *phydev)
> {
> - return phy_read_mmd_indirect(phydev->bus, MDIO_PCS_EEE_WK_ERR,
> + return phydev->drv->rd_mmd_indirect(phydev, MDIO_PCS_EEE_WK_ERR,
> MDIO_MMD_PCS, phydev->addr);
...
> +int gen_rd_mmd_indirect(struct phy_device *phydev, int prtad, int devad,
> + int addr);
> +void gen_wr_mmd_indirect(struct phy_device *phydev, int prtad, int devad,
> + int addr, u32 data);
Thanks.
next prev parent reply other threads:[~2014-06-02 21:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-29 16:28 [PATCH net V2 0/2] libphy: Add phy specific function to access mmd Vince Bridgers
2014-05-29 16:28 ` [PATCH net V2 1/2] libphy: Add phy specific function to access mmd phy registers Vince Bridgers
2014-06-02 21:12 ` David Miller [this message]
2014-05-29 16:28 ` [PATCH net V2 2/2] libphy: Add stubs to hook IEEE MMD Register reads and writes Vince Bridgers
2014-05-29 20:17 ` Sergei Shtylyov
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=20140602.141241.2078113558597319616.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=vbridgers2013@gmail.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).