From: Dan Carpenter <dan.carpenter@oracle.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: "Paul J. Murphy" <paul.j.murphy@intel.com>,
Martina Krasteva <martinax.krasteva@intel.com>,
Daniele Alessandrelli <daniele.alessandrelli@intel.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Jacopo Mondi <jacopo@jmondi.org>,
Gjorgji Rosikopulos <gjorgjix.rosikopulos@intel.com>,
linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] media: i2c: imx334: Fix an error message
Date: Tue, 09 Feb 2021 13:49:39 +0000 [thread overview]
Message-ID: <20210209134938.GP2696@kadam> (raw)
In-Reply-To: <20210209120804.GD32460@paasikivi.fi.intel.com>
On Tue, Feb 09, 2021 at 02:08:04PM +0200, Sakari Ailus wrote:
> Hi Dan,
>
> On Tue, Feb 09, 2021 at 02:04:48PM +0300, Dan Carpenter wrote:
> > The "ret" variable is uninitialized in this error message.
> >
> > Fixes: 9746b11715c3 ("media: i2c: Add imx334 camera sensor driver")
> > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>
> Thanks for the patch. This has been already addressed by a patch from Hans
> (but not merged yet):
>
> <URL:https://patchwork.linuxtv.org/project/linux-media/patch/917ccfef-b93e-4d90-0b5a-4974145ab187@xs4all.nl/>
>
> > ---
> > When new drivers are merged into the kernel, then could we use the
> > driver prefix? In other words something like this:
> >
> > media: i2c/imx334: Add imx334 camera sensor driver
>
> We've usually had driver's name and Mauro's scripts add media: prefix ---
> unless it's already there. Are you suggesting also the bus should be part
> of it?
No, what I'm saying is when people add a new driver they do:
[PATCH] subsystem: Add new driver for foo345
But it would be better if they added "foo345" to the prefix.
[PATCH] subsystem: foo345: Add new driver for foo345
Doing it the way that I'm suggesting has become more common for the past
four years. Four years ago was when I started complaining that I can't
guess the correct prefix for new drivers. That was also the last time
that someone complained to me that I had used the incorrect patch prefix.
I would argue that Hans used the wrong patch prefix for his patch so
maybe we have just become more mellow these days.
And also I'm surprised that Mauro adds the media: prefix for you instead
of making everyone do it themselves... He's the only person who does
this that I know of.
regards,
dan carpenter
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: "Paul J. Murphy" <paul.j.murphy@intel.com>,
Martina Krasteva <martinax.krasteva@intel.com>,
Daniele Alessandrelli <daniele.alessandrelli@intel.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Jacopo Mondi <jacopo@jmondi.org>,
Gjorgji Rosikopulos <gjorgjix.rosikopulos@intel.com>,
linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] media: i2c: imx334: Fix an error message
Date: Tue, 9 Feb 2021 16:49:39 +0300 [thread overview]
Message-ID: <20210209134938.GP2696@kadam> (raw)
In-Reply-To: <20210209120804.GD32460@paasikivi.fi.intel.com>
On Tue, Feb 09, 2021 at 02:08:04PM +0200, Sakari Ailus wrote:
> Hi Dan,
>
> On Tue, Feb 09, 2021 at 02:04:48PM +0300, Dan Carpenter wrote:
> > The "ret" variable is uninitialized in this error message.
> >
> > Fixes: 9746b11715c3 ("media: i2c: Add imx334 camera sensor driver")
> > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>
> Thanks for the patch. This has been already addressed by a patch from Hans
> (but not merged yet):
>
> <URL:https://patchwork.linuxtv.org/project/linux-media/patch/917ccfef-b93e-4d90-0b5a-4974145ab187@xs4all.nl/>
>
> > ---
> > When new drivers are merged into the kernel, then could we use the
> > driver prefix? In other words something like this:
> >
> > media: i2c/imx334: Add imx334 camera sensor driver
>
> We've usually had driver's name and Mauro's scripts add media: prefix ---
> unless it's already there. Are you suggesting also the bus should be part
> of it?
No, what I'm saying is when people add a new driver they do:
[PATCH] subsystem: Add new driver for foo345
But it would be better if they added "foo345" to the prefix.
[PATCH] subsystem: foo345: Add new driver for foo345
Doing it the way that I'm suggesting has become more common for the past
four years. Four years ago was when I started complaining that I can't
guess the correct prefix for new drivers. That was also the last time
that someone complained to me that I had used the incorrect patch prefix.
I would argue that Hans used the wrong patch prefix for his patch so
maybe we have just become more mellow these days.
And also I'm surprised that Mauro adds the media: prefix for you instead
of making everyone do it themselves... He's the only person who does
this that I know of.
regards,
dan carpenter
next prev parent reply other threads:[~2021-02-09 13:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-09 11:04 [PATCH] media: i2c: imx334: Fix an error message Dan Carpenter
2021-02-09 11:04 ` Dan Carpenter
2021-02-09 12:08 ` Sakari Ailus
2021-02-09 12:08 ` Sakari Ailus
2021-02-09 13:49 ` Dan Carpenter [this message]
2021-02-09 13:49 ` Dan Carpenter
2021-02-09 13:58 ` Sakari Ailus
2021-02-09 13:58 ` Sakari Ailus
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=20210209134938.GP2696@kadam \
--to=dan.carpenter@oracle.com \
--cc=daniele.alessandrelli@intel.com \
--cc=gjorgjix.rosikopulos@intel.com \
--cc=jacopo@jmondi.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=martinax.krasteva@intel.com \
--cc=mchehab@kernel.org \
--cc=paul.j.murphy@intel.com \
--cc=sakari.ailus@linux.intel.com \
/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.