Skip to contentSkip to conversation

Winbond W83792D driver

DISCUSSION Mark Studebaker 4 participants 23 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

thanks.
I did miss your 3/16 mail.
I changed the subject so we can start a new thread :)
I have seen some of your mails blocked on the mailing list but received at my address; you should _not_ use html mail or it will get blocked.

I tested and checked-in your 4-line fix.
In the future please provide a real patch generated by 'diff -u'.

I reviewed the datasheet about comparator/interrupt modes. Unfortunately, only the temps support comparator mode; voltages and fans support only interrupt mode (datasheet sections 7.7.5-7.7.7)
Please feed back our disappointment to your
chip designers. I've never seen a hardware sensor that didn't support comparator mode. Comparator mode is our driver standard as it is the most reliable for the reasons I've previously mentioned. Without comparator mode, we really need an interrupt-driven driver or the additional logic you've put into 'sensors'.

My recommendation is that we set the temperature sensors to comparator mode. The code at line 729 should put bits 7 and 6 of reg. 0x4C to 00 (comparator mode), which is what the comment says, but it sets it to 01 (2 times interrupt mode). This is probably left over from whatever driver you copied from.
So my recommendation is to set the bits to 00.

mds

Quoted 98 lines · [email protected] wrote:

Dear MDS, Jean

Did you ever receive my mail below sent on 2005-03-16 ? I do not get any response from you, I checked the sent mail just now, find that I sent
it by "HTML" format, maybe it was blocked by your spam filter.

I checked the lm_sensors CVS just now, find that the codes(please refer to the mail below) to fix the bug of negative fan measured value has not been added into w83792d.c.
MDS, would you please fix it for me? Because I do not have a CVS account.
You may test it first before you commit it into CVS. I find that the lm_sensors-2.9.1 will be released soon, I hope it will NOT contain this negative fan measured value bug. :-)

As to the document doc\chips\w83792d, it still has NOT been finished, because I'm busy these days, I will send it to you as soon as possible when I finish it. Very sorry for the delay.

As to the discussion on whether use "hardware-level" alarm mechanism or my "software-level" one, I want to keep my original codes, because after a compare and test to these two methods, I think my method is better(please refer to my related mails in this thread). If most of the users disagree about it in the future, we may fix it later. :-)

Thanks

Best Regards

Chunhao
2005-03-26

---------------- Sent on 2005-03-16 --------------------------------- Hi Jean, MDS

Quoted 1 line

Sounds like an "interrupt mode" to me (as opposed to "comparator

mode").

Quoted 8 lines

The alarm bits raise on state change and wear off when read. In comparator mode you would obtain what you'd expect (alarm bit always reflecting the result of the comparison).

If the W83792D can be reprogramed in comparator mode AND this does NOT affect any physical output, then just do that. If the alarm bits DO affect an output, then you should not change the mode, which means

that

Quoted 1 line

you cannot use hardware alarms if the chip is in interrupt mode.

Hm... very sorry that I do not catch what you said very well. How to reprogramed 792 driver in "comparator mode" instead of "interrupt mode"? Can we say that the method in submitted 792 driver is in "comparator mode"?
Then I can keep my original codes?

Quoted 3 lines

Get a CVS snapshot here:
http://secure.netroedge.com/~lm78/archive/lm_sensors-daily.tar.gz
And provide a patch against that.

If I need not fix the "point 1" MDS provided, The codes to fix "point 3" are
very few.

MDS, Would you please just add 4 lines into the "do...while (0)" loop of function w83792d_fan()? Just like this:

  1013     if (((data->fan_div[nr])>=0x07 &&
  1014      (data->fan[nr])=0xff) ||
  1015         ((data->fan_div[nr])<=0 &&
  1016      (data->fan[nr])<0x78)) {
  1017      results[1] = 0;
  1018      break;
  1019     } else if ((data->fan_div[nr])<0x07 &&
  1020       (data->fan[nr])=0xff) {
  1021      (data->fan_div[nr])++;
      results[1] = FAN_FROM_REG(data->fan[nr],  <--added by chunhao
      DIV_FROM_REG(data->fan_div[nr]));    <--added by chunhao
  1022     } else if ((data->fan_div[nr])>0 &&
  1023        (data->fan[nr])<0x78) {
  1024      (data->fan_div[nr])--;
        results[1] = FAN_FROM_REG(data->fan[nr],  <--added by chunhao
      DIV_FROM_REG(data->fan_div[nr]));    <--added by chunhao
  1025     }

The minus fan measured value then will disappear from my system, would you please test it on your system? If it works too, please commit it for me.

#1 lore raw

Dear MDS

Quoted 1 line

I have seen some of your mails blocked on the mailing list but

received

Quoted 1 line

at my address; you should _not_ use html mail or it will get blocked.

Yes, Jean also told me about it at 2004-11-18, after that I sent all most all
my posts by "Plain Text" format, except I made a mistake by accident. :-(

Quoted 2 lines

I tested and checked-in your 4-line fix.
In the future please provide a real patch generated by 'diff -u'.

I can see the changes in the lm_sensors CVS now, thanks. I did not send you a patch this time because the modification is too little,
I will send you patch next time when I modify the driver.

Quoted 2 lines

I reviewed the datasheet about comparator/interrupt modes. Unfortunately, only the temps support comparator mode; voltages and

fans

Quoted 5 lines

support only interrupt mode (datasheet sections 7.7.5-7.7.7) Please feed back our disappointment to your
chip designers. I've never seen a hardware sensor that didn't support comparator mode.
Comparator mode is our driver standard as it is the most reliable for

the

Quoted 1 line

reasons I've previously mentioned. Without comparator mode, we really

need

Quoted 1 line

an interrupt-driven driver or the additional logic you've put into

'sensors'.

OK, I will discuss with our hardware designer about it, then give you the
answer.

Quoted 1 line

My recommendation is that we set the temperature sensors to comparator

mode.

Quoted 1 line

The code at line 729 should put bits 7 and 6 of reg. 0x4C to 00

(comparator

Quoted 2 lines

mode),
which is what the comment says, but it sets it to 01 (2 times

interrupt mode).

Quoted 2 lines

This is probably left over from whatever driver you copied from. So my recommendation is to set the bits to 00.

Hmm, I will consider your recommendation carefully, then send you the patch
if I modified the driver. I will send you mails again when I want to discuss
with you about it. :-)

Thanks
Best Regards
Chunhao

==============================================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&nbsp; English statement above.本信件內所含華邦電子的財產性機密性資訊, 僅授權原發信人指定之收信人取閱之用. 假使您並非被指定之收信人或因任何原因在未經授權的情形之下收到本信件, 請您告知原發信人並立即將信件從電腦與網路伺服器中予以消除. 對於您的合作, 我們先此致謝. 特此提醒, 任何未經授權擅自使用華邦電子的機密資訊的行為是被嚴格禁止的. 信件與華邦電子營業無關之內容,不得視為華邦電子之立場或意見.

#2 lore raw
In reply to Mark Studebaker

Dear MDS

I fixed a bug when displaying negative temperatures and setting temperature limits into negative value.

Please use the attached patch to update 792 driver for linux-2.4 for me.

Thanks
Best Regards

Chunhao

Quoted 33 lines

-----Original Message-----
From: Mark Studebaker [mailto:[email protected]]
Sent: 2005爛3堎27゜ 09:46
To: PI14 HUANG0
Cc: LM Sensors
Subject: Winbond W83792D driver

thanks.
I did miss your 3/16 mail.
I changed the subject so we can start a new thread :)
I have seen some of your mails blocked on the mailing list but received at my address; you should _not_ use html mail or it will get blocked.

