From: Greg KH <gregkh@linuxfoundation.org>
To: Peng Fan <peng.fan@nxp.com>
Cc: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"krzysztof.kozlowski+dt@linaro.org"
<krzysztof.kozlowski+dt@linaro.org>,
"rafael@kernel.org" <rafael@kernel.org>,
"andriy.shevchenko@linux.intel.com"
<andriy.shevchenko@linux.intel.com>,
"hdegoede@redhat.com" <hdegoede@redhat.com>,
"jgg@ziepe.ca" <jgg@ziepe.ca>,
"saravanak@google.com" <saravanak@google.com>,
"keescook@chromium.org" <keescook@chromium.org>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"abel.vesa@linaro.org" <abel.vesa@linaro.org>
Subject: Re: [PATCH] devres: provide API devm_kstrndup
Date: Thu, 4 May 2023 18:08:46 +0900 [thread overview]
Message-ID: <2023050445-blizzard-splendid-cf1c@gregkh> (raw)
In-Reply-To: <DU0PR04MB9417B76952E9B21E89946C09886D9@DU0PR04MB9417.eurprd04.prod.outlook.com>
On Thu, May 04, 2023 at 08:59:41AM +0000, Peng Fan wrote:
> Hi Greg,
>
> > -----Original Message-----
> > From: Greg KH <gregkh@linuxfoundation.org>
> > Sent: 2023年5月4日 16:58
> > To: Peng Fan (OSS) <peng.fan@oss.nxp.com>
> > Cc: robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org;
> > rafael@kernel.org; andriy.shevchenko@linux.intel.com;
> > hdegoede@redhat.com; jgg@ziepe.ca; saravanak@google.com;
> > keescook@chromium.org; tglx@linutronix.de; linux-kernel@vger.kernel.org;
> > abel.vesa@linaro.org; Peng Fan <peng.fan@nxp.com>
> > Subject: Re: [PATCH] devres: provide API devm_kstrndup
> >
> > On Thu, May 04, 2023 at 03:57:54PM +0800, Peng Fan (OSS) wrote:
> > > From: Peng Fan <peng.fan@nxp.com>
> > >
> > > This patch introduces devm_kstrndup API so that the device's driver
> > > can allocate memory and copy string.
> > >
> > > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > > ---
> > > drivers/base/devres.c | 28 ++++++++++++++++++++++++++++
> > > include/linux/device.h | 1 +
> > > 2 files changed, 29 insertions(+)
> >
> > We can not add apis with no users, please submit this at the same time a
> > driver needs it.
> >
> > And what driver would need to copy a string?
>
> https://lore.kernel.org/all/20230504085506.504474-1-peng.fan@oss.nxp.com/
Please never add new module parameters, ESPECIALLY for a driver. This
is not the 1990's anymore, please use the correct apis instead (hint,
sysfs, configfs, DT, etc.)
> Should I submit V2 with the upper patch in a patchset?
I can't take this as-is, for the reason I said, so yes. And again, your
dependant patch is not ok either, so I don't think this is needed
anymore.
thanks,
greg k-h
next prev parent reply other threads:[~2023-05-04 9:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-04 7:57 [PATCH] devres: provide API devm_kstrndup Peng Fan (OSS)
2023-05-04 8:58 ` Greg KH
2023-05-04 8:59 ` Peng Fan
2023-05-04 9:08 ` Greg KH [this message]
2023-05-04 14:38 ` Andy Shevchenko
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=2023050445-blizzard-splendid-cf1c@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=abel.vesa@linaro.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=hdegoede@redhat.com \
--cc=jgg@ziepe.ca \
--cc=keescook@chromium.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peng.fan@nxp.com \
--cc=peng.fan@oss.nxp.com \
--cc=rafael@kernel.org \
--cc=robh+dt@kernel.org \
--cc=saravanak@google.com \
--cc=tglx@linutronix.de \
/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.