linux-mips
[Top] [All Lists]

Re: [PATCH] staging/octeon: Fix PHY binding in octeon-ethernet driver.

To: David Daney <ddaney.cavm@gmail.com>
Subject: Re: [PATCH] staging/octeon: Fix PHY binding in octeon-ethernet driver.
From: Florian Fainelli <florian@openwrt.org>
Date: Fri, 24 Feb 2012 10:29:33 +0100
Authentication-results: mr.google.com; spf=pass (google.com: domain of f.fainelli@gmail.com designates 10.204.149.147 as permitted sender) smtp.mail=f.fainelli@gmail.com; dkim=pass header.i=f.fainelli@gmail.com
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-mips@linux-mips.org, devel@driverdev.osuosl.org, David Daney <david.daney@cavium.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=MYC//gsSD5oSZl9SlBNK5sxc0DL3iqXGDaqao88MkT0=; b=lJ+17O88iRFsAiMWlPeeUjdxqmcosG8o2XweR3hCwnQ1aMXqlRBAoiF7GvzgfsUGzo q4bcpoa7xgoG2wFpSkCCTReFx8qLEDwru4HgF6klxOGLmIqkIuRwNAYeoi7tuuHdExUP fGI/9zWJ/tOms+2ZEUyHwdLEtnIJ9ZkJdrbHs=
In-reply-to: <1330024771-25396-1-git-send-email-ddaney.cavm@gmail.com>
Organization: OpenWrt
References: <1330024771-25396-1-git-send-email-ddaney.cavm@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
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);


<Prev in Thread] Current Thread [Next in Thread>