* [PATCH] nvmem: layouts: fix nvmem_layout_bus_uevent
@ 2025-10-13 11:59 Wentao Guan
2025-10-13 12:23 ` Srinivas Kandagatla
0 siblings, 1 reply; 5+ messages in thread
From: Wentao Guan @ 2025-10-13 11:59 UTC (permalink / raw)
To: srini
Cc: miquel.raynal, mwalle, gregkh, linux-kernel, zhanjun, niecheng1,
Wentao Guan, WangYuli
correctly check the ENODEV return value.
Fixes: 810b790033cc ("nvmem: layouts: fix automatic module loading")
Co-developed-by: WangYuli <wangyl5933@chinaunicom.cn>
Signed-off-by: WangYuli <wangyl5933@chinaunicom.cn>
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
---
drivers/nvmem/layouts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvmem/layouts.c b/drivers/nvmem/layouts.c
index f381ce1e84bd..7ebe53249035 100644
--- a/drivers/nvmem/layouts.c
+++ b/drivers/nvmem/layouts.c
@@ -51,7 +51,7 @@ static int nvmem_layout_bus_uevent(const struct device *dev,
int ret;
ret = of_device_uevent_modalias(dev, env);
- if (ret != ENODEV)
+ if (ret != -ENODEV)
return ret;
return 0;
--
2.20.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] nvmem: layouts: fix nvmem_layout_bus_uevent
2025-10-13 11:59 [PATCH] nvmem: layouts: fix nvmem_layout_bus_uevent Wentao Guan
@ 2025-10-13 12:23 ` Srinivas Kandagatla
2025-10-13 12:31 ` Wentao Guan
0 siblings, 1 reply; 5+ messages in thread
From: Srinivas Kandagatla @ 2025-10-13 12:23 UTC (permalink / raw)
To: Wentao Guan, srini
Cc: miquel.raynal, mwalle, gregkh, linux-kernel, zhanjun, niecheng1,
WangYuli
On 10/13/25 12:59 PM, Wentao Guan wrote:
> correctly check the ENODEV return value.
>
> Fixes: 810b790033cc ("nvmem: layouts: fix automatic module loading")
Missing CC Stable
--srini
> Co-developed-by: WangYuli <wangyl5933@chinaunicom.cn>
> Signed-off-by: WangYuli <wangyl5933@chinaunicom.cn>
> Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
> ---
> drivers/nvmem/layouts.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/nvmem/layouts.c b/drivers/nvmem/layouts.c
> index f381ce1e84bd..7ebe53249035 100644
> --- a/drivers/nvmem/layouts.c
> +++ b/drivers/nvmem/layouts.c
> @@ -51,7 +51,7 @@ static int nvmem_layout_bus_uevent(const struct device *dev,
> int ret;
>
> ret = of_device_uevent_modalias(dev, env);
> - if (ret != ENODEV)
> + if (ret != -ENODEV)
> return ret;
>
> return 0;
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] nvmem: layouts: fix nvmem_layout_bus_uevent
2025-10-13 12:23 ` Srinivas Kandagatla
@ 2025-10-13 12:31 ` Wentao Guan
2025-10-13 12:33 ` Srinivas Kandagatla
0 siblings, 1 reply; 5+ messages in thread
From: Wentao Guan @ 2025-10-13 12:31 UTC (permalink / raw)
To: Srinivas Kandagatla
Cc: miquel.raynal, mwalle, Greg KH, linux-kernel, 占俊,
聂诚, WangYuli
Hi,
Thanks for your reply.
How to add the CC stable now?
Send v2 or add email CC or ...?
BRs
Wentao Guan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] nvmem: layouts: fix nvmem_layout_bus_uevent
2025-10-13 12:31 ` Wentao Guan
@ 2025-10-13 12:33 ` Srinivas Kandagatla
0 siblings, 0 replies; 5+ messages in thread
From: Srinivas Kandagatla @ 2025-10-13 12:33 UTC (permalink / raw)
To: Wentao Guan, Srinivas Kandagatla
Cc: miquel.raynal, mwalle, Greg KH, linux-kernel, 占俊,
聂诚, WangYuli
On 10/13/25 1:31 PM, Wentao Guan wrote:
> Hi,
>
> Thanks for your reply.
> How to add the CC stable now?
> Send v2 or add email CC or ...?
v2 please
--srini
>
> BRs
> Wentao Guan
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] nvmem: layouts: fix nvmem_layout_bus_uevent
@ 2025-11-14 11:05 srini
0 siblings, 0 replies; 5+ messages in thread
From: srini @ 2025-11-14 11:05 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Wentao Guan, stable, WangYuli, Srinivas Kandagatla
From: Wentao Guan <guanwentao@uniontech.com>
correctly check the ENODEV return value.
Fixes: 810b790033cc ("nvmem: layouts: fix automatic module loading")
CC: stable@vger.kernel.org
Co-developed-by: WangYuli <wangyl5933@chinaunicom.cn>
Signed-off-by: WangYuli <wangyl5933@chinaunicom.cn>
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
Hi Greg,
There is only one nvmem fix in this cycle,
Can you pl pick this fix for 6.18 release.
thanks,
--srini
drivers/nvmem/layouts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvmem/layouts.c b/drivers/nvmem/layouts.c
index f381ce1e84bd..7ebe53249035 100644
--- a/drivers/nvmem/layouts.c
+++ b/drivers/nvmem/layouts.c
@@ -51,7 +51,7 @@ static int nvmem_layout_bus_uevent(const struct device *dev,
int ret;
ret = of_device_uevent_modalias(dev, env);
- if (ret != ENODEV)
+ if (ret != -ENODEV)
return ret;
return 0;
--
2.51.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-11-14 11:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-13 11:59 [PATCH] nvmem: layouts: fix nvmem_layout_bus_uevent Wentao Guan
2025-10-13 12:23 ` Srinivas Kandagatla
2025-10-13 12:31 ` Wentao Guan
2025-10-13 12:33 ` Srinivas Kandagatla
-- strict thread matches above, loose matches on Subject: below --
2025-11-14 11:05 srini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox