<div dir="ltr"><div dir="ltr">Hi Michael,<br><div><br></div><div>Could you share your opinion about this new patch please? </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 11, 2024 at 10:04 AM Lidong Zhong <<a href="mailto:lidong.zhong@suse.com">lidong.zhong@suse.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We noticed the following nuisance messages during boot process<br>
<br>
[ 7.120610][ T1060] vio vio: uevent: failed to send synthetic uevent<br>
[ 7.122281][ T1060] vio 4000: uevent: failed to send synthetic uevent<br>
[ 7.122304][ T1060] vio 4001: uevent: failed to send synthetic uevent<br>
[ 7.122324][ T1060] vio 4002: uevent: failedto send synthetic uevent<br>
[ 7.122345][ T1060] vio 4004: uevent: failed to send synthetic uevent<br>
<br>
It's caused by either vio_register_device_node() fails to set dev->of_node<br>
or the missing "compatible" property. To keep align with the definition of<br>
modalias in modalias_show(), we remove the return of ENODEV in such cases.<br>
The failure messages can also be suppressed with this change.<br>
<br>
v2: keep align the definition of modalias with modalias_show()<br>
Signed-off-by: Lidong Zhong <<a href="mailto:lidong.zhong@suse.com" target="_blank">lidong.zhong@suse.com</a>><br>
---<br>
arch/powerpc/platforms/pseries/vio.c | 8 ++------<br>
1 file changed, 2 insertions(+), 6 deletions(-)<br>
<br>
diff --git a/arch/powerpc/platforms/pseries/vio.c b/arch/powerpc/platforms/pseries/vio.c<br>
index 90ff85c879bf..b2babfdbc40b 100644<br>
--- a/arch/powerpc/platforms/pseries/vio.c<br>
+++ b/arch/powerpc/platforms/pseries/vio.c<br>
@@ -1592,13 +1592,9 @@ static int vio_hotplug(const struct device *dev, struct kobj_uevent_env *env)<br>
const char *cp;<br>
<br>
dn = dev->of_node;<br>
- if (!dn)<br>
- return -ENODEV;<br>
- cp = of_get_property(dn, "compatible", NULL);<br>
- if (!cp)<br>
- return -ENODEV;<br>
+ if (dn && (cp = of_get_property(dn, "compatible", NULL)))<br>
+ add_uevent_var(env, "MODALIAS=vio:T%sS%s", vio_dev->type, cp);<br>
<br>
- add_uevent_var(env, "MODALIAS=vio:T%sS%s", vio_dev->type, cp);<br>
return 0;<br>
}<br>
<br>
-- <br>
2.35.3<br>
<br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Regards,<div>Lidong Zhong</div></div></div></div>