I tested and checked-in your 4-line fix.
In the future please provide a real patch generated by 'diff -u'.

I reviewed the datasheet about comparator/interrupt modes. Unfortunately, only the temps support comparator mode; voltages and fans support only interrupt mode (datasheet sections 7.7.5-7.7.7) Please feed back our disappointment to your
chip designers. I've never seen a hardware sensor that didn't support comparator mode.
Comparator mode is our driver standard as it is the most reliable for the reasons I've previously mentioned. Without comparator mode, we really need an interrupt-driven driver or the additional logic you've put into 'sensors'.

My recommendation is that we set the temperature sensors to comparator mode. The code at line 729 should put bits 7 and 6 of reg. 0x4C to 00 (comparator mode),
which is what the comment says, but it sets it to 01 (2 times interrupt mode). This is probably left over from whatever driver you copied from. So my recommendation is to set the bits to 00.

Quoted 104 lines

mds

Quoted 98 lines · [email protected] wrote:

Dear MDS, Jean

Did you ever receive my mail below sent on 2005-03-16 ? I do not get any response from you, I checked the sent mail just now, find that I sent
it by "HTML" format, maybe it was blocked by your spam filter.

I checked the lm_sensors CVS just now, find that the codes(please refer to the mail below) to fix the bug of negative fan measured value has not been added into w83792d.c.
MDS, would you please fix it for me? Because I do not have a CVS account.
You may test it first before you commit it into CVS. I find that the lm_sensors-2.9.1 will be released soon, I hope it will NOT contain this negative fan measured value bug. :-)

As to the document doc\chips\w83792d, it still has NOT been finished, because I'm busy these days, I will send it to you as soon as possible when I finish it. Very sorry for the delay.

As to the discussion on whether use "hardware-level" alarm mechanism or my "software-level" one, I want to keep my original codes, because after a compare and test to these two methods, I think my method is better(please refer to my related mails in this thread). If most of the users disagree about it in the future, we may fix it later. :-)

Thanks

Best Regards

Chunhao
2005-03-26

---------------- Sent on 2005-03-16 --------------------------------- Hi Jean, MDS

Quoted 1 line

Sounds like an "interrupt mode" to me (as opposed to "comparator

mode").

Quoted 8 lines

The alarm bits raise on state change and wear off when read. In comparator mode you would obtain what you'd expect (alarm bit always reflecting the result of the comparison).

If the W83792D can be reprogramed in comparator mode AND this does NOT affect any physical output, then just do that. If the alarm bits DO affect an output, then you should not change the mode, which means

that

Quoted 1 line

you cannot use hardware alarms if the chip is in interrupt mode.

Hm... very sorry that I do not catch what you said very well. How to reprogramed 792 driver in "comparator mode" instead of "interrupt mode"? Can we say that the method in submitted 792 driver is in "comparator mode"?
Then I can keep my original codes?

Quoted 3 lines

Get a CVS snapshot here:
http://secure.netroedge.com/~lm78/archive/lm_sensors-daily.tar.gz
And provide a patch against that.

If I need not fix the "point 1" MDS provided, The codes to fix "point 3" are
very few.

MDS, Would you please just add 4 lines into the "do...while (0)" loop of function w83792d_fan()? Just like this:

  1013     if (((data->fan_div[nr])>=0x07 &&
  1014      (data->fan[nr])=0xff) ||
  1015         ((data->fan_div[nr])<=0 &&
  1016      (data->fan[nr])<0x78)) {
  1017      results[1] = 0;
  1018      break;
  1019     } else if ((data->fan_div[nr])<0x07 &&
  1020       (data->fan[nr])=0xff) {
  1021      (data->fan_div[nr])++;
      results[1] = FAN_FROM_REG(data->fan[nr],  <--added by chunhao
      DIV_FROM_REG(data->fan_div[nr]));    <--added by chunhao
  1022     } else if ((data->fan_div[nr])>0 &&
  1023        (data->fan[nr])<0x78) {
  1024      (data->fan_div[nr])--;
        results[1] = FAN_FROM_REG(data->fan[nr],  <--added by chunhao
      DIV_FROM_REG(data->fan_div[nr]));    <--added by chunhao
  1025     }

The minus fan measured value then will disappear from my system, would you please test it on your system? If it works too, please commit it for me.

==============================================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 repeat the&nbsp; English statement above.本信件內所含華邦電子的財產性機密性資訊, 僅授權原發信人指定之收信人取閱之用. 假使您並非被指定之收信人或因任何原因在未經授權的情形之下收到本信件, 請您告知原發信人並立即將信件從電腦與網路伺服器中予以消除. 對於您的合作, 我們先此致謝. 特此提醒, 任何未經授權擅自使用華邦電子的機密資訊的行為是被嚴格禁止的. 信件與華邦電子營業無關之內容,不得視為華邦電子之立場或意見. -------------- next part --------------
A non-text attachment was scrubbed...
Name: w83792d_driver-1.0.2.patch
Type: application/octet-stream
Size: 2416 bytes
Desc: w83792d_driver-1.0.2.patch
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050328/37a1b11e/w83792d_driver-1.0.2.obj

#3 lore raw
In reply to Mark Studebaker
Quoted 5 lines · [email protected] wrote:

Dear MDS

I fixed a bug when displaying negative temperatures and setting temperature limits into negative value.

Quoted 11 lines

Please use the attached patch to update 792 driver for linux-2.4 for me.

Thanks
Best Regards

Chunhao

checked in. thanks for sending it in patch form. perfect. mds

#4 lore raw
In reply to Mark Studebaker
Quoted 20 lines · [email protected] wrote:

Dear MDS

Quoted 8 lines
Quoted 5 lines

I fixed a bug when displaying negative temperatures and setting temperature limits into negative value.

Please use the attached patch to update 792 driver for linux-2.4 for me.

checked in. thanks for sending it in patch form. perfect. mds

Are you sure you that have check into the lm_sensors CVS? But I can NOT find the modification neither in:
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/kernel/chips/w83792d.c
nor
http://www2.lm-sensors.nu/~lm78/cvs/browse.cgi/lm_sensors2/kernel/chips/
w83792d.c

Quoted 8 lines

Btw, what's the difference between the above two versions? Besides that latter contains line numbers. Which one should I use as the newest version
to download?

Thanks
Best Regards
Chunhao

haha I thought I had checked it in but I hadn't. Sorry.

the only difference in the two links is one has line numbers.

have a great tuesday :)

