Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp908686pxp; Wed, 16 Mar 2022 20:56:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXhVkIehN4npKvBsj5k18pzVrgCUeeNbZa64UDkaeBtTyOYWDxZhXLUtzF/RL+Ah0gmVEH X-Received: by 2002:a17:90b:1809:b0:1bf:7e9:bdf5 with SMTP id lw9-20020a17090b180900b001bf07e9bdf5mr3112705pjb.52.1647489409893; Wed, 16 Mar 2022 20:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647489409; cv=none; d=google.com; s=arc-20160816; b=NRKuIcfxbPfZ97wP5Sx/EJmxTky4bB06LJ1D2l2YwT2LmukhqRc7dSh9zjy9fd4nZi zP/w4kEI9D2zjhuFWl6Peup3Zg1uKZrEfyso5pak+S7r7NIcsnPKY+ZCegqzFoZGWS9K 830JOg9qiQUg2g2z6AUi5pGhCn04kvFfz1COrgkm4DNIcoavTxq2fYPX9xZ2OcnwoMEO ufoT/7qSFGrkOFDPE6/D/nu8Rx2uXitdE/mH4xnrgA9j+JbV1V7w7/MKClCSqJTa1o1/ utGd/OUtPJvTwCQAA7fGgWGsytKDyqcO2COSSS89tsogbjFgwNH03IypSEdvvRshiZEF 8gTw== 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:subject:user-agent:mime-version:date:message-id; bh=Tg6NdbEq9iiDREXrRNqhEWJkKGGKaWw1UgcsVgi8iJE=; b=j8r37I6iK2yPJizR4htRndFEtalwyn+FZ2uCiUJHySHP1RixYog+2TMhKxHeHksWgL NYVYXupkOKYXrHsqL3/MaMCKU6KDgfVTcaJkJK49uUQlfZN/JSwir+lVVgKQGdN5Se6c 3A21u8ebfqWLsmDHvhNUGJacoiVroKa65OQ8CtQibdKYTvoYmKFTdBCFEOZ7lgYrYnHv rXOq5IGKSyKfcE6jCCNKe5+JreBjlMcr505JGj5iC4ucc8u2GXWG2iPRNHvKoPsldiXN +gsn4afso27q1jj9nic5HZFbpgOSY/Y8VIh+NyzEhEwEKvhEm362hTrPw/LdAifq0Wig kMFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id bm23-20020a656e97000000b0038205c14f7dsi710158pgb.170.2022.03.16.20.56.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 20:56:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3E20129C81; Wed, 16 Mar 2022 20:42:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235554AbiCOIna (ORCPT + 99 others); Tue, 15 Mar 2022 04:43:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231254AbiCOIn3 (ORCPT ); Tue, 15 Mar 2022 04:43:29 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C391E4CD62; Tue, 15 Mar 2022 01:42:17 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 68DAF1474; Tue, 15 Mar 2022 01:42:17 -0700 (PDT) Received: from [10.57.22.32] (unknown [10.57.22.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 706CD3F766; Tue, 15 Mar 2022 01:42:15 -0700 (PDT) Message-ID: <99845680-c2a5-2538-a57c-6fbf395faa8b@arm.com> Date: Tue, 15 Mar 2022 08:42:13 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v3] coresight: core: Fix coresight device probe failure issue To: Jinlong Mao , Mathieu Poirier , Mike Leach , Leo Yan , Alexander Shishkin Cc: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Tingwei Zhang , Yuanfang Zhang , Tao Zhang , Hao Zhang References: <20220309142206.15632-1-quic_jinlmao@quicinc.com> <9cbb2e86-640f-4b5d-22ff-00c63a1b9743@quicinc.com> From: Suzuki K Poulose In-Reply-To: <9cbb2e86-640f-4b5d-22ff-00c63a1b9743@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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. Kind regards Suzuki > > Thanks > Jinlong Mao