fix for sysctl of DS1775 on MDD

Justin Hibbits chmeeedalf at gmail.com
Sat Jan 15 13:32:26 UTC 2011


On Jan 15, 2011, at 3:20 AM, Andreas Tobler wrote:

> Hi Justin,
>
> On 14.01.11 04:36, Justin Hibbits wrote:
>> Just recompiled my kernel with the ds1775 sensor for my MDD, and
>> noticed the sensor name sysctl is blank (shows up as 'dev.ds1775.0.',
>> no sensor name), because there is no hwsensor-location property for
>> the MDD sensor.  Attached is a patch that adds a generic 'cpu' name.
>> Feel free to adjust it as you see fit (checking OF_getprop return
>> instead, etc).
>
> Thanks. I put it in my testing queue.
>
> Do you have a printout from sysctl dev.ds1775?
>
> Also, I'd like to see a ofwdump -pr from the node where the ds1775  
> is attached. Might be that we have another indicator than hwsensor- 
> location which we could use?
>
> Gruss,
> Andreas

Ask and ye shall receive.  The outputs are attached.  I have both the  
'before' and 'after' sysctl outputs for your reference.  I looked at  
the ofwdump output when making the patch, and nothing obvious jumped  
out at me.  I chose 'cpu' because I read online that the ds1775 is on  
the CPU card for the G4 MDD.  I don't know if there's any other that  
has the same problem, so a default to 'cpu' seemed sufficient to me.

- Justin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dev.ds1775.output
Type: application/octet-stream
Size: 209 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ppc/attachments/20110115/a00ab777/dev.ds1775.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dev.ds1775-after.out
Type: application/octet-stream
Size: 212 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ppc/attachments/20110115/a00ab777/dev.ds1775-after.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: temp-monitor.out
Type: application/octet-stream
Size: 244 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ppc/attachments/20110115/a00ab777/temp-monitor.obj


More information about the freebsd-ppc mailing list