#5 lore raw
In reply to Mark Studebaker

Dear MDS

Quoted 8 lines
Quoted 5 lines

I fixed a bug when displaying negative temperatures and setting temperature limits into negative value.

Please use the attached patch to update 792 driver for linux-2.4 for me.

checked in. thanks for sending it in patch form. perfect. mds

Are you sure you that have check into the lm_sensors CVS? But I can NOT find the modification neither in:
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/kernel/chips/w83792d.c
nor
http://www2.lm-sensors.nu/~lm78/cvs/browse.cgi/lm_sensors2/kernel/chips/
w83792d.c

Btw, what's the difference between the above two versions? Besides that latter contains line numbers. Which one should I use as the newest version
to download?

Thanks
Best Regards
Chunhao

==============================================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&nbsp; English statement above.本信件內所含華邦電子的財產性機密性資訊, 僅授權原發信人指定之收信人取閱之用. 假使您並非被指定之收信人或因任何原因在未經授權的情形之下收到本信件, 請您告知原發信人並立即將信件從電腦與網路伺服器中予以消除. 對於您的合作, 我們先此致謝. 特此提醒, 任何未經授權擅自使用華邦電子的機密資訊的行為是被嚴格禁止的. 信件與華邦電子營業無關之內容,不得視為華邦電子之立場或意見.

#6 lore raw
In reply to Mark Studebaker

Dear MDS

Quoted 3 lines

haha I thought I had checked it in but I hadn't. Sorry. the only difference in the two links is one has line numbers. have a great tuesday :)

Yes, I can see it this time, Thanks. I don't like Tuesday very much, I like Friday more. :-)

Quoting MDS:

Quoted 1 line

Since I am familiar with the subclient registration, I will make

those

Quoted 1 line

changes in CVS.

My 792 driver for linux-2.6 need your help. My 792 driver works well before I add the subclient related codes. But after I add the subclient registration, it can NOT work now, the error message when I load 792 driver module are:

Unable to handle kernel paging request at virtual address 7be32e3a

printing eip:
c0158a1d
..... /* many error messages are omitted here */

And the 792 module can NOT be removed any more except I reboot the OS:
[root@ /usr/src/linux]# rmmod w83792d
ERROR: Module w83792d is in use

Would you please help me to check the subclient registration codes? since I'm not familiar with them. I added those codes by referring your codes in 792 driver for linux-2.4 and w83781d driver for linux-2.6.

The attachment w83792d_old.c is the version before I adding subclient Registration, you may compare them to find the modification.

Thanks
Best Regards
Chunhao

==============================================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 repeat the&nbsp; English statement above.本信件內所含華邦電子的財產性機密性資訊, 僅授權原發信人指定之收信人取閱之用. 假使您並非被指定之收信人或因任何原因在未經授權的情形之下收到本信件, 請您告知原發信人並立即將信件從電腦與網路伺服器中予以消除. 對於您的合作, 我們先此致謝. 特此提醒, 任何未經授權擅自使用華邦電子的機密資訊的行為是被嚴格禁止的. 信件與華邦電子營業無關之內容,不得視為華邦電子之立場或意見. -------------- next part --------------
A non-text attachment was scrubbed...
Name: w83792d_old.c
Type: application/octet-stream
Size: 49372 bytes
Desc: w83792d_old.c
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050329/d0db969c/w83792d_old.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: w83792d.c
Type: application/octet-stream
Size: 52036 bytes
Desc: w83792d.c
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050329/d0db969c/w83792d.obj

#7 lore raw
In reply to Mark Studebaker

Dear MDS

Quoted 2 lines

I reviewed the datasheet about comparator/interrupt modes. Unfortunately, only the temps support comparator mode; voltages and

fans

Quoted 5 lines

support only interrupt mode (datasheet sections 7.7.5-7.7.7) Please feed back our disappointment to your
chip designers. I've never seen a hardware sensor that didn't support comparator mode.
Comparator mode is our driver standard as it is the most reliable for

the

Quoted 1 line

reasons I've previously mentioned. Without comparator mode, we really

need

Quoted 1 line

an interrupt-driven driver or the additional logic you've put into

'sensors'.

The following is the answer to your question from our hardware designer CYChen16, I'd like to forward it to you. *********************** Quoting CY *********************************
We did not implement that because our customers did not require us to
add that function, and thank you very much for remind us this need. We will
discuss internally and evaluate to combine it into our future Hardware monitoring IC.
By the way, I checked ADI monitoring IC spec but I cannot find what
you
said comparator mode for Voltage or Fan. Maybe I miss its point, but could
you pass the datasheet you mentioned to me please?
If you have any comment, please kindly let me know.
*********************** End of the quoting **************************

If you still have some hardware-related question about the 792 chip, You may send mails to him(CYChen16) and CC us. If you have some hardware monitor datasheets with comparator mode for Voltage or Fan, please share them to us.

Thanks
Best Regards
Chunhao

Quoted 9 lines
Quoted 8 lines · [email protected] wrote:

Dear MDS, Jean

Did you ever receive my mail below sent on 2005-03-16 ? I do not get any response from you, I checked the sent mail just now, find that I sent
it by "HTML" format, maybe it was blocked by your spam filter.

I checked the lm_sensors CVS just now, find that the codes(please

refer

Quoted 1 line
Quoted 1 line

to the mail below) to fix the bug of negative fan measured value has

not

Quoted 5 lines
Quoted 5 lines

been added into w83792d.c.
MDS, would you please fix it for me? Because I do not have a CVS account.
You may test it first before you commit it into CVS. I find that the lm_sensors-2.9.1 will be released soon, I hope it will NOT contain

this

Quoted 3 lines
Quoted 3 lines

negative fan measured value bug. :-)

As to the document doc\chips\w83792d, it still has NOT been

finished,

Quoted 1 line
Quoted 1 line

because I'm busy these days, I will send it to you as soon as

possible

Quoted 4 lines
Quoted 4 lines

when I finish it. Very sorry for the delay.

As to the discussion on whether use "hardware-level" alarm mechanism or my "software-level" one, I want to keep my original codes,

because

Quoted 2 lines
Quoted 2 lines

after a compare and test to these two methods, I think my method is better(please refer to my related mails in this thread). If most of

the

Quoted 4 lines
Quoted 4 lines

users disagree about it in the future, we may fix it later. :-)

Thanks

Quoted 8 lines
Quoted 8 lines

Best Regards

Chunhao
2005-03-26

---------------- Sent on 2005-03-16

---------------------------------

Quoted 5 lines
Quoted 5 lines

Hi Jean, MDS

Quoted 1 line

Sounds like an "interrupt mode" to me (as opposed to "comparator

Quoted 8 lines
Quoted 8 lines

mode").

Quoted 6 lines

The alarm bits raise on state change and wear off when read. In comparator mode you would obtain what you'd expect (alarm bit always reflecting the result of the comparison).

If the W83792D can be reprogramed in comparator mode AND this does

NOT

Quoted 10 lines
Quoted 10 lines
Quoted 2 lines

affect any physical output, then just do that. If the alarm bits DO affect an output, then you should not change the mode, which means

that

Quoted 1 line

you cannot use hardware alarms if the chip is in interrupt mode.

Hm... very sorry that I do not catch what you said very well. How to reprogramed 792 driver in "comparator mode" instead of "interrupt

mode"?

Quoted 11 lines
Quoted 11 lines

Can we say that the method in submitted 792 driver is in "comparator mode"?
Then I can keep my original codes?

Quoted 3 lines

Get a CVS snapshot here:
http://secure.netroedge.com/~lm78/archive/lm_sensors-daily.tar.gz
And provide a patch against that.

If I need not fix the "point 1" MDS provided, The codes to fix

"point 3"

Quoted 4 lines
Quoted 4 lines

are
very few.

MDS, Would you please just add 4 lines into the "do...while (0)"

loop

Quoted 17 lines
Quoted 17 lines

of function w83792d_fan()? Just like this:

  1013     if (((data->fan_div[nr])>=0x07 &&
  1014      (data->fan[nr])=0xff) ||
  1015         ((data->fan_div[nr])<=0 &&
  1016      (data->fan[nr])<0x78)) {
  1017      results[1] = 0;
  1018      break;
  1019     } else if ((data->fan_div[nr])<0x07 &&
  1020       (data->fan[nr])=0xff) {
  1021      (data->fan_div[nr])++;
      results[1] = FAN_FROM_REG(data->fan[nr],  <--added by chunhao
      DIV_FROM_REG(data->fan_div[nr]));    <--added by chunhao
  1022     } else if ((data->fan_div[nr])>0 &&
  1023        (data->fan[nr])<0x78) {
  1024      (data->fan_div[nr])--;
        results[1] = FAN_FROM_REG(data->fan[nr],  <--added by

chunhao

Quoted 5 lines
Quoted 5 lines
      DIV_FROM_REG(data->fan_div[nr]));    <--added by chunhao

1025 }

The minus fan measured value then will disappear from my system, would you please test it on your system? If it works too, please

commit

Quoted 2 lines
Quoted 2 lines

it for me.

==============================================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&nbsp; English statement above.本信件內所含華邦電子的財產性機密性資訊, 僅授權原發信人指定之收信人取閱之用. 假使您並非被指定之收信人或因任何原因在未經授權的情形之下收到本信件, 請您告知原發信人並立即將信件從電腦與網路伺服器中予以消除. 對於您的合作, 我們先此致謝. 特此提醒, 任何未經授權擅自使用華邦電子的機密資訊的行為是被嚴格禁止的. 信件與華邦電子營業無關之內容,不得視為華邦電子之立場或意見.

#8 lore raw
In reply to Mark Studebaker

Hi Chunhao, hi Mark,

Quoted 7 lines

I'm sorry I'm not really familiar with how subclients were done in 2.6, or 2.6 drivers in general. I did a diff between your w83792d.c and w83781d.c in the 2.6.11 kernel. I saw some differences in xxx_detect_subclients(). These may or may not make a difference. Be sure you don't have any compile warnings about wrong pointer types. One of the other guys on the list may be able to help you better. good luck. mds

I've read Chunhao's code and found the problem:

/* memset(data->lm75[0], 0x00, sizeof (struct i2c_client)); */

This is commented out in your code. The memset is NOT optional, it is a requirement. The correct memset would be:
memset(data->lm75, 0x00, 2 * sizeof(struct i2c_client));
Add this and this will solve your problem (at least it did for me).

Additional notes:

1* You have put a comment:
struct i2c_client *lm75; /* for secondary I2C addresses */
/* array of 2 pointers to subclients */

This is *not* an array of 2 pointers to subclient, this is a pointer to an array of 2 subclients, which is quite different.

2* You include "lm75.h" but never use it. This header file contains temperature converters for LM75-like chips. This doesn't seem to be the case of the W83792D (according to your code at least).

3* Your code does *not* free the memory you allocated for subclients when unloading the driver. Please add the necessary code.

4* You do *not* need to do casts like this one:
((struct w83792d_data *) data)
It was needed in linux 2.4 but in 2.6 things are cleaner so the casts are not needed.

5* In the case we do *not* force the subclient addresses, the code is:

               val1 = w83792d_read_value(new_client,
                                         W83792D_REG_I2C_SUBADDR);
               data->lm75[0].addr = 0x48 + (val1 & 0x03);
               data->lm75[1].addr = 0x4c + ((val1 >> 4) & 0x03);

This is *not* correct IMHO, because it assumes that the first subclient is in 0x48-0x4b and the second it in 0x4c-0x4f. While this is true at power-up for the W83792D, the BIOS may have changed this. So we should not assume anything and simply do:

               data->lm75[0].addr = 0x48 + (val1 & 0x07);
               data->lm75[1].addr = 0x48 + ((val1 >> 4) & 0x07);

This should be fixed in the 2.4 driver as well.

6* The code does *not* properly handle the case where subclients are disabled. If subclients addresses are forced, they will be forcibly enabled (this is OK). If they are not forced, then we might register clients which do not exist (this is NOT OK).

[I'd have a side question, about the subclients in general... Why do we register subclients addresses at all? We could instead forcibly disable them. This is easier and just as efficient (disabling the addresses doesn't disable the temperature channels themselves).]

