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: Wed, 08 Jun 2005 19:09:14 +0000 [thread overview]
Message-ID: <20050608190817.71777c8f.khali@linux-fr.org> (raw)
In-Reply-To: <20050604201931.4e533021.khali@linux-fr.org>
Hi Karel,
Please answer to the mailing-list rather than to me only.
> The device is I2C2P http://i2c2p.twibright.com
> It's an optically isolated parport <-> I2C converter which is
> bidirectional in both SDA and SCL. The half near PC is powered from
> the parallel port, the other half externally.
>
> Normally, the adapter supports SCL readback. However when the remote
> part is not powered, SCL readback doesn't work. As the power applied
> to the remote half is independent from PC power (typical use is to
> hook it up to some device with 24C16 inside and using it for
> brainwashing the device), this can normally happen.
Except that you should not load a driver for unpowered hardware, as the
i2c subsystem doesn't support any kind of hotplugging.
You mentioned the fact that you had a long delay at boot time when the
"second half" was not powered on. This shouldn't happen. Even without
anything plugged on the parport, i2c-parport loads without any delay, I
just tested. This is quite logical because neither sda nor scl are read
back at i2c-parport load time (unless you set i2c_algo_bit.test_bit to
1). So I suspect that you additionally load i2c chip drivers, or run
user-space commands which generate traffic on the adapter, and this is
what causes the long delay. Please investigate in this direction.
> I have already sent you my newest patch for I2C2P which incorporated
> this. Please look at it.
Yes, I got it. BTW, it would be better if you could send patches to this
mailing-list rather than to me only. More eyes is better, and I am
rather busy myself (as you must have noticed by now). Especially the
proposed changes to i2c-algo-bit need an in-deep review (and should
really be a separate patch). This code is used by 69 drivers in the
kernel only, which I wouldn't want to break.
Thanks,
--
Jean Delvare
prev parent reply other threads:[~2005-06-08 19:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-04 20:19 [lm-sensors] Re: sclhi retval not tested in i2c-algo-bit.c Jean Delvare
2005-06-08 19:09 ` Jean Delvare [this message]
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=20050608190817.71777c8f.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.