We will port w83792d.c to linux-2.6

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

 



Hi Jean

This is chunhao, I'm implementing the function about Winbond Smart Fan,
I want to discuss with you about it. :-)

1 *
> I just took a look at the datasheet. It happens that Smart Fan II fits
> rather good in the auto-fan-speed-control scheme currently defined in
> the 2.6 kernel, so it shouldn't be a problem. The only difference is
> that for each trip point, we define a high temperature limit and an
> hysteresis temperature, while the W83792D chip defines a medium limit
> with a tolerance. It's just a matter of arithmetics to convert from
one
> to the other.

According to the 792 DataSheet "7.7.4 Smart Fan II control"(page 26)
Which sys interface should I use?
pwm[1-4]_auto_point[1-4]_temp or temp[1-4]_auto_point[1-4]_pwm ?
Is there any chip drivers which I can refer to?


2 *
> Smart Fan I, aka cruise mode, doesn't quite fit in the model, although
> it could be seen as an approximate subset of Smart Fan II. I see
little
> reason to implement Smart Fan I when Smart Fan II is so obviously
> better, so I wouldn't implement it at all.

Then I have to discard the Winbond Smart Fan I function in linux-2.6
driver.
But I will keep it for 792 driver for linux-2.4.


3 *
> The only thing I think is missing the the sysfs interface for the
W83792D
> is the possibility to switch from PWM to DC and back. I would propose
> new files named "pwmN_mode", that would have possible values "PWM"
> and "DC". This however needs to be discussed, and approval by the
> majority of i2c/lm_sensors devs is required (this is obviously
> sujective).

Do you have any progress about it? Can I use the interface
"pwm[1-3]_mode"
in my 792 driver for linux-2.6?


4 *
Quoting /usr/src/linux-2.6.10/Documentation/i2c/sysfs-interface:
pwm[1-3]_enable
                Switch PWM on and off.
                Not always present even if fan*_pwm is.
                0 to turn off
                1 to turn on in manual mode
                2 to turn on in automatic mode
                Read/Write

But in 792 data sheet, I do not find and register to switch PWM off,
There are three options in 792 data sheet page54( CR[0x84h] ):
  Manual PWM/DC Control Mode
  Thermal Cruise mode
  Smart FAN II mode
Since I have to discard "Thermal Cruise mode ", I'm going to implement
pwm[1-3]_enable like this:
  1 to turn on in manual mode
  2 to turn on in automatic mode
Do you have any disagreement or suggestion about it?


5 *
It seems that there is no sys interface for Chassis(Case Open), then
I will have to discard the function for chassis intrusion detection
under linux-2.6?


Thanks
Best Regards

Chunhao
2005-03-08


===========================================================================================The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original author of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such person, please kindly reply the sender indicating accordingly and delete all copies of it from your computer and network server immediately. We thank you for your cooperation. It is advisable that any unauthorized use of confidential information of Winbond is strictly prohibited; and any information in this email that does not relate to the official business of Winbond shall be deemed as neither given nor endorsed by Winbond.===========================================================================================If your computer is unable to decode Chinese font, please ignore the following message. They essentially repea!
 t the  English statement above.???H???????t?????q?l???]???????K?????T, ?????v???o?H?H???w?????H?H???\????. ?????z???D?Q???w?????H?H???]???????]?b???g???v?????????U???????H??, ???z?i?????o?H?H?????Y?N?H???q?q???P???????A???????H????. ?????z???X?@, ?????????P??. ?S??????, ???????g???v?????????????q?l?????K???T???????O?Q?Y???T????. ?H???P?????q?l???~?L???????e,???o?????????q?l?????????N??.



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

  Powered by Linux