* RE: [PATCH V2] drivers/i2c/busses/i2c-at91.c: fix brokeness
[not found] ` <20111107094701.GF4265-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
@ 2011-11-07 10:01 ` Voss, Nikolaus
[not found] ` <20111107100446.GG4265@legolas.emea.dhcp.ti.com>
0 siblings, 1 reply; 5+ messages in thread
From: Voss, Nikolaus @ 2011-11-07 10:01 UTC (permalink / raw)
To: 'balbi-l0cyMroinI0@public.gmane.org'
Cc: 'linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org',
'linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org',
'nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org',
'plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org',
'linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org'
Hi,
> IMHO, you should split this patch into three or more smaller patches.
> You're doing lots of different things in one commit and it'll be a pain to
> bisect should this cause any issues to anyone.
I didn't split the patch because it is virtually a complete rewrite.
Due to the severe limitations of the old driver, I think it should
replace the old driver.
> > +/* -*- linux-c -*-
>
> you shouldn't add this editor hooks to linux source files.
Ok.
> > -static int at91_i2c_resume(struct platform_device *pdev)
> > +static int at91_i2c_resume(struct device *dev)
> > {
> > - return clk_enable(twi_clk);
> > + struct platform_device *pdev = to_platform_device(dev);
> > + struct at91_i2c_dev *i2c_dev = platform_get_drvdata(pdev);
>
> dev_get_drvdata(dev) will do the same of two above lines. You don't need to
> fetch the platform_device...
Ok.
> > -MODULE_AUTHOR("Rick Bronson");
> > +MODULE_AUTHOR("Nikolaus Voss");
>
> wow... are you sure ? Rick will always be the original author, no ?
Yes, of course, but I don't want to declare him responsible for my
own mistakes. The new driver has almost nothing to do with the old.
Thanks for your *very* fast reply and review.
Niko
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH V2] drivers/i2c/busses/i2c-at91.c: fix brokeness
[not found] ` <20111107100446.GG4265-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
@ 2011-11-07 11:06 ` Voss, Nikolaus
[not found] ` <EF2E73589CA71846A15D0B2CDF79505D087B38B2AB-qhZVaJ2D3XF9OWT4OSQXE9BPR1lH4CV8@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Voss, Nikolaus @ 2011-11-07 11:06 UTC (permalink / raw)
To: 'balbi-l0cyMroinI0@public.gmane.org'
Cc: 'linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org',
'linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org',
'nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org',
'plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org',
'linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org',
'ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org'
> > > IMHO, you should split this patch into three or more smaller patches.
> > > You're doing lots of different things in one commit and it'll be a
> > > pain to bisect should this cause any issues to anyone.
> >
> > I didn't split the patch because it is virtually a complete rewrite.
> > Due to the severe limitations of the old driver, I think it should
> > replace the old driver.
>
> The final decision is up to Ben and/or Jean but I think we should always have
> incremental patches, not sure if we should allow big patches for the reasons
> above.
Splitting the patch implies the possibility to test each incremental
change independently, a possibility I don't have with my current setup as
the old driver didn't work at all for me (for example, my client needs
repeated start). I developed and tested the driver in an all or nothing-at-all
approach. Splitting the patch would be a purely academic exercise for me,
without any extra value beyond readability (which is admittedly bad now).
>From that point of view, I should maybe submit the patch as a new independent
driver (although it is a logical replacement for the old one)?
Niko
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH V2] drivers/i2c/busses/i2c-at91.c: fix brokeness
[not found] ` <EF2E73589CA71846A15D0B2CDF79505D087B38B2AB-qhZVaJ2D3XF9OWT4OSQXE9BPR1lH4CV8@public.gmane.org>
@ 2011-11-07 12:04 ` Jean Delvare
[not found] ` <20111107130432.3309ffd6-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Jean Delvare @ 2011-11-07 12:04 UTC (permalink / raw)
To: Voss, Nikolaus
Cc: balbi-l0cyMroinI0, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w,
plagnioj-sclMFOaUSTBWk0Htik3J/w,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Ben Dooks
On Mon, 7 Nov 2011 12:06:52 +0100, Voss, Nikolaus wrote:
> > > > IMHO, you should split this patch into three or more smaller patches.
> > > > You're doing lots of different things in one commit and it'll be a
> > > > pain to bisect should this cause any issues to anyone.
> > >
> > > I didn't split the patch because it is virtually a complete rewrite.
> > > Due to the severe limitations of the old driver, I think it should
> > > replace the old driver.
> >
> > The final decision is up to Ben and/or Jean but I think we should always have
> > incremental patches, not sure if we should allow big patches for the reasons
> > above.
The final call is obviously to Ben, not me, as this driver falls under
his jurisdiction. But for what it's worth, I consider the small-steps
rule void when it comes to fixing a plain broken driver by almost fully
rewriting it. The reviewer should really review the resulting code
rather than the patch. If it makes everybody happier, then killing the
old code completely first is certainly an option.
--
Jean Delvare
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH V2] drivers/i2c/busses/i2c-at91.c: fix brokeness
[not found] ` <20111107130432.3309ffd6-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
@ 2011-11-07 12:49 ` Nicolas Ferre
0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Ferre @ 2011-11-07 12:49 UTC (permalink / raw)
To: Jean Delvare, Voss, Nikolaus, balbi-l0cyMroinI0
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
plagnioj-sclMFOaUSTBWk0Htik3J/w,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Ben Dooks
On 11/07/2011 01:04 PM, Jean Delvare :
> On Mon, 7 Nov 2011 12:06:52 +0100, Voss, Nikolaus wrote:
>>>>> IMHO, you should split this patch into three or more smaller patches.
>>>>> You're doing lots of different things in one commit and it'll be a
>>>>> pain to bisect should this cause any issues to anyone.
>>>>
>>>> I didn't split the patch because it is virtually a complete rewrite.
>>>> Due to the severe limitations of the old driver, I think it should
>>>> replace the old driver.
>>>
>>> The final decision is up to Ben and/or Jean but I think we should always have
>>> incremental patches, not sure if we should allow big patches for the reasons
>>> above.
>
> The final call is obviously to Ben, not me, as this driver falls under
> his jurisdiction. But for what it's worth, I consider the small-steps
> rule void when it comes to fixing a plain broken driver by almost fully
> rewriting it. The reviewer should really review the resulting code
> rather than the patch. If it makes everybody happier, then killing the
> old code completely first is certainly an option.
I agree with this.
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH V2] drivers/i2c/busses/i2c-at91.c: fix brokeness
[not found] ` <alpine.DEB.2.00.1111071019560.21431-vb1CFJ/PVqUnDeILM3HATdG/hX4sBvbD@public.gmane.org>
@ 2011-11-07 16:36 ` Hubert Feurstein
0 siblings, 0 replies; 5+ messages in thread
From: Hubert Feurstein @ 2011-11-07 16:36 UTC (permalink / raw)
To: Nikolaus Voss
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w,
plagnioj-sclMFOaUSTBWk0Htik3J/w,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
Hi,
sorry, but your patch still does not apply. You fixed the tab issue,
but it seems that there are still some bad whitespaces left which
corrupt your patch.
Regards
Hubert
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-11-07 16:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <alpine.DEB.2.00.1111071019560.21431@gatekeeper.vosshq.de>
[not found] ` <20111107094701.GF4265@legolas.emea.dhcp.ti.com>
[not found] ` <20111107094701.GF4265-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2011-11-07 10:01 ` [PATCH V2] drivers/i2c/busses/i2c-at91.c: fix brokeness Voss, Nikolaus
[not found] ` <20111107100446.GG4265@legolas.emea.dhcp.ti.com>
[not found] ` <20111107100446.GG4265-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2011-11-07 11:06 ` Voss, Nikolaus
[not found] ` <EF2E73589CA71846A15D0B2CDF79505D087B38B2AB-qhZVaJ2D3XF9OWT4OSQXE9BPR1lH4CV8@public.gmane.org>
2011-11-07 12:04 ` Jean Delvare
[not found] ` <20111107130432.3309ffd6-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2011-11-07 12:49 ` Nicolas Ferre
[not found] ` <alpine.DEB.2.00.1111071019560.21431-vb1CFJ/PVqUnDeILM3HATdG/hX4sBvbD@public.gmane.org>
2011-11-07 16:36 ` Hubert Feurstein
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox