Patchwork [U-Boot,1/2] phy: export genphy_parse_link()

login
register
mail settings
Submitter Yegor Yefremov
Date Nov. 28, 2012, 10:15 a.m.
Message ID <1354097718-13775-1-git-send-email-yegorslists@googlemail.com>
Download mbox | patch
Permalink /patch/202426/
State Accepted
Delegated to: Joe Hershberger
Headers show

Comments

Yegor Yefremov - Nov. 28, 2012, 10:15 a.m.
From: Yegor Yefremov <yegorslists@googlemail.com>

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 drivers/net/phy/phy.c |    2 +-
 include/phy.h         |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
Yegor Yefremov - Jan. 15, 2013, 10:41 a.m.
On Wed, Nov 28, 2012 at 11:15 AM,  <yegorslists@googlemail.com> wrote:
> From: Yegor Yefremov <yegorslists@googlemail.com>
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
>  drivers/net/phy/phy.c |    2 +-
>  include/phy.h         |    1 +
>  2 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
> index 1ffa791..c28ea70 100644
> --- a/drivers/net/phy/phy.c
> +++ b/drivers/net/phy/phy.c
> @@ -279,7 +279,7 @@ int genphy_update_link(struct phy_device *phydev)
>   *
>   * Stolen from Linux's mii.c and phy_device.c
>   */
> -static int genphy_parse_link(struct phy_device *phydev)
> +int genphy_parse_link(struct phy_device *phydev)
>  {
>         int mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMSR);
>
> diff --git a/include/phy.h b/include/phy.h
> index 3c30f11..1342ef7 100644
> --- a/include/phy.h
> +++ b/include/phy.h
> @@ -209,6 +209,7 @@ int phy_register(struct phy_driver *drv);
>  int genphy_config_aneg(struct phy_device *phydev);
>  int genphy_restart_aneg(struct phy_device *phydev);
>  int genphy_update_link(struct phy_device *phydev);
> +int genphy_parse_link(struct phy_device *phydev);
>  int genphy_config(struct phy_device *phydev);
>  int genphy_startup(struct phy_device *phydev);
>  int genphy_shutdown(struct phy_device *phydev);
> --
> 1.7.7
>

Hi Joe,

could you please take a look at this patch series (the second patch is
about adding ICPlus phy)?

Yegor
Joe Hershberger - July 8, 2013, 3:45 p.m.
On Tue, Jan 15, 2013 at 4:41 AM, Yegor Yefremov
<yegorslists@googlemail.com> wrote:
> On Wed, Nov 28, 2012 at 11:15 AM,  <yegorslists@googlemail.com> wrote:
>> From: Yegor Yefremov <yegorslists@googlemail.com>
>>
>> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>

Applied, Thanks.
-Joe

Patch

diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 1ffa791..c28ea70 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -279,7 +279,7 @@  int genphy_update_link(struct phy_device *phydev)
  *
  * Stolen from Linux's mii.c and phy_device.c
  */
-static int genphy_parse_link(struct phy_device *phydev)
+int genphy_parse_link(struct phy_device *phydev)
 {
 	int mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMSR);
 
diff --git a/include/phy.h b/include/phy.h
index 3c30f11..1342ef7 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -209,6 +209,7 @@  int phy_register(struct phy_driver *drv);
 int genphy_config_aneg(struct phy_device *phydev);
 int genphy_restart_aneg(struct phy_device *phydev);
 int genphy_update_link(struct phy_device *phydev);
+int genphy_parse_link(struct phy_device *phydev);
 int genphy_config(struct phy_device *phydev);
 int genphy_startup(struct phy_device *phydev);
 int genphy_shutdown(struct phy_device *phydev);