[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20071101160709.7e7c0181@weaponx.rchland.ibm.com>
Date: Thu, 1 Nov 2007 16:07:09 -0500
From: Josh Boyer <jwboyer@...ux.vnet.ibm.com>
To: benh@...nel.crashing.org
Cc: Stefan Roese <sr@...x.de>, netdev@...r.kernel.org,
linuxppc-dev@...abs.org
Subject: Re: [PATCH] net: Add 405EX support to new EMAC driver
On Fri, 02 Nov 2007 07:37:01 +1100
Benjamin Herrenschmidt <benh@...nel.crashing.org> wrote:
>
> On Thu, 2007-11-01 at 15:54 +0100, Stefan Roese wrote:
> > This patch adds support for the 405EX to the new EMAC driver.
> >
> > Tested on AMCC Kilauea.
>
> .../...
>
> > diff --git a/drivers/net/ibm_newemac/rgmii.c b/drivers/net/ibm_newemac/rgmii.c
> > index de41695..e393f68 100644
> > --- a/drivers/net/ibm_newemac/rgmii.c
> > +++ b/drivers/net/ibm_newemac/rgmii.c
> > @@ -140,9 +140,6 @@ void rgmii_get_mdio(struct of_device *ofdev, int input)
> >
> > RGMII_DBG2(dev, "get_mdio(%d)" NL, input);
> >
> > - if (dev->type != RGMII_AXON)
> > - return;
> > -
> > mutex_lock(&dev->lock);
>
> That will break 440GX boards that need to use the RGMII for data and the
> ZMII for MDIO.
>
> You may want to change the name RGMII_AXON something like RGMII_HAS_MDIO
> instead and set that for 405EX as well instead.
And perhaps adding a comment about that since the meaning of that code
isn't very obvious. That way people that aren't the original author
of the driver don't get confused again.
josh
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists