firmware: replace HOTPLUG with UEVENT in FW_ACTION defines
Subsystems (19)
PATCH 1/1 firmware: replace HOTPLUG with UEVENT in FW_ACTION defines
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.
--- 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(-)
drivers/dma/imx-sdma.c +1 -1
@@ -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,GFP_KERNEL , sdma, sdma_load_firmware);return ret;
drivers/media/platform/exynos4-is/fimc-is.c +1 -1
@@ -436,7 +436,7 @@ static void fimc_is_load_firmware(const struct firmware *fw, void *context)static int fimc_is_request_firmware (struct fimc_is *is,const char *fw_name) {return request_firmware_nowait (THIS_MODULE , -FW_ACTION_HOTPLUG , fw_name, &is->pdev->dev, +FW_ACTION_UEVENT , fw_name, &is->pdev->dev,GFP_KERNEL , is, fimc_is_load_firmware); }
drivers/mfd/iqs62x.c +1 -1
@@ -998,7 +998,7 @@ static int iqs62x_probe(struct i2c_client *client)device_property_read_string (&client->dev,"firmware-name" , &fw_name); - ret =request_firmware_nowait (THIS_MODULE ,FW_ACTION_HOTPLUG , + ret =request_firmware_nowait (THIS_MODULE ,FW_ACTION_UEVENT , fw_name ? : iqs62x->dev_desc->fw_name, &client->dev,GFP_KERNEL , iqs62x, iqs62x_firmware_load);
drivers/misc/lattice-ecp3-config.c +1 -1
@@ -198,7 +198,7 @@ static int lattice_ecp3_probe(struct spi_device *spi)spi_set_drvdata (spi, data);init_completion (&data->fw_loaded); - err =request_firmware_nowait (THIS_MODULE ,FW_ACTION_HOTPLUG , + err =request_firmware_nowait (THIS_MODULE ,FW_ACTION_UEVENT ,FIRMWARE_NAME , &spi->dev,GFP_KERNEL , spi, firmware_load);if (err) {
drivers/net/wireless/ti/wlcore/main.c +1 -1
@@ -6784,7 +6784,7 @@ int wlcore_probe(struct wl1271 *wl, struct platform_device *pdev)if (pdev_data->family && pdev_data->family->nvs_name) { nvs_name = pdev_data->family->nvs_name; - ret =request_firmware_nowait (THIS_MODULE ,FW_ACTION_HOTPLUG , + ret =request_firmware_nowait (THIS_MODULE ,FW_ACTION_UEVENT , nvs_name, &pdev->dev,GFP_KERNEL , wl, wlcore_nvs_cb);if (ret <0 ) {
drivers/platform/x86/dell/dell_rbu.c +1 -1
@@ -573,7 +573,7 @@ static ssize_t image_type_write(struct file *filp, struct kobject *kobj,if (!rbu_data.entry_created) {spin_unlock (&rbu_data.lock); req_firm_rc =request_firmware_nowait (THIS_MODULE , -FW_ACTION_NOHOTPLUG ,"dell_rbu" , +FW_ACTION_NOUEVENT ,"dell_rbu" , &rbu_device->dev,GFP_KERNEL , &context, callbackfn_rbu);if (req_firm_rc) {
drivers/remoteproc/remoteproc_core.c +1 -1
@@ -1628,7 +1628,7 @@ static int rproc_trigger_auto_boot(struct rproc *rproc)* We're initiating an asynchronous firmware loading, so we can * be built-in kernel code, without hanging the boot process. */ - ret =request_firmware_nowait (THIS_MODULE ,FW_ACTION_HOTPLUG , + ret =request_firmware_nowait (THIS_MODULE ,FW_ACTION_UEVENT , rproc->firmware, &rproc->dev,GFP_KERNEL , rproc, rproc_auto_boot_callback);if (ret <0 )
drivers/scsi/lpfc/lpfc_init.c +1 -1
@@ -13159,7 +13159,7 @@ lpfc_sli4_request_firmware_update(struct lpfc_hba *phba, uint8_t fw_upgrade)snprintf (file_name,ELX_MODEL_NAME_SIZE ,"%s.grp" , phba->ModelName);if (fw_upgrade ==INT_FW_UPGRADE ) { - ret =request_firmware_nowait (THIS_MODULE ,FW_ACTION_HOTPLUG , + ret =request_firmware_nowait (THIS_MODULE ,FW_ACTION_UEVENT , file_name, &phba->pcidev->dev,GFP_KERNEL , (void *)phba, lpfc_write_firmware);
drivers/tty/serial/ucc_uart.c +1 -1
@@ -1227,7 +1227,7 @@ static int soft_uart_init(struct platform_device *ofdev)* kernel, then we use it. */ ret =request_firmware_nowait (THIS_MODULE , -FW_ACTION_HOTPLUG , filename, &ofdev->dev, +FW_ACTION_UEVENT , filename, &ofdev->dev,GFP_KERNEL , &ofdev->dev, uart_firmware_cont);if (ret) { dev_err(&ofdev->dev,
include/linux/firmware.h +2 -2
@@ -6,8 +6,8 @@#include <linux/compiler.h> #include <linux/gfp.h> -#define FW_ACTION_NOHOTPLUG 0 -#define FW_ACTION_HOTPLUG 1 +#define FW_ACTION_NOUEVENT 0 +#define FW_ACTION_UEVENT 1struct firmware {size_t size;
lib/test_firmware.c +5 -5
@@ -260,8 +260,8 @@ static ssize_t config_show(struct device *dev, len +=scnprintf (buf + len,PAGE_SIZE - len,"send_uevent:\t\t%s\n" , test_fw_config->send_uevent ? -"FW_ACTION_HOTPLUG" : -"FW_ACTION_NOHOTPLUG" ); +"FW_ACTION_UEVENT" : +"FW_ACTION_NOUEVENT" ); len +=scnprintf (buf + len,PAGE_SIZE - len,"into_buf:\t\t%s\n" , test_fw_config->into_buf ?"true" :"false" );
@@ -729,7 +729,7 @@ static ssize_t trigger_custom_fallback_store(struct device *dev,mutex_lock (&test_fw_mutex);release_firmware (test_firmware); test_firmware =NULL ; - rc =request_firmware_nowait (THIS_MODULE ,FW_ACTION_NOHOTPLUG , name, + rc =request_firmware_nowait (THIS_MODULE ,FW_ACTION_NOUEVENT , name, dev,GFP_KERNEL ,NULL , trigger_async_request_cb);if (rc) {
@@ -938,8 +938,8 @@ ssize_t trigger_batched_requests_async_store(struct device *dev,pr_info ("batched loading '%s' custom fallback mechanism %u times\n" , test_fw_config->name, test_fw_config->num_requests); - send_uevent = test_fw_config->send_uevent ?FW_ACTION_HOTPLUG : -FW_ACTION_NOHOTPLUG ; + send_uevent = test_fw_config->send_uevent ?FW_ACTION_UEVENT : +FW_ACTION_NOUEVENT ;for (i =0 ; i < test_fw_config->num_requests; i++) { req = &test_fw_config->reqs[i];
sound/soc/codecs/wm8958-dsp2.c +3 -3
@@ -912,13 +912,13 @@ void wm8958_dsp2_init(struct snd_soc_component *component)/* We don't *require* firmware and don't want to delay boot */ -request_firmware_nowait (THIS_MODULE ,FW_ACTION_HOTPLUG , +request_firmware_nowait (THIS_MODULE ,FW_ACTION_UEVENT ,"wm8958_mbc.wfw" , component->dev,GFP_KERNEL , component, wm8958_mbc_loaded); -request_firmware_nowait (THIS_MODULE ,FW_ACTION_HOTPLUG , +request_firmware_nowait (THIS_MODULE ,FW_ACTION_UEVENT ,"wm8958_mbc_vss.wfw" , component->dev,GFP_KERNEL , component, wm8958_mbc_vss_loaded); -request_firmware_nowait (THIS_MODULE ,FW_ACTION_HOTPLUG , +request_firmware_nowait (THIS_MODULE ,FW_ACTION_UEVENT ,"wm8958_enh_eq.wfw" , component->dev,GFP_KERNEL , component, wm8958_enh_eq_loaded);
Signature · 1 line
2.17.1
Greg Kroah-Hartman
maintainerQuoted 26 lines · Shawn Guo
With commit
312c004d36ce("[PATCH] driver core: replace "hotplug" by "uevent"") already in the tree over a decade, update the name ofFW_ACTIONdefines 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 <[email protected]>--- 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(-)drivers/dma/imx-sdma.c +0
-0
drivers/dma/imx-sdma.c static int sdma_get_firmware(struct sdma_engine *sdma, · line 1832
Quoted 5 lines
drivers/dma/imx-sdma.c +1
-1@@ -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? Who is the current name confusing?
thanks,
greg k-h
Quoted 35 lines · Greg Kroah-Hartman
Quoted 26 lines · Shawn Guo
With commit
312c004d36ce("[PATCH] driver core: replace "hotplug" by "uevent"") already in the tree over a decade, update the name ofFW_ACTIONdefines 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 <[email protected]>--- 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(-)drivers/dma/imx-sdma.c +0
-0drivers/dma/imx-sdma.c static int sdma_get_firmware(struct sdma_engine *sdma, · line 1832
Quoted 5 lines
drivers/dma/imx-sdma.c +1
-1@@ -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 :)
Quoted 3 lines
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, ...).
Quoted 2 lines
Who is the current name
confusing?
I'm one at least :)
Shawn
Quoted 11 lines · Shawn Guo
With commit
312c004d36ce("[PATCH] driver core: replace "hotplug" by "uevent"") already in the tree over a decade, update the name ofFW_ACTIONdefines 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 <[email protected]>--- drivers/dma/imx-sdma.c | 2 +- drivers/media/platform/exynos4-is/fimc-is.c | 2 +-drivers/mfd/iqs62x.c | 2 +-
Quoted 10 lines
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(-)
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
This patch was applied to andersson/remoteproc.git (refs/heads/for-next):
Hello:
This patch was applied to andersson/remoteproc.git (refs/heads/for-next):
Quoted 8 lines · On Sun, 25 Apr 2021 10:00:24 +0800 you wrote:
With commit
312c004d36ce("[PATCH] driver core: replace "hotplug" by "uevent"") already in the tree over a decade, update the name ofFW_ACTIONdefines 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 <[email protected]>[...]
Here is the summary with links:
- firmware: replace HOTPLUG with UEVENT in FW_ACTION defines
https://git.kernel.org/andersson/remoteproc/c/0733d8390532
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html