All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] nvmem: fixes for 6.17
@ 2025-09-12 13:13 srini
  2025-09-12 13:13 ` [PATCH 1/1] nvmem: layouts: fix automatic module loading srini
  0 siblings, 1 reply; 2+ messages in thread
From: srini @ 2025-09-12 13:13 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, Srinivas Kandagatla

From: Srinivas Kandagatla <srini@kernel.org>

Hi Greg,

Here is one nvmem fix which can go for 6.17 release
If its not too late, could you please queue these as 6.17 material.

Fix is mainly to do with module loading of layouts.

Thanks,
Srini


Michael Walle (1):
  nvmem: layouts: fix automatic module loading

 drivers/nvmem/layouts.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

-- 
2.50.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] nvmem: layouts: fix automatic module loading
  2025-09-12 13:13 [PATCH 0/1] nvmem: fixes for 6.17 srini
@ 2025-09-12 13:13 ` srini
  0 siblings, 0 replies; 2+ messages in thread
From: srini @ 2025-09-12 13:13 UTC (permalink / raw)
  To: gregkh
  Cc: linux-kernel, Michael Walle, stable, Miquel Raynal,
	Srinivas Kandagatla

From: Michael Walle <mwalle@kernel.org>

To support loading of a layout module automatically the MODALIAS
variable in the uevent is needed. Add it.

Fixes: fc29fd821d9a ("nvmem: core: Rework layouts to become regular devices")
Cc: stable@vger.kernel.org
Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
 drivers/nvmem/layouts.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/nvmem/layouts.c b/drivers/nvmem/layouts.c
index 65d39e19f6ec..f381ce1e84bd 100644
--- a/drivers/nvmem/layouts.c
+++ b/drivers/nvmem/layouts.c
@@ -45,11 +45,24 @@ static void nvmem_layout_bus_remove(struct device *dev)
 	return drv->remove(layout);
 }
 
+static int nvmem_layout_bus_uevent(const struct device *dev,
+				   struct kobj_uevent_env *env)
+{
+	int ret;
+
+	ret = of_device_uevent_modalias(dev, env);
+	if (ret != ENODEV)
+		return ret;
+
+	return 0;
+}
+
 static const struct bus_type nvmem_layout_bus_type = {
 	.name		= "nvmem-layout",
 	.match		= nvmem_layout_bus_match,
 	.probe		= nvmem_layout_bus_probe,
 	.remove		= nvmem_layout_bus_remove,
+	.uevent		= nvmem_layout_bus_uevent,
 };
 
 int __nvmem_layout_driver_register(struct nvmem_layout_driver *drv,
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-12 13:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-12 13:13 [PATCH 0/1] nvmem: fixes for 6.17 srini
2025-09-12 13:13 ` [PATCH 1/1] nvmem: layouts: fix automatic module loading srini

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.