All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David Härdeman" <david@hardeman.nu>
To: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Jarod Wilson <jarod@wilsonet.com>, <linux-media@vger.kernel.org>
Subject: Re: [PATCH 0/6] rc-core: ir-core to rc-core conversion
Date: Wed, 10 Nov 2010 10:24:07 +0100	[thread overview]
Message-ID: <33c8487ce0141587f695d9719289467e@hardeman.nu> (raw)
In-Reply-To: <4CD9FA59.9020702@infradead.org>

On Tue, 09 Nov 2010 23:50:17 -0200, Mauro Carvalho Chehab
<mchehab@infradead.org> wrote:
> Hi David,
> 
> Em 02-11-2010 18:26, Jarod Wilson escreveu:
>> On Tue, Nov 2, 2010 at 4:17 PM, David Härdeman <david@hardeman.nu>
>> wrote:
>>> This is my current patch queue, the main change is to make struct
rc_dev
>>> the primary interface for rc drivers and to abstract away the fact
that
>>> there's an input device lurking in there somewhere.
>>>
>>> In addition, the cx88 and winbond-cir drivers are converted to use
>>> rc-core.
>>>
>>> The patchset is now based on current linux-2.6 upstream git tree since
>>> it
>>> carries both the v4l patches from the staging/for_v2.6.37-rc1 branch,
>>> large
>>> scancode support and bugfixes.
>>>
>>> Given the changes, these patches touch every single driver. Obviously
I
>>> haven't tested them all due to a lack of hardware (I have made sure
that
>>> all drivers compile without any warnings and I have tested the end
>>> result
>>> on mceusb and winbond-cir hardware, Jarod Wilson has tested
nuvoton-cir,
>>> imon and several mceusb devices).
>> 
>> And streamzap! :)
>> 
>> Mauro's at the kernel summit, but I had a brief moment to talk to him
>> earlier today. He had a few issues he wanted to give feedback on, but
>> I didn't get any specifics yet, other than him not liking the rc-map.c
>> bits merged into rc-main.c, mainly because part of the plan is to
>> remove in-kernel maps entirely in 2.6.38. It doesn't make a big
>> difference to me either way, and rc-main.c is still only 1300-ish
>> lines, and would be even less once rc-map.c bits are ripped out...
> 
> Sorry for giving you a late feedback about those patches. I was busy the
> last two
> weeks, due to my trip to US for KS/LPC.
> 
> I've applied patches 1 to 3 (in fact, I got the patches from the
previous
> version - 
> unfortunately, patchwork do a very bad job when someone sends a new
series
> that superseeds
> the previous patches).

Kinda makes it pointless to refresh patchsets, doesn't it?
 
> I didn't like patch 4 for some reasons: instead of just doing rename, it
> is a
> all-in-one patch, doing several things at the same time. It is hard to
> analyse it by
> just looking at the diffs, as it is not a pure rename patch.

It was an almost pure merge + rename (it added only the things that follow
from the merger...forward declarations and making functions static).

The real problem is that, since it includes the removal of files, those
files need to be identical.

> Also, it
> doesn't rename
> /drivers/media/IR into something else.

No, of course not, that would have made the patch even larger for little
gain.

I see that you've included a renaming patch in your patchset sent to the
list, but wouldn't it be easier to apply it after all the other patches
rather than before?

> Btw, the patch is currently broken:
> 
> $ quilt push
> Applying patch
> patches/lmml_298052_4_6_ir_core_merge_and_rename_to_rc_core.patch
> patching file drivers/media/IR/Makefile
> patching file drivers/media/IR/ir-core-priv.h
> patching file drivers/media/IR/ir-keytable.c
> Hunk #1 FAILED at 1.
> File drivers/media/IR/ir-keytable.c is not empty after patch, as
expected
> 1 out of 1 hunk FAILED -- rejects in file drivers/media/IR/ir-keytable.c

Not sure if you used the most recent version of patch 4/6 or not.

If you used the most recent, it's based on 2.6.37-rc1 upstream which has
both the large-input-scancodes patches as well as two important bugfixes to
ir-keytable.c, so since your staging/for_v2.6.38 is based on 2.6.36 plus
the staging/for_v2.6.37-rc1 branch, it won't apply.

If you used to second most recent, then it's based on the
input-large-scancodes being merged but not the two upstream bugfixes which
followed it.

Whichever way you choose, those two bugfixes should not get lost in the
noise.

> patching file drivers/media/IR/ir-raw-event.c
> patching file drivers/media/IR/ir-sysfs.c
> patching file drivers/media/IR/rc-main.c
> patching file drivers/media/IR/rc-map.c
> patching file drivers/media/IR/rc-raw.c
> patching file include/media/ir-core.h
> Patch patches/lmml_298052_4_6_ir_core_merge_and_rename_to_rc_core.patch
> does not apply (enforce with -f)
> 
> I think that the better is if I write a few patches doing the basic
rename
> stuff, based on my
> current tip, and then we can discuss about merging things into a fewer
> number of files, as 
> you're proposing, and apply patch 5/6 and 6/6.
> 
> Not sure why, but patchwork didn't seem to catch patch 6/6. I suspect
that
> it is because your
> name is not encoded with UTF-8 inside the driver. I've picked it
manually
> here, and fixed
> the naming stuff, but it needs patch 5/6, in order to work.

My name used to be UTF-8 encoded in winbond-cir, and it was changed
upstream (not by me), so I'm not going to revert it.

> I'll be pushing the renaming stuff soon at ML. I'll try to use your
naming
> convention and, if
> I do it well, maybe I can apply patches 5/6 and 6/6 on it without
> rebasing. Well, let's see.

I'll wait for more feedback then?

-- 
David Härdeman

  parent reply	other threads:[~2010-11-10  9:24 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-02 20:17 [PATCH 0/6] rc-core: ir-core to rc-core conversion David Härdeman
2010-11-02 20:17 ` [PATCH 1/6] ir-core: convert drivers/media/video/cx88 to ir-core David Härdeman
2010-11-02 20:17 ` [PATCH 2/6] ir-core: remove remaining users of the ir-functions keyhandlers David Härdeman
2010-11-02 20:17 ` [PATCH 3/6] ir-core: more cleanups of ir-functions.c David Härdeman
2010-11-02 20:17 ` [PATCH 4/6] ir-core: merge and rename to rc-core David Härdeman
2010-11-02 20:18 ` [PATCH 5/6] ir-core: make struct rc_dev the primary interface David Härdeman
2010-11-02 20:18 ` [PATCH 6/6] rc-core: convert winbond-cir David Härdeman
2010-11-02 20:26 ` [PATCH 0/6] rc-core: ir-core to rc-core conversion Jarod Wilson
2010-11-10  1:50   ` Mauro Carvalho Chehab
2010-11-10  3:25     ` Jarod Wilson
2010-11-10  4:33       ` Mauro Carvalho Chehab
2010-11-10  9:28       ` David Härdeman
2010-11-10  9:24     ` David Härdeman [this message]
2010-11-10 12:49       ` Mauro Carvalho Chehab
2010-11-10 13:06         ` David Härdeman
2010-11-10 16:24           ` Mauro Carvalho Chehab
2010-11-10 22:01             ` David Härdeman
2010-11-11 13:54               ` Mauro Carvalho Chehab
2010-11-11 15:19                 ` David Härdeman
2010-11-11 16:00                   ` Mauro Carvalho Chehab
2010-11-11 20:35                     ` David Härdeman
2010-11-11 23:40                       ` Jarod Wilson
2010-11-12  4:00                         ` Mauro Carvalho Chehab
2010-11-12 12:12                           ` David Härdeman
2010-11-12 12:56                             ` Mauro Carvalho Chehab
2010-11-12 14:08                               ` David Härdeman
2010-11-12 14:15                                 ` Mauro Carvalho Chehab
2010-11-12 12:03                         ` David Härdeman
2010-11-11 14:06               ` Mauro Carvalho Chehab
2010-11-09 10:27 ` David Härdeman
2010-11-09 10:34   ` Mauro Carvalho Chehab

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=33c8487ce0141587f695d9719289467e@hardeman.nu \
    --to=david@hardeman.nu \
    --cc=jarod@wilsonet.com \
    --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.