[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0810112223160.4965@axis700.grange>
Date: Sat, 11 Oct 2008 22:30:57 +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:
>
> Hi,
>
> Guennadi> 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.
>
> Guennadi> You mean remove the new IDs? Why?
>
> No, just have them in seperate patches - They are independent of each
> other, so no need to put in the same patch.
No, they are not independent. smc91x.c is comparing the ID read from the
hardware with the table, which someone strangely enough for me put in the
header. So, even if one were to split them, you would have to make it a
patch series and make the patch for .c depend on the one for .h adding
IDs. So, no, these two belong into one patch.
> >> What's this for? Isn't that handled just above?
>
> Guennadi> I think, there's a bug in the code there. The break above
> Guennadi> terminates the loop, yes, but then it falls through in the
> Guennadi> switch statement to the default case and overwrites the
> Guennadi> just found PHY.
>
> Ahh, the good old break-only-escapes-the-innermost-scope. That's a
> good fix, but please send it seperately from the patch adding the new
> IDs.
Ok... it is a simple enough fix, so, one could put them both in one patch
and be done with them, just explaining both in the patch description, but
ok, I can make it a separate patch too...
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