All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Andy Walls <awalls@radix.net>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>,
	linux-media@vger.kernel.org
Subject: Re: Fix for breakage caused by kfifo backport
Date: Fri, 15 Jan 2010 17:47:05 -0200	[thread overview]
Message-ID: <4B50C639.7070402@redhat.com> (raw)
In-Reply-To: <1263556855.3059.10.camel@palomino.walls.org>

Andy Walls wrote:
> Mauro,
> 
> At 
> 
> http://linuxtv.org/hg/~awalls/cx23885-ir2
> 
> I have a change checked in to fix the v4l-dvb compilation breakage for
> kernels less than 2.6.33 cause by the kfifo API change.  I have fixed
> both the cx23885 and meye driver so they compile again for older
> kernels.

As patches that do backports aren't applied upstream, they can't change any
line at the upstream code. However, your patch is changing two comments:

+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
+		kfifo_reset(state->rx_kfifo);
+#else
 		unsigned long flags;
 
 		spin_lock_irqsave(&state->rx_kfifo_lock, flags);
 		kfifo_reset(&state->rx_kfifo);
-		/* reset tx_fifo too if there is one... */
 		spin_unlock_irqrestore(&state->rx_kfifo_lock, flags);
+#endif

@@ -977,6 +1000,7 @@
 	o->interrupt_enable = p->interrupt_enable;
 	o->enable = p->enable;
 	if (p->enable) {
+		/* reset tx_fifo here */
 		if (p->interrupt_enable)
 			irqenable_tx(dev, IRQEN_TSE);
 		control_tx_enable(dev, p->enable);
@@ -1256,8 +1280,15 @@


This means that upstream and your -hg will be different. Please, don't do that.
If you want to touch on comments or at the upstream code, please send a separate
patch.

> 
> All the changes in this repo are OK to PULL as is, even though I haven't
> finished all the changes for the TeVii S470 IR  (I was planning on a
> PULL request late this evening EST).  You can also just cherry pick the
> one that fixes the kfifo problem if you want.

Yet, the series contains that issue I've already pointed:
+struct cx23885_ir_input {
...
+       char                    name[48];
+       char                    phys[48];

> 
> [I was unaware of the timing of the backport, but since it was stopping
> me from working, I fixed it as I thought appropriate.  Please feel free
> to contact me on any backport changes that have my fingerprints all over
> it, with which you would like help.  I'd like to help minimize the
> impact to users, testers, and developers, who may not have the bleeding
> edge kernel - or at least the impact to me ;) ]

I do the backports when I'm about to prepare patches to submit upstream, generally
after doing a large patch merge.

That's said, maintainng both upstream and the backports are consuming a lot
of my time. I'll probably pass the task of keeping the -hg tree with the
backports to somebody else receiving and applying patches directly on my
-git tree.

Douglas already offered to do it, so I'll likely pass him the task to maintain
the -hg tree soon. Then, all patches there will be simply a backport of what
we'll have on -git.

Cheers,
Mauro.

  parent reply	other threads:[~2010-01-15 19:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-15 12:00 Fix for breakage caused by kfifo backport Andy Walls
2010-01-15 12:59 ` Douglas Schilling Landgraf
2010-01-15 19:47 ` Mauro Carvalho Chehab [this message]
2010-01-15 22:27   ` Andy Walls

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=4B50C639.7070402@redhat.com \
    --to=mchehab@redhat.com \
    --cc=awalls@radix.net \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.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.