Thanks,

Signature · 1 line
Jean Delvare
#9 lore raw
In reply to Mark Studebaker

I'm sorry I'm not really familiar with how subclients were done in 2.6, or 2.6 drivers in general. I did a diff between your w83792d.c and w83781d.c in the 2.6.11 kernel.
I saw some differences in xxx_detect_subclients(). These may or may not make a difference. Be sure you don't have any compile warnings about wrong pointer types.
One of the other guys on the list may be able to help you better.
good luck.
mds

Quoted 45 lines · [email protected] wrote:

Dear MDS

Quoted 3 lines

haha I thought I had checked it in but I hadn't. Sorry. the only difference in the two links is one has line numbers. have a great tuesday :)

Yes, I can see it this time, Thanks. I don't like Tuesday very much, I like Friday more. :-)

Quoting MDS:

Quoted 1 line

Since I am familiar with the subclient registration, I will make

those

Quoted 1 line

changes in CVS.

My 792 driver for linux-2.6 need your help. My 792 driver works well before I add the subclient related codes. But after I add the subclient registration, it can NOT work now, the error message when I load 792 driver module are:

Unable to handle kernel paging request at virtual address 7be32e3a

printing eip:
c0158a1d
...... /* many error messages are omitted here */

And the 792 module can NOT be removed any more except I reboot the OS:
[root@ /usr/src/linux]# rmmod w83792d
ERROR: Module w83792d is in use

Would you please help me to check the subclient registration codes? since I'm not familiar with them. I added those codes by referring your codes in 792 driver for linux-2.4 and w83781d driver for linux-2.6.

The attachment w83792d_old.c is the version before I adding subclient Registration, you may compare them to find the modification.

Thanks
Best Regards
Chunhao

#10 lore raw
In reply to Mark Studebaker

the way I read the datasheet the first time (page 44) bits 2 and 6 were fixed at 0 and 1; that's why I coded it the way I did.
But reading again that doesn't look right, that's just the power-up default, they aren't fixed.
So your patch looks good.
thanks
mds

Quoted 18 lines · Jean Delvare

Hi Chunhao,

Quoted 5 lines
Quoted 1 line

This should be fixed in the 2.4 driver as well.

Would you please help to fix the bug in 792 driver for linux 2.4? Because you have the CVS account. I think I need NOT generate a patch this time.

I have a patch ready, it's sitting in my local CVS repository. I was only waiting for Mark to comment on this in case I had missed something. I'll commit it this evening.

After that, I think we are ready to release 2.9.1 :)

--
Jean Delvare

#11 lore raw
In reply to Mark Studebaker

Hi Chunhao,

Quoted 6 lines
Quoted 4 lines

6* The code does *not* properly handle the case where subclients are disabled. If subclients addresses are forced, they will be forcibly enabled (this is OK). If they are not forced, then we might register clients which do not exist (this is NOT OK).

Then how should I handle the case where subclients are disabled?

You should skip the call to i2c_attach_client for disabled subclients (they will most likely fail anyway).

Note that you will probably face a problem on the client unregistering front with your current approach of having a single malloc for both subclient structures. You might consider the approach used in the asb100 and w83781d drivers (in 2.6) instead: have a separate pointer for each subclient, and one malloc for each.

Quoted 8 lines
Quoted 4 lines

[I'd have a side question, about the subclients in general... Why do we register subclients addresses at all? We could instead forcibly disable them. This is easier and just as efficient (disabling the addresses doesn't disable the temperature channels themselves).]

Yes, maybe you are right, but I think your this question is to the other members of lm_sensors group, Am I right? You need a discussion with them, because I'm not very familiar with the subclients.

Absolutely, this should be discussed collectively. We are in no hurry. For your driver, just stick to what the other drivers do for now.

Thanks,
--
Jean Delvare

#12 lore raw
In reply to Mark Studebaker

Hi Jean, MDS

Thank you for your suggestion, I will modify the source with your help.

Quoted 4 lines

