From: mds4@verizon.net (Mark Studebaker)
To: lm-sensors@vger.kernel.org
Subject: One chip, two uses, two drivers [was: [RFC][2.6] Additional i2c
Date: Thu, 19 May 2005 06:24:48 +0000 [thread overview]
Message-ID: <405AF914.3000608@verizon.net> (raw)
In-Reply-To: <EFEF4C473088B847B64CD953D2A6A10401B8F0AC@sdso14a.par.siemens.fr>
I've modified i2c-viapro and via686a so that the via686a driver will register the
i2c bus driver as well, so that i2c-viapro is not required if via686a is loaded.
The problem is making it pretty and making it work for all combinations
of built-in or module.
This works around the PCI conflict of via686a and viapro.
This doesn't apply to vt1211 because it isn't a PCI module.
So I agree there isn't any conflict.
Agreed there's no reason to combine vt1211 and viapro.
BARRE Francois wrote:
> Well, it was off-topic, let's make it another topic ;-p
>
> In fact no, i2c-viapro and vt1211 are not in conflict. As far as I
> understand it, vt1211 (I mean the lm_sensors module which deals with the i2c
> bus dedicated to temps, fans, etc. on the via nehemiah) is connected to the
> (fake ?) isa bus, whereas the i2c-viapro and via-ircc are both connected to
> a pci bus.
>
> I don't think it would be aethetic (and even possible) to integrate both
> fonctionnalities in the same driver, and I don't know yet how to make two
> drivers share the same device, but I guess that's the way to do it. Or maybe
> to push "shared" code in a kind of (fake) bus driver and specific code in a
> chip. If Mark has some idea/any kind of experience dealing with it, I shall
> be interrested. I didn't manage to find any example implemented in the
> kernel yet.
>
> Anyway I didn't dig into the i2c-viapro code yet, but I shall do it in order
> to plug an PCF8591 in it (the smbus shall be handled by i2c-viapro, am I
> right ?), together with an irda transceiver (with the help of via-ircc)...
>
>
>>-----Message d'origine-----
>>De : Jean Delvare [mailto:khali@linux-fr.org]
>>Envoy? : mercredi 17 mars 2004 22:21
>>? : BARRE Francois
>>Cc : sensors@Stimpy.netroedge.com
>>Objet : Re: [RFC][2.6] Additional i2c adapter flags for i2c
>>client isolation
>>
>>
>>>This topic makes me think of something _interresting_...
>>>
>>>According to the tests I made on my VIA Nehemiah M10k, the vt1211
>>>can be handled by i2c-viapro as an smbus device (via the vt596 it
>>>says) and via-ircc as an irda device, BUT this device can not be
>>>binded to both drivers at the same time : when one is loaded (and
>>>activated), the other finds no device (ENODEV I presume). (I wonder
>>>how I should use both smbus*and* irda device)...
>>>
>>>Is this totally out of topic ?
>>
>>"Off-topic" even, yes ;)
>>
>>
>>>Could a hack prevent these two drivers to be mutually exclusive?
>>
>>We knew of a similar problem between i2c-viapro and via686a. I didn't
>>know that i2c-viapro and via-ircc had the same problem. And I
>>guess that
>>i2c-viapro and vt1211 would conflict too?
>>
>>Mark D. Studebaker is working on a solution for i2c-viapro
>>and via686a.
>>I don't know if the same solution will apply in the other cases. Since
>>i2c-viapro is involved in all three conflicts, it promises to be damn
>>complex...
>>
>>--
>>Jean Delvare
>>http://www.ensicaen.ismra.fr/~delvare/
>>
>
>
>
prev parent reply other threads:[~2005-05-19 6:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:24 One chip, two uses, two drivers [was: [RFC][2.6] Additional i2c a BARRE Francois
2005-05-19 6:24 ` Mark Studebaker [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=405AF914.3000608@verizon.net \
--to=mds4@verizon.net \
--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.