From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 986845579A for ; Thu, 14 Dec 2023 14:01:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="I+q8Nh8N" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D4F2C433C7; Thu, 14 Dec 2023 14:01:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702562513; bh=3r3g7bIo3sjseeWV5/DRYEPcjrp1JoaPlGCxb6Ob5QQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=I+q8Nh8NF2rssDlqnmFsZSPw6QZe8EqIwWcQg+8/ULrRxAalHiLwIx4r87jyOnCJM RpqYsrX8VhC7vMHd9FVvktT5sEPUoZmVPHCDwzuSXzyf4EXmghHHtgR6tyLgEgVoRQ AoXsQWJ28PV/zlP0d0Ua279YSDakUseNe/XaBmassFpcg33+VCF/X+rFH6jS0wvHvX gXRCfN3Lk2falUHK8z1u7Pbk+ECO8Zveb0WwYxbablilyHrqRIdim3DEg6iQUywE1c 8aVqkjLZBr26uvJfeH8b+yZj+NWXhsVfJQnhTMQmdin91K1jdtdwn2t/vnJpQiZ9QL jUB3Qdbn1qf2w== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rDmHe-0007sY-0C; Thu, 14 Dec 2023 15:01:50 +0100 Date: Thu, 14 Dec 2023 15:01:50 +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> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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. Johan