2.6.11-mm3: it87 sensor driver loads but doesn't attach as a
Hi
I've been trying to get the it87 driver to work on my Gigabyte K8NF-9 motherboard. Found that if I hack out this bit with #if 0:
#if 0
#define REALLY_SLOW_IO
/* We need the timeouts for at least some
IT87-like chips. But only
if we read 'undefined' registers. */
i = inb_p(address + 1);
if (inb_p(address + 2) != i
|| inb_p(address + 3) != i
|| inb_p(address + 7) != i) {
err = -ENODEV;
goto ERROR1;
}#undef REALLY_SLOW_IO
#endif
then it loads and works perfectly. With this in the driver loads but fails silently - the attach client fails.
Any ideas? I'm not quite sure what the code is doing here.
sam
Hi Jean,
Quoted 23 lines · Jean Delvare
Hi Sam,
Quoted 21 lines
I've been trying to get the it87 driver to work on my Gigabyte K8NF-9 motherboard. Found that if I hack out this bit with #if 0:
#if 0
#define REALLY_SLOW_IO /* We need the timeouts for at least some IT87-like chips. But only if we read 'undefined' registers. */ i = inb_p(address + 1); if (inb_p(address + 2) != i || inb_p(address + 3) != i || inb_p(address + 7) != i) { err = -ENODEV; goto ERROR1; }#undef
REALLY_SLOW_IO
#endifthen it loads and works perfectly. With this in the driver loads but fails silently - the attach client fails.
Quoted 7 lines
Quoted 1 line
Any ideas? I'm not quite sure what the code is doing here.
See this similar report:
http://bugzilla.kernel.org/show_bug.cgi?idC35
I attached a patch to the report, which I will send to Greg if you confirm it works OK for you.
I can confirm this patch works fine with my Gigabyte K8NF-9. Thanks for the quick response. Keep up the good work!
sam
Hi Sam,
Quoted 15 lines
I've been trying to get the it87 driver to work on my Gigabyte K8NF-9 motherboard. Found that if I hack out this bit with #if 0:
#if 0
#define REALLY_SLOW_IO /* We need the timeouts for at least some IT87-like chips. But only if we read 'undefined' registers. */ i = inb_p(address + 1); if (inb_p(address + 2) != i || inb_p(address + 3) != i || inb_p(address + 7) != i) { err = -ENODEV; goto ERROR1; }
Quoted 7 lines
#undef
REALLY_SLOW_IO
#endifthen it loads and works perfectly. With this in the driver loads but fails silently - the attach client fails.
Any ideas? I'm not quite sure what the code is doing here.
See this similar report:
http://bugzilla.kernel.org/show_bug.cgi?idC35
I attached a patch to the report, which I will send to Greg if you confirm it works OK for you.
Signature · 1 line
Jean Delvare