Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp803397iob; Wed, 4 May 2022 08:16:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzkHE0WYoopkhud2gC5wtyeyyMAdCVpqrwY6l1ndYbAkoZqooLXzD4wiHboqw/TPq0qAXr X-Received: by 2002:a17:903:18a:b0:15e:c983:7c2e with SMTP id z10-20020a170903018a00b0015ec9837c2emr2501265plg.29.1651677371326; Wed, 04 May 2022 08:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651677371; cv=none; d=google.com; s=arc-20160816; b=tHugX1I8DkeqBgtrCYi3lbynfp9CNr6/P0wlFah9ht9Ybz+cawhx0i/Xy3CV3bojl0 mLdnrc83okfACT6JLJz+2RquTSMWAkLp4lgJhBpTmjzw3Zfak6v5rW/B7Rw+Wc3mF4DA vyTpz3N5q9+wsfXckgAgd473ax+MT/6JZxKpMMGqCaLgyCpJOs8sh0RsQIfFcQoTLBzl nSuGSt6T1i0iGS/VzhYrb32apNfaCzhsxISrPHh4QP2y8ePligtEdTCdAig480nFQy6m /0f4fCwLiUXVrjk09WMEj61opKi4dQtMKszjWtuR3k7p4Rwu3YgwXtFAKyWoNFuuPHWx RH1w== 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=RZbde+zNpP+pxwmheNqHd8PqsFjKifL3d/DgzHYF2kI=; b=nfuZ5kNh0c0TmqXns5F1ZW+B4AJYKMDLURNfZWT0AQKHvUZPYQegAvYZwuV/RZPc3/ Q44rWTVq4JHq3nTHWwlhMrNNcDW5Jg21JG8jy3fYU3XRgRVnZt9PQvZe5LZG9RBGCSVj CVfPxtqJtavAJJDaq481EBDKNiTvZtMluOklrS9EAso+AefkWDAVyEsv6WvltsnHMR1k 8z39lgm9+qQWBT1+sBMv07kFcTImhGT9342kc58yK68vVZ8K96mxrVnCgkVO5flERJyW jxm06CJx3JVPN1ZcnbrjofTBH/bPuYlSp/uiTzLfhcINaPkplLoFNHsLKFy2TIHz3FYY Q5Cg== 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:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 124-20020a621882000000b004fac4daa16esi17535632pfy.342.2022.05.04.08.15.54; Wed, 04 May 2022 08:16:11 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348469AbiEDLF2 (ORCPT + 99 others); Wed, 4 May 2022 07:05:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348461AbiEDLF0 (ORCPT ); Wed, 4 May 2022 07:05:26 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3E96E237D7; Wed, 4 May 2022 04:01:50 -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 5EA481042; Wed, 4 May 2022 04:01:50 -0700 (PDT) Received: from [10.57.1.74] (unknown [10.57.1.74]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5EBBB3FA50; Wed, 4 May 2022 04:01:48 -0700 (PDT) Message-ID: <93f0e003-e9ce-c37f-e603-ddf22ffec0d6@arm.com> Date: Wed, 4 May 2022 12:01:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.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> <99845680-c2a5-2538-a57c-6fbf395faa8b@arm.com> <0ef5aa68-fc1c-6f0b-a1cb-46c5548952db@quicinc.com> From: Suzuki K Poulose In-Reply-To: <0ef5aa68-fc1c-6f0b-a1cb-46c5548952db@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 15/03/2022 08:52, Jinlong Mao wrote: > > 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. Queued here: https://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux.git/commit/?h=next&id=8c1d3f79d9ca48e406b78e90e94cf09a8c076bf2 Cheers Suzuki