6* The code does *not* properly handle the case where subclients are disabled. If subclients addresses are forced, they will be forcibly enabled (this is OK). If they are not forced, then we might register clients which do not exist (this is NOT OK).

Then how should I handle the case where subclients are disabled?

Quoted 4 lines

[I'd have a side question, about the subclients in general... Why do we register subclients addresses at all? We could instead forcibly disable them. This is easier and just as efficient (disabling the addresses doesn't disable the temperature channels themselves).]

Yes, maybe you are right, but I think your this question is to the other members of lm_sensors group, Am I right? You need a discussion with them, because I'm not very familiar with the subclients.

Thanks
Best Regards
Chunhao

Quoted 69 lines

-----Original Message-----
From: Jean Delvare [mailto:[email protected]]
Sent: 2005爛4堎10゜ 17:53
To: Mark Studebaker; PI14 HUANG0
Cc: LM Sensors
Subject: Re: Winbond W83792D driver

Hi Chunhao, hi Mark,

Quoted 7 lines

I'm sorry I'm not really familiar with how subclients were done in 2.6, or 2.6 drivers in general. I did a diff between your w83792d.c and w83781d.c in the 2.6.11 kernel. I saw some differences in xxx_detect_subclients(). These may or may not make a difference. Be sure you don't have any compile warnings about wrong pointer types. One of the other guys on the list may be able to help you better. good luck. mds

I've read Chunhao's code and found the problem:

/* memset(data->lm75[0], 0x00, sizeof (struct i2c_client)); */

This is commented out in your code. The memset is NOT optional, it is a requirement. The correct memset would be:
memset(data->lm75, 0x00, 2 * sizeof(struct i2c_client));
Add this and this will solve your problem (at least it did for me).

Additional notes:

1* You have put a comment:
struct i2c_client *lm75; /* for secondary I2C addresses */
/* array of 2 pointers to subclients */

This is *not* an array of 2 pointers to subclient, this is a pointer to an array of 2 subclients, which is quite different.

2* You include "lm75.h" but never use it. This header file contains temperature converters for LM75-like chips. This doesn't seem to be the case of the W83792D (according to your code at least).

3* Your code does *not* free the memory you allocated for subclients when unloading the driver. Please add the necessary code.

4* You do *not* need to do casts like this one:
((struct w83792d_data *) data)
It was needed in linux 2.4 but in 2.6 things are cleaner so the casts are not needed.

5* In the case we do *not* force the subclient addresses, the code is:

               val1 = w83792d_read_value(new_client,
                                         W83792D_REG_I2C_SUBADDR);
               data->lm75[0].addr = 0x48 + (val1 & 0x03);
               data->lm75[1].addr = 0x4c + ((val1 >> 4) & 0x03);

This is *not* correct IMHO, because it assumes that the first subclient is in 0x48-0x4b and the second it in 0x4c-0x4f. While this is true at power-up for the W83792D, the BIOS may have changed this. So we should not assume anything and simply do:

               data->lm75[0].addr = 0x48 + (val1 & 0x07);
               data->lm75[1].addr = 0x48 + ((val1 >> 4) & 0x07);

This should be fixed in the 2.4 driver as well.

6* The code does *not* properly handle the case where subclients are disabled. If subclients addresses are forced, they will be forcibly enabled (this is OK). If they are not forced, then we might register clients which do not exist (this is NOT OK).

Quoted 8 lines

[I'd have a side question, about the subclients in general... Why do we register subclients addresses at all? We could instead forcibly disable them. This is easier and just as efficient (disabling the addresses doesn't disable the temperature channels themselves).]

Thanks,
--
Jean Delvare

==============================================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&nbsp; English statement above.本信件內所含華邦電子的財產性機密性資訊, 僅授權原發信人指定之收信人取閱之用. 假使您並非被指定之收信人或因任何原因在未經授權的情形之下收到本信件, 請您告知原發信人並立即將信件從電腦與網路伺服器中予以消除. 對於您的合作, 我們先此致謝. 特此提醒, 任何未經授權擅自使用華邦電子的機密資訊的行為是被嚴格禁止的. 信件與華邦電子營業無關之內容,不得視為華邦電子之立場或意見.

#13 lore raw
In reply to Mark Studebaker

Hi Jean

Quoted 2 lines

3* Your code does *not* free the memory you allocated for subclients when unloading the driver. Please add the necessary code.

I added three lines, please refer to the codes below, Am I right?

static int
w83792d_detach_client(struct i2c_client *client)

{
        int err;
        struct w83792d_data *data = i2c_get_clientdata(client);

        if ((err = i2c_detach_client(client))) {
                .../* some codes omitted here! */
        }

        if (i2c_get_clientdata(client)=NULL) {
                /* subclients */
                i2c_detach_client(&(data->lm75[0])); <-- added!
                i2c_detach_client(&(data->lm75[1])); <-- added!
                kfree(data->lm75);                   <-- added!
                kfree(client);
        } else {
                /* main client */
                kfree(i2c_get_clientdata(client));
        }
        return 0;
}
Quoted 4 lines

6* The code does *not* properly handle the case where subclients are disabled. If subclients addresses are forced, they will be forcibly enabled (this is OK). If they are not forced, then we might register clients which do not exist (this is NOT OK).

I meet a problem when load the 792 module after the modification to 1*-5*:
W83792d 0-002f: Subclient 1 registration at address 0x48 failed.

The 792 modules does not work, does it have something to do with your item 6*?
Do you know how to solve this problem?

Thanks
Best Regards
Chunhao

==============================================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&nbsp; English statement above.本信件內所含華邦電子的財產性機密性資訊, 僅授權原發信人指定之收信人取閱之用. 假使您並非被指定之收信人或因任何原因在未經授權的情形之下收到本信件, 請您告知原發信人並立即將信件從電腦與網路伺服器中予以消除. 對於您的合作, 我們先此致謝. 特此提醒, 任何未經授權擅自使用華邦電子的機密資訊的行為是被嚴格禁止的. 信件與華邦電子營業無關之內容,不得視為華邦電子之立場或意見.

#14 lore raw
In reply to Mark Studebaker

