aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/coresight/coresight-cpu-debug.c
diff options
context:
space:
mode:
authorMao Jinlong <[email protected]>2022-03-09 14:22:06 +0000
committerSuzuki K Poulose <[email protected]>2022-05-04 10:43:59 +0000
commit8c1d3f79d9ca48e406b78e90e94cf09a8c076bf2 (patch)
tree27b8807052d3bd03f507830ebbf23b91300998c7 /drivers/hwtracing/coresight/coresight-cpu-debug.c
parentcoresight: etm4x: Cleanup TRCRSCTLRn register accesses (diff)
downloadkernel-8c1d3f79d9ca48e406b78e90e94cf09a8c076bf2.tar.gz
kernel-8c1d3f79d9ca48e406b78e90e94cf09a8c076bf2.zip
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: [email protected] Suggested-by: Suzuki K Poulose <[email protected]> Suggested-by: Mike Leach <[email protected]> Signed-off-by: Mao Jinlong <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Added Cc stable ] Signed-off-by: Suzuki K Poulose <[email protected]>
Diffstat (limited to 'drivers/hwtracing/coresight/coresight-cpu-debug.c')
0 files changed, 0 insertions, 0 deletions