public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Bryan Wu <cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Kalle Pokki <kalle.pokki-jgfpPLbCha8@public.gmane.org>,
	i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
Subject: Re: [PATCH 0/6] Blackfin I2C TWI driver updates
Date: Thu, 13 Mar 2008 15:34:12 +0100	[thread overview]
Message-ID: <20080313153412.6c978e24@hyperion.delvare> (raw)
In-Reply-To: <386072610803130050j47f2659bpbf53199c7dec4916-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Hi Bryan, Kalle,

On Thu, 13 Mar 2008 15:50:59 +0800, Bryan Wu wrote:
> On Thu, Mar 13, 2008 at 1:43 PM, Kalle Pokki <kalle.pokki-jgfpPLbCha8@public.gmane.org> wrote:
> > On Thu, 13 Mar 2008, Bryan Wu wrote:
> >
> >  > I understand. It is too late.
> >  >
> >  > Actually, I plan to send out these for 2.6.26 at first. But found
> >  > following BF54x compiling error:
> >
> >  Please post a fix for the compile error in 2.6.25. As Jean pointed out,
> >  build and bug fixes should always be sent upstream asap, without waiting
> >  for the next merge window.
> 
> [PATCH 2/6]  is to fix this compile error bug.
> So Jean, could you please just merge
> patch 1/6 and patch 2/6 for 2.6.25, while others for 2.6.26?

I can't believe that this patch is the easiest way to fix the build
failure. I seem to understand that the problem is one of the Blackfin
machines missing the proper header definitions? Then I suggest that you
simply exclude this machine in Kconfig. This fixes the build failure in
one line, which is perfectly acceptable at this point of the release
cycle.

> (...)
> >  Actually, patch 1/6 seems to be a real bug fix. In the current code the
> >  i2c-bfin-twi master transmit is broken for all drivers requiring a restart
> >  condition.
> 
> So patch 1/6 and patch 2/6 is ready for 2.6.25, don't they?

The problem is that these are the 2 biggest patches of the series,
summing up to 30 kB. This is really more than I want to take at this
point of the release cycle.

Patch 1/6 looks more like a new feature to me. The bug was not that
some transaction types were not supported, but that the driver
advertised them as being supported. So the proper fix (again, because
we are late in the release cycle) would be to adjust the advertised
functionality bitmap. That being said, I doubt that it will really help
in practice, if a chip driver needs one of the missing transaction
types, it will fail both ways. So I won't insist on changing this for
2.6.25.

For patch 2/6, see what I wrote above, I'd prefer that we adjust
Kconfig to avoid the build breakage in 2.6.25, and add the large patch
in 2.6.26.

On a general note, the patch summaries and header comments should
really tell that they fix build failures or bugs when they do. Here
patches 1/6 and 2/6 both say that they "add" something, not that they
"fix" something; this made it hard for me to figure out what was
needed for 2.6.25 and what wasn't (leaving aside the patch size
considerations for a moment.)

-- 
Jean Delvare

_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c

  parent reply	other threads:[~2008-03-13 14:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-12 16:25 [PATCH 0/6] Blackfin I2C TWI driver updates Bryan Wu
     [not found] ` <1205479360-25240-1-git-send-email-cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2008-03-12 18:37   ` Jean Delvare
     [not found]     ` <20080312193718.1aa86caf-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-03-13  2:07       ` Bryan Wu
     [not found]         ` <386072610803121907y499903ban37456d06d36a07a8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-13  5:43           ` Kalle Pokki
     [not found]             ` <Pine.LNX.4.64.0803130726410.26435-er0LZAA46r2WwDxiJSwuDc1vFkv34tBQrE5yTffgRl4@public.gmane.org>
2008-03-13  7:50               ` Bryan Wu
     [not found]                 ` <386072610803130050j47f2659bpbf53199c7dec4916-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-13 14:34                   ` Jean Delvare [this message]
     [not found]                     ` <20080313153412.6c978e24-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-03-13 16:25                       ` Bryan Wu
     [not found]                         ` <386072610803130925r3353032kc4e47d4a0948dba4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-13 17:13                           ` Jean Delvare
2008-03-13 12:03           ` Jean Delvare

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=20080313153412.6c978e24@hyperion.delvare \
    --to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
    --cc=cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org \
    --cc=kalle.pokki-jgfpPLbCha8@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox