From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] Re: sclhi retval not tested in i2c-algo-bit.c
Date: Sat, 04 Jun 2005 20:19:11 +0000 [thread overview]
Message-ID: <20050604201931.4e533021.khali@linux-fr.org> (raw)
Hi Karel,
> Hello Simon,
I wouldn't expect an answer from Simon. He left the i2c & lm_sensors
projects long ago. The lm_sensors mailing-list is the best place for
this kind of questions.
> drivers/i2c/algos/i2c-algo-bit.c sometimes tests return value of sclhi
> function and sometimes not. Shouldn't this always be tested?
I would guess so.
> I have a problem that I have an parport adapter which is optically
> isolated, and the isolated half is powered separately. The adapter
> supports SDA and SCL bidirectionally.
>
> When the other half is not powered, the SDA/SCL readback doesn't of
> course work, neither the devices connected react. But I discovered
> that although the .timeout in the driver is HZ (=1sec), the delay
> introduced on kernel startup is 90 seconds.
>
> That means that the timeout is left to timeout 90 times before the
> driver returns. I should that first timeout should cause the parport
> to be considered not mentally present and all operations on it
> immediately fail.
Is this with or without i2c_algo_bit.bit_test=1?
Without it, loading the i2c-parport driver should not introduce any kind
of delay. Trying access it would, but then the repeated timeouts you
observe could be caused by the process accessing it, whatever it is,
rather than i2c-algo-bit. I never experienced such long delays myself.
Can you please describe the devices found on the parallel port adapter,
and what is done to them at boot time?
> Looking into the driver, I am not wondering it is working this way :)
> I would like just to know your opinion if there isn't some deeper
> logic hidden behind what seems to me like omission.
I don't think so. Most probably it is that way just because it worked
for everyone so far. Patches to make it behave better are welcome.
Thanks,
--
Jean Delvare
next reply other threads:[~2005-06-04 20:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-04 20:19 Jean Delvare [this message]
2005-06-08 19:09 ` [lm-sensors] Re: sclhi retval not tested in i2c-algo-bit.c Jean Delvare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050604201931.4e533021.khali@linux-fr.org \
--to=khali@linux-fr.org \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.