[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0810111057030.4425@axis700.grange>
Date: Sat, 11 Oct 2008 11:00:40 +0200 (CEST)
From: Guennadi Liakhovetski <lg@...x.de>
To: Peter Korsgaard <jacmet@...site.dk>
cc: Steve.Glendinning@...c.com, netdev@...r.kernel.org,
Ian.Saturley@...c.com
Subject: Re: [PATCH, RFC] Extend smc911x to support LAN921x chips
On Sat, 11 Oct 2008, Peter Korsgaard wrote:
> >>>>> "Guennadi" == Guennadi Liakhovetski <lg@...x.de> writes:
>
> It looks good, but you should definately split out the arm and cleanup
> stuff from the new IDs.
You mean remove the new IDs? Why?
> Guennadi> @@ -722,6 +724,9 @@ static void smc911x_phy_detect(struct net_device *dev)
> Guennadi> break;
> Guennadi> }
> Guennadi> }
> Guennadi> + if (phyaddr < 32)
> Guennadi> + /* Found an external PHY */
> Guennadi> + break;
>
> What's this for? Isn't that handled just above?
I think, there's a bug in the code there. The break above terminates the
loop, yes, but then it falls through in the switch statement to the
default case and overwrites the just found PHY.
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@...x.de
--
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