Fujitsu Siemens sensor HERMES

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Jean Delvare <khali at linux-fr.org> [2004-01-11 21:14:40 +0100]:
> > Well, as stated above, you have to write 4 to the fan status register,
> > which will in turn clear bit 2 of the fan status register. If no more
> > fan status registers indicate a fan failure, the 'Global fan fault
> > event' will clear too (simple OR-logic, as you mentioned above).
> 
> Writing a 1 to the bit so that it is reset is a strange idea, isn't it?
> ;)

Just in case you were not entirely joking...

This is a common idiom for h/w status registers:  write '1' to reset
and write '0' is ignored.  This allows you to clear a single status
bit without needing a read-modify-write, i.e. you'll not accidentally
clear a status bit that was set just before your write.

For sticky-status bitfields in sysfs, this idiom is still appropriate.

Regards,

-- 
Mark M. Hoffman
mhoffman at lightlink.com



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux