From: Shawn Guo <shawn.guo@linaro.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Luis Chamberlain <mcgrof@kernel.org>,
Vinod Koul <vkoul@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Lee Jones <lee.jones@linaro.org>, Arnd Bergmann <arnd@arndb.de>,
Kalle Valo <kvalo@codeaurora.org>,
Stuart Hayes <stuart.w.hayes@gmail.com>,
Ohad Ben-Cohen <ohad@wizery.com>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
James Smart <james.smart@broadcom.com>,
Dick Kennedy <dick.kennedy@broadcom.com>,
Timur Tabi <timur@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-media@vger.kernel.org, linux-wireless@vger.kernel.org,
linux-remoteproc@vger.kernel.org, linux-scsi@vger.kernel.org,
linux-serial@vger.kernel.org, alsa-devel@alsa-project.org
Subject: Re: [PATCH] firmware: replace HOTPLUG with UEVENT in FW_ACTION defines
Date: Sun, 25 Apr 2021 16:37:55 +0800 [thread overview]
Message-ID: <20210425083754.GF15093@dragon> (raw)
In-Reply-To: <YIUI3TZf/sZ6Sd3K@kroah.com>
On Sun, Apr 25, 2021 at 08:14:53AM +0200, Greg Kroah-Hartman wrote:
> On Sun, Apr 25, 2021 at 10:00:24AM +0800, Shawn Guo wrote:
> > With commit 312c004d36ce ("[PATCH] driver core: replace "hotplug" by
> > "uevent"") already in the tree over a decade, update the name of
> > FW_ACTION defines to follow semantics, and reflect what the defines are
> > really meant for, i.e. whether or not generate user space event.
> >
> > Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> > ---
> > drivers/dma/imx-sdma.c | 2 +-
> > drivers/media/platform/exynos4-is/fimc-is.c | 2 +-
> > drivers/mfd/iqs62x.c | 2 +-
> > drivers/misc/lattice-ecp3-config.c | 2 +-
> > drivers/net/wireless/ti/wlcore/main.c | 2 +-
> > drivers/platform/x86/dell/dell_rbu.c | 2 +-
> > drivers/remoteproc/remoteproc_core.c | 2 +-
> > drivers/scsi/lpfc/lpfc_init.c | 2 +-
> > drivers/tty/serial/ucc_uart.c | 2 +-
> > include/linux/firmware.h | 4 ++--
> > lib/test_firmware.c | 10 +++++-----
> > sound/soc/codecs/wm8958-dsp2.c | 6 +++---
> > 12 files changed, 19 insertions(+), 19 deletions(-)
> >
> > diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
> > index d5590c08db51..e2b559945c11 100644
> > --- a/drivers/dma/imx-sdma.c
> > +++ b/drivers/dma/imx-sdma.c
> > @@ -1829,7 +1829,7 @@ static int sdma_get_firmware(struct sdma_engine *sdma,
> > int ret;
> >
> > ret = request_firmware_nowait(THIS_MODULE,
> > - FW_ACTION_HOTPLUG, fw_name, sdma->dev,
> > + FW_ACTION_UEVENT, fw_name, sdma->dev,
>
> Naming is hard :)
>
> I can take this after -rc1, but really, is it needed?
>
> What problem does this renaming solve?
To me, it's a leftover from commit 312c004d36ce that made the rename at
driver core. With this patch, the define will be more matching its user
request_firmware_nowait(..., bool uevent, ...).
> Who is the current name
> confusing?
I'm one at least :)
Shawn
next prev parent reply other threads:[~2021-04-25 8:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-25 2:00 [PATCH] firmware: replace HOTPLUG with UEVENT in FW_ACTION defines Shawn Guo
2021-04-25 6:14 ` Greg Kroah-Hartman
2021-04-25 8:37 ` Shawn Guo [this message]
2021-04-26 7:06 ` Lee Jones
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=20210425083754.GF15093@dragon \
--to=shawn.guo@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=arnd@arndb.de \
--cc=bjorn.andersson@linaro.org \
--cc=broonie@kernel.org \
--cc=dick.kennedy@broadcom.com \
--cc=dmaengine@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=james.smart@broadcom.com \
--cc=kvalo@codeaurora.org \
--cc=lee.jones@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=mathieu.poirier@linaro.org \
--cc=mcgrof@kernel.org \
--cc=mchehab@kernel.org \
--cc=ohad@wizery.com \
--cc=stuart.w.hayes@gmail.com \
--cc=timur@kernel.org \
--cc=vkoul@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;
as well as URLs for NNTP newsgroup(s).