Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6010379rdb; Thu, 14 Dec 2023 06:10:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmQLvjN1CMymo07iw3IJDu5GXYxuTCUDbOwVp3W2vK+dMPtPL0yKwQw4uUAA+ZWs5w7nlC X-Received: by 2002:a17:90a:fd08:b0:28a:d079:542e with SMTP id cv8-20020a17090afd0800b0028ad079542emr2002168pjb.13.1702563001085; Thu, 14 Dec 2023 06:10:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702563001; cv=none; d=google.com; s=arc-20160816; b=TdMgWf8SRPgGgJBJzNNjHwTpBRBO0BVfFjeI3sXEKa8Rl6xmUQLMAkiEyfK1REmpqx 8NZUo83rGqYeFZQeSJjFg26nVrEYmGaklmGikdP/DMDOwE+IAnshTvZOF2g3cm8ilJFB gEnJ3HtO+b/vc7Lm8PXACexlu0LRZ/2o+93l+9RCF8VmQkP82DKsFO3K2chzSYa4qxL8 g0uJgoj9ijGcCvxvMbKYG6A1HYkXo1upDCO0V/nLROzZobkDbijGWdL4EOTXlwGBkmdI UL0a3rZw+moAHjd0f1d6KoUP7NgqqqpyfrhtIb73CN3bC/r4KSUBEU6bIJ3W6LrtcYaD 4CxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=80ZgAg0zWQfy1V9bIJwIL0fG/KnRjDTlfm14PbJog/Q=; fh=jAhWAnVg6jdBdCVRWbxRONmQB8kMGMozPaQGXNdFI74=; b=chlVq10feqMZrUpBLHbzSBovCkSqRdS0vYNTnbeN5st8srevksd4CvT3KDIPDjLKLs oCKyH5/oOPl3V5mmdxbLY20l6io5/8ID+43o8A/nrucTRY//gp4WdW9ZsTCR3UUPWJ63 hss8qjZvuxwX7GVf6UWWOH/kyEeomp7Z4uiXvR7hIjRfCIB/F5GR2HogWbnxM1hl/Z6h Oa+DcRuP0nd9IzCNYWVrw8481OWPqgbMBrSG6zuKOdIVw8xi/CmhR+h9guzGxmxcC+Yw MS8MjldLHlHc32PT6BBFQ7EHC2xMUgCzEcYSZrmeXd6LzGWa35rvdnBS8ttYGeyfusEP TBjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fonDCcbm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id mf7-20020a17090b184700b0028aea3a342esi2647703pjb.79.2023.12.14.06.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 06:10:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fonDCcbm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 917F383328FE; Thu, 14 Dec 2023 06:09:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573421AbjLNOJe (ORCPT + 99 others); Thu, 14 Dec 2023 09:09:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573115AbjLNOJd (ORCPT ); Thu, 14 Dec 2023 09:09:33 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CA17A7 for ; Thu, 14 Dec 2023 06:09:40 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE3E9C433C8; Thu, 14 Dec 2023 14:09:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702562979; bh=F3Budhbk+oO4EaTBoG3jnHcriilK7yvDChjm2zriBQo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fonDCcbmN11dfo8tFhAC9T0TGc8c1GNGBfvFzoWua/DlBDFRbYa56Lbj8ZKCdvVol LlZEPSN6l96Pzz9AsWP6PWvZMRvYLxLDtof/FQS6TKJNWs0o8F/dWYGRi1tCHq6wbK n1LWvn+lq9Q+x4suypErvJ5VUTFax2vilb4NQbt53YeO5ePBxQqxEu5zUjYaOlAM4X fP2TF/Sjugrm3SelgTZaLM6Pzv8aIw1HMdKr5ktJGSVPq1bca2bZr9rCBf3DueLnOF vTTUD8fIx8kyYwhuX06tNHH8ELTaEdwMm/H7p8jYgubuqusFNl0l+q0YtLjLWJQIex SeS9Y38XCKRGQ== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rDmPA-0007zy-14; Thu, 14 Dec 2023 15:09:36 +0100 Date: Thu, 14 Dec 2023 15:09:36 +0100 From: Johan Hovold To: Dmitry Baryshkov Cc: Rob Clark , linux-arm-msm@vger.kernel.org, Rob Clark , Andy Gross , Bjorn Andersson , Konrad Dybcio , open list Subject: Re: [PATCH] soc: qcom: pmic_glink: Fix boot when QRTR=m Message-ID: References: <20231213210644.8702-1-robdclark@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 14 Dec 2023 06:09:47 -0800 (PST) On Thu, Dec 14, 2023 at 04:04:49PM +0200, Dmitry Baryshkov wrote: > On Thu, 14 Dec 2023 at 16:01, Johan Hovold wrote: > > On Thu, Dec 14, 2023 at 01:04:43PM +0200, Dmitry Baryshkov wrote: > > > On Thu, 14 Dec 2023 at 09:16, Johan Hovold wrote: > > > > On Wed, Dec 13, 2023 at 01:06:43PM -0800, Rob Clark wrote: > > > > > From: Rob Clark > > > > > > > > > > We need to bail out before adding/removing devices, if we are going > > > > > to -EPROBE_DEFER. Otherwise boot will get stuck forever at > > > > > deferred_probe_initcall(). > > > > > > > > Can please you expand on why this is a problem here in the commit > > > > message? > > > > > > > > The aux devices appear to be tore down correctly in the probe error > > > > paths so how exactly does that lead to deferred_probe_initcall() being > > > > stuck? This sounds like we may have a problem elsewhere which this patch > > > > is papering over. > > > > > > This is a known problem. Successful probes during the probe deferral > > > loop causes the whole loop to be reiterated. Creating child devices > > > usually results in a successful probe. Aso I thought that just > > > creating new device also causes a reprobe, but I can not find any > > > evidence now. > > > > This still needs to be described in the commit message. > > > > Only a successful probe should trigger a reprobe, and when the child > > devices are registered the parent is not yet on the deferred probe list. > > So something is not right or missing here. > > Child devices can be successfully probed, then the parent gets > -EPROBE_DEFER, removes children and then it goes on and on. So what? As I described above, the successful probe of the children should have nothing to do with whether the parent is reprobed. If that isn't the case, then explain how. Johan