Message ID | 20220228133112.3987-1-quic_jinlmao@quicinc.com |
---|---|
State | New |
Headers | show |
Series | coresight: Defer probe when the child dev is not probed | expand |
diff --git a/drivers/hwtracing/coresight/coresight-sysfs.c b/drivers/hwtracing/coresight/coresight-sysfs.c index 34d2a2d31d00..7df9eb59bf2c 100644 --- a/drivers/hwtracing/coresight/coresight-sysfs.c +++ b/drivers/hwtracing/coresight/coresight-sysfs.c @@ -73,8 +73,10 @@ int coresight_add_sysfs_link(struct coresight_sysfs_link *info) if (!info->orig || !info->target || !info->orig_name || !info->target_name) return -EINVAL; - if (!info->orig->has_conns_grp || !info->target->has_conns_grp) + if (!info->orig->has_conns_grp) return -EINVAL; + if (!info->target->has_conns_grp) + return -EPROBE_DEFER; /* first link orig->target */ ret = sysfs_add_link_to_group(&info->orig->dev.kobj,