Yani Ioannou wrote:

>Hi Corey,
>
>On 1/17/06, Corey Minyard <[EMAIL PROTECTED]> wrote:
>  
>
>>I spent a little time looking at this.  I don't completely understand
>>the sysfs structure yet, but it looks to have all the needed data.  I
>>have a few comments:
>>    
>>
>
>Thanks for the feedback, attached is a patch against the latest git
>that should address all your concerns except...
>  
>
Cool, I'll try to look at it this week.

>  
>
>>* How much of the class code could be moved to ipmi_msghandler?  Getting
>>the GUID, registering the BMC, etc.  There are two other interfaces
>>pending to come in, and it would be nice if this code could all be
>>general and not have to be added to each driver.
>>    
>>
>
>If you could point me to the patches I might have a better idea, if
>they use the smi_info struct (or something very similar) then it
>should be trivial to move out all of those, however if they are very
>different it could be tricky to pull out the try_get_devid/guid
>functions. I'm not sure if it would be worth pulling out the bmc
>registration part since its not very large, and has many interface
>specific initializations (driver struct, version, etc).
>  
>
The first patch for the smic interface is on openipmi.sf.net, then go to
the sourceforge page and downloads for 2.6.  Since it requires some I2C
changes that are rather large, it's not in yet.  I'm still prodding to
get the other one (a serial interface) out from the author.

But they both use the smi_info struct and sit beneath the message
handler.  At this point (smi_info interface), all the interfaces should
work exactly the same and the GUID/registration should work the same on
all interface.

I realize the code is not big, but it's generally better to put
something in as generic a place as possible.  Otherwise you end up with
exactly the same code (with possibly differrent) in three different places.

>The other question is are these new interfaces local? I'm not sure
>that it makes sense having remote interfaces/bmcs represented in
>sysfs.
>  
>
They are local.  One is an interface over I2C (SMIC) and the other is a
set of non-standard serial port interfaces.

Thanks for your help.

-Corey



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to