|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XenPPC] [Patch] Find serial device and platform type
I'll address only some of the stuff which I think might survive my next revision (and is not a nit.) It's too early to nit pick, although a good discussion on style would save time later on the nits. Jimi Xenidis wrote: Probably so, but would not this be a good time to rename this struct (ns16550) to some serial_defaults or similar?comments: On Apr 24, 2006, at 4:22 PM, Maria Butrico wrote:This patch is intended as a preliminary request for comment, status update and a good place to keep it, in case I destroy my tree. It's work in progress.Usually people prepend "[rfc]" to the subject. Thanks for being the community tester on this :)Hollis made a good point about the array with strings and init function pointers. tho I did not want anyone to spend a lot of time on this code, I think what use here will last a looong time. Yes the caller need to check for failure, but there was code in boot_of that goes something like string[0] = '\0' of-getprotp(string)the string is set by get prop unless the call fails. This simplify the caller. Of course one must take care of empty string returned as well (not in the patch you see, but the in next one if I remember), but again I prefer to simply the caller. +static void search_by_property_value(int p, const char *prop_name, + const char *prop_value)Not sure what you plan on doing with this function...+/* + * Returns the value of the property '/#size-cells' + */ +int __init boot_of_get_sizecells_prop()Sadly, it does not work which way.The size cell of a property is either defined by your package or an ancestral package, not necessarily in the root. it gets even trickier for the "regs" property where an ancestor's definition over-rides the package's Is this a statement, a suggestion or a problem?
_______________________________________________ Xen-ppc-devel mailing list Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ppc-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |