From: "Jon Arne Jørgensen" <jonarne@jonarne.no>
To: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Cc: "Jon Arne Jørgensen" <jonarne@jonarne.no>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
hverkuil@xs4all.nl, elezegarcia@gmail.com
Subject: Re: [RFC V1 0/8] Add a driver for somagic smi2021
Date: Wed, 20 Mar 2013 11:11:46 +0100 [thread overview]
Message-ID: <20130320101146.GN17291@dell.arpanet.local> (raw)
In-Reply-To: <20130318000507.GA2456@localhost>
On Sun, Mar 17, 2013 at 09:05:08PM -0300, Ezequiel Garcia wrote:
> Hi Jon,
>
> On Sun, Mar 17, 2013 at 09:01:58PM +0100, Jon Arne Jørgensen wrote:
> > On Fri, Mar 15, 2013 at 09:08:58AM -0300, Ezequiel Garcia wrote:
> > > On Thu, Mar 14, 2013 at 03:06:56PM +0100, Jon Arne Jørgensen wrote:
> > > > This patch-set will add a driver for the Somagic SMI2021 chip.
> > > >
> > > > This chip is found inside different usb video-capture devices.
> > > > Most of them are branded as EasyCap, but there also seems to be
> > > > some other brands selling devices with this chip.
> > > >
> > > > This driver is split into two modules, where one is called smi2021-bootloader,
> > > > and the other is just called smi2021.
> > > >
> > > > The bootloader is responsible for the upload of a firmware that is needed by some
> > > > versions of the devices.
> > > >
> > > > All Somagic devices that need firmware seems to identify themselves
> > > > with the usb product id 0x0007. There is no way for the kernel to know
> > > > what firmware to upload to the device without user interaction.
> > > >
> > > > If there is only one firmware present on the computer, the kernel
> > > > will upload that firmware to any device that identifies as 0x0007.
> > > > If there are multiple Somagic firmwares present, the user will have to pass
> > > > a module parameter to the smi2021-bootloader module to tell what firmware to use.
> > > >
> > >
> > > Nice job!
> > >
> > Thanks :)
> >
> > > I have some minor comments on each patch, but also I don't agree
> > > with the patch splitting: what's the point in splitting and sending
> > > one patch per file?
> > >
> > > It doesn't make it any easier to review, so why don't you just
> > > send one patch: "Introduce smi2021 driver"?
> > >
> > > The rule is one patch per change, and I believe this whole patchset
> > > is just one change: adding a new driver.
> > >
> >
> > I think I read another patch to this mailinglist, where someone was told
> > to split his patch into one mail per file, but I can't find that thread
> > now :)
> >
> > I will send the next version as a single mail, and see what happens...
> >
>
> As you will soon realize, the patch preparation is equally important as the
> patch content itself. Often, it takes the same time to implement or
> fix something, as it takes to prepare the patchset carefully.
>
I'm beginning to realize that yes :)
> When deciding how to prepare your patches you have to keep two main things in mind:
>
> * The kernel build can never be broken, in any configuration and in any
> point of the kernel history (in other words, by any patch of a patchset).
> This is called 'keep the bisectability' because it's essential
> to make 'git bisect' work properly.
>
Then it does make good sense to send this whole driver as a singe email.
> * Do as much as possible to facilitate reviews from other people.
> This is also important because patches tend to be accepted quicker
> if they recieve attention (reviews, testing, etc.).
>
> In this particular case, I think that the easier way to review is to be
> able to see the complete driver in a single patch. Of course, I can be
> wrong, so feel free to correct me.
>
> Please note that the reviews I made where almost nitpicks, and the
> driver looks good in general. I cannot provide any testing for lack of hardware.
>
> Also, for your next patch, add the output of v4l2-compliance tool,
> showing it passes all the tests. This shows your driver is in good shape.
> Get v4l2-compliancefrom the git repo, as distribution often provide
> an outdated version.
>
I'll do this.
> (And another thing, please fix your mail client: the reply-to is pointing
> to '20130315120856.GA2989@localhost.arpanet.local'.)
>
Yes, my first attempts to send mail from mutt, classic PEBCAP...
Again, thank you for your time.
> Thanks for your work and best regards,
> --
> Ezequiel García, Free Electrons
> Embedded Linux, Kernel and Android Engineering
> http://free-electrons.com
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2013-03-20 10:08 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-14 14:06 Jon Arne Jørgensen
2013-03-14 14:06 ` [RFC V1 1/8] smi2021: Add the header file Jon Arne Jørgensen
2013-03-15 12:13 ` Ezequiel Garcia
2013-03-17 20:16 ` Jon Arne Jørgensen
2013-03-14 14:06 ` [RFC V1 2/8] smi2021: Add smi2021_main.c Jon Arne Jørgensen
2013-03-15 12:20 ` Ezequiel Garcia
2013-03-17 20:14 ` Jon Arne Jørgensen
2013-03-18 7:58 ` Hans Verkuil
2013-03-20 9:30 ` Jon Arne Jørgensen
2013-03-18 8:30 ` Hans Verkuil
2013-03-20 9:31 ` Jon Arne Jørgensen
2013-03-14 14:06 ` [RFC V1 3/8] smi2021: Add smi2021_i2c.c Jon Arne Jørgensen
2013-03-15 12:27 ` Ezequiel Garcia
2013-03-17 19:59 ` Jon Arne Jørgensen
2013-03-18 8:04 ` Hans Verkuil
2013-03-20 9:32 ` Jon Arne Jørgensen
2013-03-14 14:07 ` [RFC V1 4/8] smi2021: Add smi2021_v4l2.c Jon Arne Jørgensen
2013-03-15 12:33 ` Ezequiel Garcia
2013-03-17 20:27 ` Jon Arne Jørgensen
2013-03-18 8:12 ` Hans Verkuil
2013-03-20 9:43 ` Jon Arne Jørgensen
2013-03-20 10:07 ` Hans Verkuil
2013-03-18 8:29 ` Hans Verkuil
2013-03-20 9:48 ` Jon Arne Jørgensen
2013-03-20 10:10 ` Hans Verkuil
2013-03-20 10:16 ` Jon Arne Jørgensen
2013-03-20 10:21 ` Hans Verkuil
2013-03-20 11:09 ` Jon Arne Jørgensen
2013-03-14 14:07 ` [RFC V1 5/8] smi2021: Add smi2021_video.c Jon Arne Jørgensen
2013-03-15 12:40 ` Ezequiel Garcia
2013-03-17 20:19 ` Jon Arne Jørgensen
2013-03-18 8:17 ` Hans Verkuil
2013-03-18 8:58 ` Bjørn Mork
2013-03-20 10:06 ` Jon Arne Jørgensen
2013-03-20 10:09 ` Hans Verkuil
2013-03-14 14:07 ` [RFC V1 6/8] smi2021: Add smi2021_audio.c Jon Arne Jørgensen
2013-03-14 14:07 ` [RFC V1 7/8] smi2021: Add smi2021_bl.c Jon Arne Jørgensen
2013-03-18 9:31 ` Bjørn Mork
2013-03-20 8:59 ` Jon Arne Jørgensen
2013-03-14 14:07 ` [RFC V1 8/8] smi2021: Add Kconfig and Makefiles Jon Arne Jørgensen
2013-03-15 12:08 ` [RFC V1 0/8] Add a driver for somagic smi2021 Ezequiel Garcia
2013-03-17 20:01 ` Jon Arne Jørgensen
2013-03-18 0:05 ` Ezequiel Garcia
2013-03-20 10:11 ` Jon Arne Jørgensen [this message]
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=20130320101146.GN17291@dell.arpanet.local \
--to=jonarne@jonarne.no \
--cc=elezegarcia@gmail.com \
--cc=ezequiel.garcia@free-electrons.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.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
all inboxes | Powered by JetHome®