diff options
author | Mao Jinlong <quic_jinlmao@quicinc.com> | 2022-03-09 06:22:06 -0800 |
---|---|---|
committer | Suzuki K Poulose <suzuki.poulose@arm.com> | 2022-05-04 11:43:59 +0100 |
commit | 8c1d3f79d9ca48e406b78e90e94cf09a8c076bf2 (patch) | |
tree | 27b8807052d3bd03f507830ebbf23b91300998c7 /drivers/hwtracing/stm | |
parent | c86dd9869128156696b4482b2a073790d3db2cfb (diff) |
coresight: core: Fix coresight device probe failure issue
It is possibe that probe failure issue happens when the device
and its child_device's probe happens at the same time.
In coresight_make_links, has_conns_grp is true for parent, but
has_conns_grp is false for child device as has_conns_grp is set
to true in coresight_create_conns_sysfs_group. The probe of parent
device will fail at this condition. Add has_conns_grp check for
child device before make the links and make the process from
device_register to connection_create be atomic to avoid this
probe failure issue.
Cc: stable@vger.kernel.org
Suggested-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Suggested-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
Link: https://lore.kernel.org/r/20220309142206.15632-1-quic_jinlmao@quicinc.com
[ Added Cc stable ]
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Diffstat (limited to 'drivers/hwtracing/stm')
0 files changed, 0 insertions, 0 deletions