All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging/octeon: Fix PHY binding in octeon-ethernet driver.
@ 2012-02-23 19:19 David Daney
  2012-02-24  9:29 ` Florian Fainelli
  2012-03-06 20:13 ` Ralf Baechle
  0 siblings, 2 replies; 4+ messages in thread
From: David Daney @ 2012-02-23 19:19 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-mips, devel, David Daney, Florian Fainelli

From: David Daney <david.daney@cavium.com>

Commit d6c25be (mdio-octeon: use an unique MDIO bus name.) changed the
names used to refer to MDIO buses.  The ethernet driver must be
changed to match, so that the PHY drivers can be attached.

Cc: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David Daney <david.daney@cavium.com>
---
 drivers/staging/octeon/ethernet-mdio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/octeon/ethernet-mdio.c b/drivers/staging/octeon/ethernet-mdio.c
index 63800ba..e31949c 100644
--- a/drivers/staging/octeon/ethernet-mdio.c
+++ b/drivers/staging/octeon/ethernet-mdio.c
@@ -164,9 +164,9 @@ int cvm_oct_phy_setup_device(struct net_device *dev)
 
 	int phy_addr = cvmx_helper_board_get_mii_address(priv->port);
 	if (phy_addr != -1) {
-		char phy_id[20];
+		char phy_id[MII_BUS_ID_SIZE + 3];
 
-		snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, "0", phy_addr);
+		snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, "mdio-octeon-0", phy_addr);
 
 		priv->phydev = phy_connect(dev, phy_id, cvm_oct_adjust_link, 0,
 					PHY_INTERFACE_MODE_GMII);
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging/octeon: Fix PHY binding in octeon-ethernet driver.
  2012-02-23 19:19 [PATCH] staging/octeon: Fix PHY binding in octeon-ethernet driver David Daney
@ 2012-02-24  9:29 ` Florian Fainelli
  2012-02-24 17:21   ` David Daney
  2012-03-06 20:13 ` Ralf Baechle
  1 sibling, 1 reply; 4+ messages in thread
From: Florian Fainelli @ 2012-02-24  9:29 UTC (permalink / raw)
  To: David Daney; +Cc: Greg Kroah-Hartman, linux-mips, devel, David Daney

Le 02/23/12 20:19, David Daney a écrit :
> From: David Daney<david.daney@cavium.com>
>
> Commit d6c25be (mdio-octeon: use an unique MDIO bus name.) changed the
> names used to refer to MDIO buses.  The ethernet driver must be
> changed to match, so that the PHY drivers can be attached.
>
> Cc: Florian Fainelli<florian@openwrt.org>
> Signed-off-by: David Daney<david.daney@cavium.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
> ---
>   drivers/staging/octeon/ethernet-mdio.c |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/octeon/ethernet-mdio.c b/drivers/staging/octeon/ethernet-mdio.c
> index 63800ba..e31949c 100644
> --- a/drivers/staging/octeon/ethernet-mdio.c
> +++ b/drivers/staging/octeon/ethernet-mdio.c
> @@ -164,9 +164,9 @@ int cvm_oct_phy_setup_device(struct net_device *dev)
>
>   	int phy_addr = cvmx_helper_board_get_mii_address(priv->port);
>   	if (phy_addr != -1) {
> -		char phy_id[20];
> +		char phy_id[MII_BUS_ID_SIZE + 3];
>
> -		snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, "0", phy_addr);
> +		snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, "mdio-octeon-0", phy_addr);
>
>   		priv->phydev = phy_connect(dev, phy_id, cvm_oct_adjust_link, 0,
>   					PHY_INTERFACE_MODE_GMII);

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging/octeon: Fix PHY binding in octeon-ethernet driver.
  2012-02-24  9:29 ` Florian Fainelli
@ 2012-02-24 17:21   ` David Daney
  0 siblings, 0 replies; 4+ messages in thread
From: David Daney @ 2012-02-24 17:21 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Florian Fainelli, David Daney, linux-mips, devel

On 02/24/2012 01:29 AM, Florian Fainelli wrote:
> Le 02/23/12 20:19, David Daney a écrit :
>> From: David Daney<david.daney@cavium.com>
>>
>> Commit d6c25be (mdio-octeon: use an unique MDIO bus name.) changed the
>> names used to refer to MDIO buses. The ethernet driver must be
>> changed to match, so that the PHY drivers can be attached.
>>
>> Cc: Florian Fainelli<florian@openwrt.org>
>> Signed-off-by: David Daney<david.daney@cavium.com>
> Acked-by: Florian Fainelli <florian@openwrt.org>


I would also add (and should have in the original post), that the commit 
causing the regression was merged for 3.3.  So if possible, it would be 
nice to get this in before the final 3.3.

Thanks,
David Daney

>> ---
>> drivers/staging/octeon/ethernet-mdio.c | 4 ++--
>> 1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/staging/octeon/ethernet-mdio.c
>> b/drivers/staging/octeon/ethernet-mdio.c
>> index 63800ba..e31949c 100644
>> --- a/drivers/staging/octeon/ethernet-mdio.c
>> +++ b/drivers/staging/octeon/ethernet-mdio.c
>> @@ -164,9 +164,9 @@ int cvm_oct_phy_setup_device(struct net_device *dev)
>>
>> int phy_addr = cvmx_helper_board_get_mii_address(priv->port);
>> if (phy_addr != -1) {
>> - char phy_id[20];
>> + char phy_id[MII_BUS_ID_SIZE + 3];
>>
>> - snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, "0", phy_addr);
>> + snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, "mdio-octeon-0",
>> phy_addr);
>>
>> priv->phydev = phy_connect(dev, phy_id, cvm_oct_adjust_link, 0,
>> PHY_INTERFACE_MODE_GMII);
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging/octeon: Fix PHY binding in octeon-ethernet driver.
  2012-02-23 19:19 [PATCH] staging/octeon: Fix PHY binding in octeon-ethernet driver David Daney
  2012-02-24  9:29 ` Florian Fainelli
@ 2012-03-06 20:13 ` Ralf Baechle
  1 sibling, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2012-03-06 20:13 UTC (permalink / raw)
  To: David Daney
  Cc: Greg Kroah-Hartman, linux-mips, devel, David Daney,
	Florian Fainelli

On Thu, Feb 23, 2012 at 11:19:31AM -0800, David Daney wrote:
> Date:   Thu, 23 Feb 2012 11:19:31 -0800
> From: David Daney <ddaney.cavm@gmail.com>
> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: linux-mips@linux-mips.org, devel@driverdev.osuosl.org, David Daney
>  <david.daney@cavium.com>, Florian Fainelli <florian@openwrt.org>
> Subject: [PATCH] staging/octeon: Fix PHY binding in octeon-ethernet driver.
> 
> From: David Daney <david.daney@cavium.com>
> 
> Commit d6c25be (mdio-octeon: use an unique MDIO bus name.) changed the
> names used to refer to MDIO buses.  The ethernet driver must be
> changed to match, so that the PHY drivers can be attached.

No objections heared, so applied.

  Ralf

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-06 20:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-23 19:19 [PATCH] staging/octeon: Fix PHY binding in octeon-ethernet driver David Daney
2012-02-24  9:29 ` Florian Fainelli
2012-02-24 17:21   ` David Daney
2012-03-06 20:13 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.