Hi Jean

Quoted 1 line

This can't work! By definition if i2c_get_clientdata(client)=NULL,

then

Quoted 10 lines

data is NULL, so data->lm75 doesn't exit. Also, you would be detaching subclients more than once if it did work, and freeing memory more than once too.

You are facing the problem I expected. With your current allocation model, only the main client can free the memory allocated for subclients. the problem is that you cannot be sure that the subclients will be unregistered first, so you can't do that.

I really think you will have to move to a different allocation model.

See

Quoted 4 lines

asb100 for a good example of how things should be done.

Quoted 2 lines

I meet a problem when load the 792 module after the modification to 1*-5*: W83792d 0-002f: Subclient 1 registration at address 0x48

failed.

Quoted 2 lines
Quoted 2 lines

The 792 modules does not work, does it have something to do with

your

Quoted 7 lines
Quoted 2 lines

item 6*?
Do you know how to solve this problem?

This might have been caused by the deregistration problems. If a subclient wasn't properly unregistered, then it's marked as used until next reboot. I'd suggest that you change the implementation and try again. Hopefully the problem will be fixed.

I'm reading the asb100.c....from linux-2.6.11.6
I will modify my codes with the method in asb100.c later. After the modification
I will send you for your confirmation again.

Thanks a lot
Best Regards

Chunhao

==============================================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&nbsp; English statement above.本信件內所含華邦電子的財產性機密性資訊, 僅授權原發信人指定之收信人取閱之用. 假使您並非被指定之收信人或因任何原因在未經授權的情形之下收到本信件, 請您告知原發信人並立即將信件從電腦與網路伺服器中予以消除. 對於您的合作, 我們先此致謝. 特此提醒, 任何未經授權擅自使用華邦電子的機密資訊的行為是被嚴格禁止的. 信件與華邦電子營業無關之內容,不得視為華邦電子之立場或意見.

#15 lore raw
In reply to Mark Studebaker

Hi Chunhao,

Quoted 19 lines
Quoted 2 lines

3* Your code does *not* free the memory you allocated for subclients when unloading the driver. Please add the necessary code.

I added three lines, please refer to the codes below, Am I right?

static int
w83792d_detach_client(struct i2c_client *client)

{
       int err;
       struct w83792d_data *data = i2c_get_clientdata(client);

       if ((err = i2c_detach_client(client))) {
               .../* some codes omitted here! */
       }

       if (i2c_get_clientdata(client)=NULL) {
               /* subclients */
               i2c_detach_client(&(data->lm75[0])); <-- added!
               i2c_detach_client(&(data->lm75[1])); <-- added!
Quoted 8 lines
               kfree(data->lm75);                   <-- added!
               kfree(client);
       } else {
               /* main client */
               kfree(i2c_get_clientdata(client));
       }
       return 0;
}

This can't work! By definition if i2c_get_clientdata(client)=NULL, then data is NULL, so data->lm75 doesn't exit. Also, you would be detaching subclients more than once if it did work, and freeing memory more than once too.

You are facing the problem I expected. With your current allocation model, only the main client can free the memory allocated for subclients. the problem is that you cannot be sure that the subclients will be unregistered first, so you can't do that.

I really think you will have to move to a different allocation model. See asb100 for a good example of how things should be done.

Quoted 6 lines

I meet a problem when load the 792 module after the modification to 1*-5*: W83792d 0-002f: Subclient 1 registration at address 0x48 failed.

The 792 modules does not work, does it have something to do with your item 6*?
Do you know how to solve this problem?

This might have been caused by the deregistration problems. If a subclient wasn't properly unregistered, then it's marked as used until next reboot. I'd suggest that you change the implementation and try again. Hopefully the problem will be fixed.

Thanks,
--
Jean Delvare

#16 lore raw
In reply to Mark Studebaker

hi Mark,

Quoted 2 lines

the way I read the datasheet the first time (page 44) bits 2 and 6 were fixed at 0 and 1; that's why I coded it the way I did.

I figured out that much.

Quoted 2 lines

But reading again that doesn't look right, that's just the power-up default, they aren't fixed.

As a side note, it's quite smart from the Winbond designers to have made the default subclient addresses depend on the main client address (let alone the fact that the main address itself is now selectable). This should address a number of issues we had before with (most notably Tyan) systems having two Winbond chips.

That being said, it would have probably been even smarter to have bits 2-1 (as opposed to 1-0 currently) of the subclient addresses match the lower bits of the main address, for an increased compatibility with earlier designs.

--
Jean Delvare

#17 lore raw
In reply to Mark Studebaker

Hi Rudolf,

Quoted 7 lines

We just tried and all three bits can be used despite the fact datasheet proposes on page 37 that bit2 should be 0 and bit6 1

We tried to write 0x76 and subclients moved to 0x4e and 0x4f.

Maybe the datasheet should be clearified that values on bit2 and bit6 are power on defaults but all three bits can be altered.

The datasheet looks already very clear to me (although it seems that it confused several persons already). The bit definitions for CR4A clearly state that all 3 low address bits can be changed for both subclients. I don't think that the datasheet can be more clear about this. Insead, we should simply pay more attention to what is written ;)

We already discussed this subclient address issue a few days ago, and I fixed a problem related to this in the CVS right before the 2.9.1 release.

Whether or not we allow the user to force arbitrary subclient addresses or force each in a separate range doesn't make much difference IMHO. The chip has no limitation, but adding at the driver level is unlikely to cause problems. Forcing subclient addresses is a feature only a few users need.

Just remember that if we do *not* force subaddresses to different ranges, then the driver has to handle the duplicate address case when the user forces the addresses.

Thanks,

Signature · 1 line
Jean Delvare
#18 lore raw
In reply to Mark Studebaker

Hi all,

Yes the subclient registration has more troubles.
The bit mask and base address

The first serial bus address of W83792D has 2 hardware setting bits set by pin15-16. The address is 01011[pin11][pin10]X. Hence, the content of CR[48h] would be 0 0101110 if pin11=1 and pin10=0. The read/write of the CPUT1/CPUT2 temperature sensor registers can be implemented through the second address (defined at CR[4Ah] bit2-0 10011[pin11][pin10]X) and the third address (defined at CR[4Ah] bit6- 10010[pin11][pin10]X 4).

