Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3805045pxp; Tue, 15 Mar 2022 06:41:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxm52uWnRxsEai5q8mFjioOG02h/FKc+/GkBuxbxvTCM3Yo7wE2d16ig7dBK1OV0rSQdU3Y X-Received: by 2002:a17:90b:4ad2:b0:1bf:d47:8077 with SMTP id mh18-20020a17090b4ad200b001bf0d478077mr4599704pjb.85.1647351687634; Tue, 15 Mar 2022 06:41:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647351687; cv=none; d=google.com; s=arc-20160816; b=CNIpOVege47SGy3sh+6ygGyJ23hnQbnEpl7PKb7xBEztSMgA1VCMfpy3Y6IvC/bP/i D3WWY0oISalSD0ugSKJoFoDLWKr33/jdfJ4QyDdL1zCml7YDwsf0lXZcTzxwqbmVO98R aF6AUvtYZz2JABBpgF3MdoOfsjcuuiHYj2IR/HVMnXUs6yJZh0FpmspMPTmZdtrcwnbg XhT7o905/0OnLe2RuZ0qMmQ7aa5bd6aWfqWym66DncEIcyjV+cwYJuz1fpPIjO3acsnZ FQwL9qIdJhPk/r0l3fCfk3mJT+yrxPvozv5Ee9QpcOgJGF46ZyECc1eb8DyRaR6o7wEo 7Lww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=n0A3plTvIIoubhjtpKetM9js3bT0UPpG0+z4b0bbcEY=; b=yuhzgeBDlldtvgSswfXhT6PCX5OJI76YLB1z7zhU0SltNuG/BurcSDQXBC/vRwq/6P Yq4m5rs3kGj3MGmX+wxCbZgm3+prh/J8eWD1zNl1hC7IZyOk0UGFVhRIID2sBOV2BwOo q7iUpWwx+EeFKHo9Wa93T3t6/hPnUi4LkeR+6Qxwk/ocExLGN1G8g7AsoA6zGTiqVsXj BqsjU41B/C3K7Z2TOQkwqfF5VwRmJ8cetBBh8jAF3ClHZJGvP+GPDMLcDh/yO1MGO177 MG26ovgGH2sSK/jkx90tEA0sRJBzKWWrCBRlOrlN8CtsPpIIhV2l7WgXk1X7+XCI6lfX wksw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Ms1c+8bb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm18-20020a056a00339200b004f785e0f808si13398696pfb.104.2022.03.15.06.41.12; Tue, 15 Mar 2022 06:41:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Ms1c+8bb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346068AbiCOIiW (ORCPT + 99 others); Tue, 15 Mar 2022 04:38:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346165AbiCOIiH (ORCPT ); Tue, 15 Mar 2022 04:38:07 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05EA547554; Tue, 15 Mar 2022 01:36:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1647333415; x=1678869415; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=n0A3plTvIIoubhjtpKetM9js3bT0UPpG0+z4b0bbcEY=; b=Ms1c+8bbM6HP8ff/HwcDHRy9HmAijJJqRo7kIi44QcQKWnH8LmT7P4/f r5FTZ+CaT5R7cfA9SkU0kUYxoPhq2oYjw2d6wTSAW9ne798nBbZMQnD+z zbXubvT4jpA99crrQevNU4lCVpGcb7CaGDklQ8GUJu0ZoTaa3CZw8AqDL g=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 15 Mar 2022 01:36:55 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 01:36:55 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Tue, 15 Mar 2022 01:36:54 -0700 Received: from [10.253.9.165] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 15 Mar 2022 01:36:51 -0700 Message-ID: <9cbb2e86-640f-4b5d-22ff-00c63a1b9743@quicinc.com> Date: Tue, 15 Mar 2022 16:36:48 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH v3] coresight: core: Fix coresight device probe failure issue Content-Language: en-US To: Suzuki K Poulose , Mathieu Poirier , Mike Leach , Leo Yan , Alexander Shishkin CC: , , , , "Tingwei Zhang" , Yuanfang Zhang , Tao Zhang , Hao Zhang References: <20220309142206.15632-1-quic_jinlmao@quicinc.com> From: Jinlong Mao In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/10/2022 5:10 PM, Suzuki K Poulose wrote: > Hi Jinlong > > > On 09/03/2022 14:22, Mao Jinlong wrote: >> 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. >> >> Suggested-by: Suzuki K Poulose >> Suggested-by: Mike Leach >> Signed-off-by: Mao Jinlong > > Thanks for the rework. The patch looks good to me. > > Suzuki Thanks Suzuki. Hi Mathieu & Mike, Could you please help to review and provide your comments for the PATCH V3 ? Thanks Jinlong Mao