[PATCH 2.6.20] Changed gianfar device tree definition to make it more flexible
Kumar Gala
galak at kernel.crashing.org
Wed Dec 13 07:52:23 EST 2006
On Dec 8, 2006, at 5:20 PM, Andy Fleming wrote:
> The old gianfar node definition used a concept of "models" to
> determine the feature bits and interrupt settings to pass to the
> driver. This won't scale well when the hardware designers come
> up with new and (hopefully) interesting variants of the eTSEC.
> So one goal of this patch is to prepare for that eventuality by
> listing the features, rather than inferring them.
>
> And then, incidentally, some of the code was cleaned up so that
> initialization functions will skip devices which encounter
> errors, rather than bailing. The CPM devices were not modified
> in this way, as they are more complex.
>
> Finally, all the dts files with gianfar nodes were updated to use
> the new feature bits and the new interface field, and the various
> MAC address conventions were all accommodated by preserving the
> currently-used field, while adding local-mac-address, which will
> be used in the future (once u-boot changes have been made). The
> parsing code was also changed so that it will find a mac address
> that has actually been set to something, rather than defaulting
> to the first, possibly zeroed, mac address.
Nack, in its current form. You are breaking people who can't modify
their dts/dtb. I'd suggest removing model all together since that is
the effect you want to have and make the parsing code such that if
model is set it does the old style, and if its not you do the new style.
Also, how does these feature bits effect arch/ppc platform support?
- k
More information about the Linuxppc-dev
mailing list