8.12 Serial Bus Address Registers - Index 48h 4A (Bank 0)

And what more the bit2 and bit6 is writtable (we tried with Chunhao this morning but it seems it is ignored by chip (we tried 0x77) to see if there will be only one subclient address)

Let let the bit2 and bit6 to be mutualy exclusive. So lets stick with datasheet and allow only reasonable 2 bit change.

so: 0x48 + XX
100 10XX
and
100 11XX
0x4C + XX

Quoted 9 lines

792 driver for linux-2.6

	if (force_subclients[0] = id && force_subclients[1] = address) {
		..........
		w83792d_write_value(new_client, W83792D_REG_I2C_SUBADDR,
					(force_subclients[2] & 0x07) |   /* here */
					((force_subclients[3] & 0x07) <<4)); /* here */
		...............
	} else {..........................

I'm for mask 0x3 so only two bit change. I think you need to add there that bit6 is always 1 ((force_subclients[3] & 0x07) <<4) | 0x40

And I would do the same for 2.4 driver.

	w83792d_write_value(new_client, W83792D_REG_I2C_SUBADDR,
Quoted 2 lines
					(force_subclients[2] & 0x03) |
					((force_subclients[3] & 0x03) <<4)|0x40);

/* allow only exclusive addresses for subclients */

And in documentation I would add the note that only two bits are considered for forcing subclients and valid range is 0x48 - 0x4B for first subclient and 0x4C - 0x4F for second.

Quoted 2 lines

Thanks
Best Regards

Rudolf

#19 lore raw
In reply to Mark Studebaker

Hi all.

We just tried and all three bits can be used despite the fact datasheet proposes on page 37 that bit2 should be 0 and bit6 1

We tried to write 0x76 and subclients moved to 0x4e and 0x4f.

Maybe the datasheet should be clearified that values on bit2 and bit6 are power on defaults but all three bits can be altered.

Regards

Rudolf

#20 lore raw
In reply to Mark Studebaker

I made the same mistake at first,
Khali caught it and on rereading the datasheet I agree.
It's the same behavior as the w83781d, other than the power-on default. All 3 bits can be modified.
mds

Quoted 13 lines · Rudolf Marek

Hi all.

We just tried and all three bits can be used despite the fact datasheet proposes on page 37 that bit2 should be 0 and bit6 1

We tried to write 0x76 and subclients moved to 0x4e and 0x4f.

Maybe the datasheet should be clearified that values on bit2 and bit6 are power on defaults but all three bits can be altered.

Regards

Rudolf

#21 lore raw
In reply to Mark Studebaker

checked in.
thanks for the contribution.
mds

Quoted 52 lines · [email protected] wrote:

Dear MDS

Quoting MDS

Quoted 1 line

4) a documentation file for doc/chips would be greatly appreciated :)

I finished the doc/chips/w83792d yesterday, please check the attachment, If you have time, you may help me to review this document and add some supplement into it, Then please help to commit it into CVS. I will continue to update this document if need.

Thanks
Best Regards

Chunhao

Quoted 31 lines

-----Original Message-----
From: Mark Studebaker [mailto:[email protected]]
Sent: 2005Äê4ÔÂ16ÈÕ 0:20
To: LM Sensors
Cc: PI14 HUANG0
Subject: Re: Winbond W83792D driver

I made the same mistake at first,
Khali caught it and on rereading the datasheet I agree.
It's the same behavior as the w83781d, other than the power-on default. All 3 bits can be modified.
mds

Quoted 3 lines · Rudolf Marek

Hi all.

We just tried and all three bits can be used despite the fact datasheet

proposes

Quoted 9 lines

on page 37 that bit2 should be 0 and bit6 1

We tried to write 0x76 and subclients moved to 0x4e and 0x4f.

Maybe the datasheet should be clearified that values on bit2 and bit6 are power on defaults but all three bits can be altered.

Regards

#22 lore raw
In reply to Mark Studebaker

Dear MDS

Quoting MDS

Quoted 1 line

4) a documentation file for doc/chips would be greatly appreciated :)

I finished the doc/chips/w83792d yesterday, please check the attachment, If you have time, you may help me to review this document and add some supplement into it, Then please help to commit it into CVS. I will continue to update this document if need.

Thanks
Best Regards

Chunhao

Quoted 14 lines

-----Original Message-----
From: Mark Studebaker [mailto:[email protected]]
Sent: 2005爛4堎16゜ 0:20
To: LM Sensors
Cc: PI14 HUANG0
Subject: Re: Winbond W83792D driver

I made the same mistake at first,
Khali caught it and on rereading the datasheet I agree.
It's the same behavior as the w83781d, other than the power-on default. All 3 bits can be modified.
mds

Quoted 16 lines
Quoted 3 lines · Rudolf Marek

Hi all.

We just tried and all three bits can be used despite the fact datasheet

proposes

Quoted 10 lines

on page 37 that bit2 should be 0 and bit6 1

We tried to write 0x76 and subclients moved to 0x4e and 0x4f.

Maybe the datasheet should be clearified that values on bit2 and bit6 are power on defaults but all three bits can be altered.

Regards

Rudolf

==============================================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 repeat the&nbsp; English statement above.本信件內所含華邦電子的財產性機密性資訊, 僅授權原發信人指定之收信人取閱之用. 假使您並非被指定之收信人或因任何原因在未經授權的情形之下收到本信件, 請您告知原發信人並立即將信件從電腦與網路伺服器中予以消除. 對於您的合作, 我們先此致謝. 特此提醒, 任何未經授權擅自使用華邦電子的機密資訊的行為是被嚴格禁止的. 信件與華邦電子營業無關之內容,不得視為華邦電子之立場或意見. -------------- next part --------------
A non-text attachment was scrubbed...
Name: w83792d
Type: application/octet-stream
Size: 14758 bytes
Desc: w83792d
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050418/d7f024c4/w83792d.obj