* [lm-sensors] new [PATCH] I2C: add new rx8025 driver
@ 2006-02-03 13:42 Uwe Zeisberger
2006-03-04 16:02 ` Jean Delvare
2006-03-06 7:30 ` Uwe Zeisberger
0 siblings, 2 replies; 3+ messages in thread
From: Uwe Zeisberger @ 2006-02-03 13:42 UTC (permalink / raw)
To: lm-sensors
Hello Jean,
here comes a reworked driver (in a seperate e-mail to ease applying it).
I didn't implemented all your suggestions, as commented below.
I didn't (yet) used Alessandro's rtc core as it doesn't compile on
current HEAD. (Moreover my driver has to work on 2.6.12.5, because
that's the version our customer has to stick to.)
You told me not to initialize a static global to NULL explicitly, I
thought about it and prefer to state this assumption just to make it
clear that I assume it to be zero.
Still open: I don't know if the mutex is needed. I didn't see it in
other drivers but in my eyes it must be there. Any comments?
I didn't switch over to smbus as you said in your follow-up mail[1].
I hope I catched all the remaining points to your satisfaction.
Best regards
Uwe
[1] Message-Id: <20060203101642.167cb18c.khali at linux-fr.org>
--
Uwe Zeisberger
FS Forth-Systeme GmbH, A Digi International Company
Kueferstrasse 8, D-79206 Breisach, Germany
Phone: +49 (7667) 908 0 Fax: +49 (7667) 908 200
Web: www.fsforth.de, www.digi.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [lm-sensors] new [PATCH] I2C: add new rx8025 driver
2006-02-03 13:42 [lm-sensors] new [PATCH] I2C: add new rx8025 driver Uwe Zeisberger
@ 2006-03-04 16:02 ` Jean Delvare
2006-03-06 7:30 ` Uwe Zeisberger
1 sibling, 0 replies; 3+ messages in thread
From: Jean Delvare @ 2006-03-04 16:02 UTC (permalink / raw)
To: lm-sensors
Hi Uwe,
Sorry for the late answer.
> here comes a reworked driver (in a seperate e-mail to ease applying it).
> I didn't implemented all your suggestions, as commented below.
>
> I didn't (yet) used Alessandro's rtc core as it doesn't compile on
> current HEAD. (Moreover my driver has to work on 2.6.12.5, because
> that's the version our customer has to stick to.)
True, but if we merge your driver in the main Linux tree, it'll happen
at best in 2.6.17-rc1 so the version we'll merge will not be compatible
with 2.6.12.5 anyway. You must have noticed that the i2c subsystem had
a few minor changes in the last few Linux releases. So, given that you
will have to maintain a separate version for your customer anyway, we
better make the merged driver comply with the latest standards.
These latest standards include Alessandro Zummo's rtc core and kzalloc,
but also the new mutex implementation, and in a near future (I hope...)
the new explicit i2c client attach method.
> Still open: I don't know if the mutex is needed. I didn't see it in
> other drivers but in my eyes it must be there. Any comments?
On second read, I think it is needed, but maybe not for the reasons you
thought. It is needed to make sure that the i2c client won't be freed
while you're using it. It is not needed for I2C transfers themselves,
as the i2c-core already handles the locking there. So, it looks to me
like you are not always holding the lock when you need it. For example,
in rx8025_get_rtctime, you release the lock, then right after you use
&rx8025_rtcclient->dev. This doesn't look correct to me.
Anyway, Alessandro told me that the rtc core may handle that kind of
lock, so it's probably not worth investigating until your driver has
been converted to that subsystem.
> I hope I catched all the remaining points to your satisfaction.
Seems so, or at least enough for me to accept your driver, except that
I'd like it to be ported to the rtc core instead, as explained above. I
think Alessandro is willing to help with that, so please see with him
how you want to handle it; it shouldn't be very difficult.
Thanks,
--
Jean Delvare
^ permalink raw reply [flat|nested] 3+ messages in thread
* [lm-sensors] new [PATCH] I2C: add new rx8025 driver
2006-02-03 13:42 [lm-sensors] new [PATCH] I2C: add new rx8025 driver Uwe Zeisberger
2006-03-04 16:02 ` Jean Delvare
@ 2006-03-06 7:30 ` Uwe Zeisberger
1 sibling, 0 replies; 3+ messages in thread
From: Uwe Zeisberger @ 2006-03-06 7:30 UTC (permalink / raw)
To: lm-sensors
Hi Jean, hello list,
Jean Delvare wrote:
> > here comes a reworked driver (in a seperate e-mail to ease applying it).
> > I didn't implemented all your suggestions, as commented below.
> >
> > I didn't (yet) used Alessandro's rtc core as it doesn't compile on
> > current HEAD. (Moreover my driver has to work on 2.6.12.5, because
> > that's the version our customer has to stick to.)
>
> True, but if we merge your driver in the main Linux tree, it'll happen
> at best in 2.6.17-rc1 so the version we'll merge will not be compatible
> with 2.6.12.5 anyway. You must have noticed that the i2c subsystem had
> a few minor changes in the last few Linux releases. So, given that you
> will have to maintain a separate version for your customer anyway, we
> better make the merged driver comply with the latest standards.
Maybe I need still more time to investigate there. I'm planning to
rework all our Linux code for the NetSilicon platform and submit it.
Now the code is running on 2.6.15.3, but it's a big mess. I'd prefer
testing on that new implementation. So it came in handy that I don't
have maintainer duties. Moreover the board with that chip is currently
at the customer's. So I plan to resubmit a reworked driver when I
finished the rework of our platform here.
Best regards
Uwe
--
Uwe Zeisberger
FS Forth-Systeme GmbH, A Digi International Company
Kueferstrasse 8, D-79206 Breisach, Germany
Phone: +49 (7667) 908 0 Fax: +49 (7667) 908 200
Web: www.fsforth.de, www.digi.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-06 7:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-03 13:42 [lm-sensors] new [PATCH] I2C: add new rx8025 driver Uwe Zeisberger
2006-03-04 16:02 ` Jean Delvare
2006-03-06 7:30 ` Uwe Zeisberger
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.