Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp123000pxp; Wed, 16 Mar 2022 01:52:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyctuIZGQYeY/OAbOK7TYW5LqQQagzEkXBZfKVmW2HNHcugudcskxznc9kupSc9S9TctA6D X-Received: by 2002:a17:90a:d3d3:b0:1bf:2e8d:3175 with SMTP id d19-20020a17090ad3d300b001bf2e8d3175mr9249346pjw.2.1647420750244; Wed, 16 Mar 2022 01:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647420750; cv=none; d=google.com; s=arc-20160816; b=cEFxayXYiBps3pC1y4BTlPsBt8zWqZ4KpSIRVes7TfLuV2D/+gQg+pmAkakAHsPjpL BuYFl7On+QQ/wBw18UyTgPb82HMq73vB0FhKUHZucxeMQ7l59gTbb64BZZ2ImXSXB1fH Ozl59VacvvpBQ6X+/8CGFOO71xeHLTVK3AVg/EsQfvanVTS8qPFsiVUwsvKjhSy3eZXQ MjZkwTb2BFJf1+uTIrt7chOZ5YArOwRNPmkHlE8E5QoBj4KHy9wGwCX/0gKDIkwkvVyh xZvScUq2LOwcRPNdBV3iaeVFsAmfdAVYCFqJHtIRpP/VRX7d7KQyJfMV7ceIkPdIg9Ns q8hg== 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=hFmat0lmKJuvGjhTkHmi7yYiJqs/NBeQLcu+ammmDLU=; b=Fa/nbU3Qu+O/goJQwyI4ZxVXCtUlGjag/1hJfs29mwJA4HnXqRgDwfNKjDAdmu3PYV fpJ6R9s3j8uLEW7kXVM5ALt5rNMNaeOrxT5UJLFYv4Km46H5TJlztNQs3BhKhq8MjOtn WglPN0DNzHmovxiMwMtDrElTLsBNYwnmW776tgDoFB7PwoTMkmK5xnw7qhYZjN4f4Xki E4h+13j/nUnVo2HbmFfAkF/IGpKiehvopc82Qw+uumX4gcjTaf6BYeFhimAUZ2cpgMyL qmQDnlEAeMO8B8knH4Pd9yceC1eqE5xovNy5Irmcstd3IkIxTK6y79l+vYPIu8G43CVI aKQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=BjxTrttx; 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 m24-20020a17090b069800b001bd14e030b1si4067019pjz.137.2022.03.16.01.52.18; Wed, 16 Mar 2022 01:52:30 -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=BjxTrttx; 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 S1346087AbiCOIyS (ORCPT + 99 others); Tue, 15 Mar 2022 04:54:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242340AbiCOIyQ (ORCPT ); Tue, 15 Mar 2022 04:54:16 -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 3AA8B2701; Tue, 15 Mar 2022 01:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1647334385; x=1678870385; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=hFmat0lmKJuvGjhTkHmi7yYiJqs/NBeQLcu+ammmDLU=; b=BjxTrttxNs3AFyOvsbjkLiOvzY3Ao3VdH53pSiA4QDh2MmPaRzms2YyS GO0Db6H5Yo65WzReBVi21wE0EN09bdCfWYzqBVLTqKGz7DlyXJ/Y4Uub4 Z+oAWhHjWUH3//W1T/Zyqpw2hs+A551u1Zw9c1HcPPyyLq4/oyFL3sSaO k=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-02.qualcomm.com with ESMTP; 15 Mar 2022 01:53:05 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 01:53:04 -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:53:04 -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:53:01 -0700 Message-ID: <0ef5aa68-fc1c-6f0b-a1cb-46c5548952db@quicinc.com> Date: Tue, 15 Mar 2022 16:52:58 +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> <9cbb2e86-640f-4b5d-22ff-00c63a1b9743@quicinc.com> <99845680-c2a5-2538-a57c-6fbf395faa8b@arm.com> From: Jinlong Mao In-Reply-To: <99845680-c2a5-2538-a57c-6fbf395faa8b@arm.com> 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/15/2022 4:42 PM, Suzuki K Poulose wrote: > On 15/03/2022 08:36, Jinlong Mao wrote: >> 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 ? > > Thats what I just said above. The patch looks good to me, I can queue > this in the next cycle. Thanks Suzuki. Best Regards Jinlong Mao > > Kind regards > Suzuki > >> >> Thanks >> Jinlong Mao >