From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9BDFC4332F for ; Thu, 14 Dec 2023 14:01:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573370AbjLNOBt (ORCPT ); Thu, 14 Dec 2023 09:01:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229897AbjLNOBq (ORCPT ); Thu, 14 Dec 2023 09:01:46 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 824EA9C for ; Thu, 14 Dec 2023 06:01:53 -0800 (PST) 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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