From: Michael Lawnick <nospam_lawnick-Mmb7MZpHnFY@public.gmane.org>
To: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Request for Clarification: old - legacy - new driver model
Date: Tue, 10 Mar 2009 07:45:22 +0100 [thread overview]
Message-ID: <gp52a3$l6u$1@ger.gmane.org> (raw)
In-Reply-To: <20090309153851.6d92729e-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
Jean Delvare said the following:
> On Mon, 09 Mar 2009 15:13:16 +0100, Michael Lawnick wrote:
>> Hi Jean,
>>
>> I have now got a 2.6.28.7 Kernel to play with on my board. I assume
>> I have to patch some files to get the same play ground as you,
>> right? Could you give me the msgIds/links?
>
> Sorry but I don't quire follow you here. What play ground are you
> talking about?
>
I was talking about the version of I2C sub system you are currently
working on ...
Oh, I see, the patches of July are already in Kernel 2.6.28.7.
>> I'm currently thinking about making a module that allows to trigger
>> probing of buses, something like insmod i2cDevProbe.ko
>> "modname",busNo,devNo Could finally be integrated into subsystem if
>> there are more folks that like it.
>
> I don't like the idea at all.
I know :-D
> Module parameters are not exactly a convenient interface. As a matter
> of fact this is what we have today, with the difference that the
> parameters are passed to relevant driver directly rather than to a
> dedicated module (see the I2C_CLIENT_INSMOD* macros in
> include/linux/i2c.h), and we are trying to move away from it because
> they are highly user-unfriendly. What you propose is slightly better
> than what we have in some respects, but that's not a significant
> enough improvement to justify the move.
>
> And your proposal has many drawbacks/lacks, too. For example, how do
> you remove a device instance which you have created by mistake? How
> do you create a new device instance when the i2cDevProbe.ko module is
> already loaded? Just two problems off the top of my head, but there
> are probably more.
>
Well, I currently don't see user space support in the way I need.
My module i2cDevProbe will do the probe/attach, a i2cDevDetach will do a
remove. Just as a first test version. The idea of module parameters was
not meant as the final solution.
> I definitely prefer a sysfs-based approach as I initially mentioned,
> this is much more flexible. If you have an urgent need for this
> feature, we can add an action point to the wiki and start working on
> an implementation. I suggest you start with creating your wiki
> account then.
>
Incorporating such methods into subsystem would be much better of
course. Probably as a sysFs entry automatically added to every adapter
in /sys/class/i2c-adapter/i2c-x
AFAICS I will do this in the next weeks. Regarding wiki the other
question is whether I can take some official responsibility for such a
patch. I'm doing it as a professional, bound to a project. Further
development because of kernel changes in future wouldn't be supported in
sufficient way :-(
--
Regards,
Michael
next prev parent reply other threads:[~2009-03-10 6:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-18 12:37 Request for Clarification: old - legacy - new driver model Michael Lawnick
2009-02-18 17:36 ` Wolfram Sang
[not found] ` <20090218173645.GD3049-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2009-02-19 14:17 ` Michael Lawnick
2009-02-20 12:53 ` Jean Delvare
[not found] ` <20090220135300.353cd53a-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-02-24 15:09 ` Michael Lawnick
2009-02-25 8:00 ` Jean Delvare
[not found] ` <20090225090002.2c31dbf1-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-02-26 11:09 ` Michael Lawnick
2009-02-26 13:28 ` Jean Delvare
[not found] ` <20090226142854.2b6f72e4-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-02-26 15:16 ` Michael Lawnick
2009-02-27 9:36 ` Michael Lawnick
2009-03-05 14:57 ` Jean Delvare
[not found] ` <20090305155713.46ac1968-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-03-09 14:13 ` Michael Lawnick
2009-03-09 14:38 ` Jean Delvare
[not found] ` <20090309153851.6d92729e-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-03-10 6:45 ` Michael Lawnick [this message]
[not found] ` <20090310103609.0d756775@hyperion.delvare>
[not found] ` <20090310114215.181300@gmx.net>
[not found] ` <20090310114215.181300-hi6Y0CQ0nG0@public.gmane.org>
2009-03-10 11:47 ` Michael Lawnick
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='gp52a3$l6u$1@ger.gmane.org' \
--to=nospam_lawnick-mmb7mzphnfy@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.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.