Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp83099rdb; Wed, 21 Feb 2024 18:21:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV20tC1uJGUox5Vg+8cEb6JnhCc1eoUtJE3uuUEJncxxqb8e5n5oPY+TpEEi4mQHvkysxM5s9zDdwvu2qZKoYSuwEw1hnMjLqwtxxXaMg== X-Google-Smtp-Source: AGHT+IG5tCiSyDg1N3gzRohGpPYX2HY9xNmtqwmK9PSMljtgiNI9TZKHpvVR/gWsfUO1vHLs4MAk X-Received: by 2002:a05:6808:1446:b0:3c1:3763:148c with SMTP id x6-20020a056808144600b003c13763148cmr24399854oiv.17.1708568503846; Wed, 21 Feb 2024 18:21:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708568503; cv=pass; d=google.com; s=arc-20160816; b=PtvsMPtcneYT9EdSoCTknBa6aeCwDKZXvuqs9FvYSwcnMKIeswF1u71KhdjK70M63e hmBx4UnESsfP+rgu73pRZCjuxNFlU+DZx//feMHtIEr9JuXxf/Zk4GaPyRa63tohi6r/ NsnV+KwNRrEsN/Vccdyg53U2E+5kujo0zKkoMx7tnigbRbJ2eRmfgl72LSA0wndwSFHY 8QTfTWhGld0heUXuwgPmYm8OLXkkR9ZxAoU5i8Ux2OxXmfpXhwgLebu0qc/W53OB8pCf 8FS6Re1TvQrWRttFXM2wQCbYwTBDlacYNTIjeSlxi10ekWHfVn1NhA3fUthV2UeW+tgi 3Rpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wqVtBYBs8HGPyvPKYsxyksdbM0ssB2h37f870rg+Kbg=; fh=ej1yJLOFTsbSa8OhtQSeI9mFkzdN0QanbjnsoqJgZVQ=; b=vJnaImljyrxUY0aoLPiI43WAOFyDGJkhRY7HIeO4BxhCtSgESbOUanFaDYagD/EdOA XFUjaCGgI8l6+9B2bVgB/VhW3mV8RPaLUaepixDu440NsKBQlWJs0vc+Xzn4PX1X31Yv 8Iq7QyJLgQl0HI2pw4VUD8yoSsuxKJcui86y/8SzzejWUeFGZheapTbtFa+ibXRF6lnA +2fDrT/csTApxdhI9gKWowpgVgAWaXkuOwT4k2nMFj1z2guGU2cj3OVIufn12JfWNvst vAEyhuH0bHEcm/CqmjH7YZ4d1xlPT+cWb2Bfr5GanjDVVEVrH3YCYpjwe/ahntTlA6Bh R4gw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lUML9HjG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-75797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75797-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z1-20020a056a001d8100b006e47a10c54fsi4296565pfw.191.2024.02.21.18.21.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 18:21:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lUML9HjG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-75797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75797-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7E1CB2837BA for ; Thu, 22 Feb 2024 02:21:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03B1B156E4; Thu, 22 Feb 2024 02:21:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lUML9HjG" 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 2377A1428F; Thu, 22 Feb 2024 02:21:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708568495; cv=none; b=XriH+lQUhhZoJYH/aUm9ySCGNGTdLdXz7u72agLLnnquPxe4z5JSeQLdTG89VcxBji5CXXTkvO1yXygiyMNEXSzgotKQ0r07kJMVcTICb+pI9H6oPHCGn4ECAEWczg6raeD8CN9itNel33W0N1FHyUU5abUgG+wfcrsaEZOEi2I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708568495; c=relaxed/simple; bh=7XDJKPJHyfF1OzvneqeZT2dRiORVLAx3GebsWrRsA3M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nNoUxvZtUahXdqO4k958XRS5P3oMz1CO7hf+hjC9yJZNecuD/u+LRi/Ierc9zn2/EVMuQpZEgUXasOS1kvWVGmy8wW0R5R+0rzuXm6xjtc/9iC3HSra9GAd69qgTIC+/HDzq4X2uK/ZLDs0f3XvO2mWIftVjXy3jUOEvFqi8OEs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lUML9HjG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE407C433C7; Thu, 22 Feb 2024 02:21:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708568494; bh=7XDJKPJHyfF1OzvneqeZT2dRiORVLAx3GebsWrRsA3M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lUML9HjGLxBqhE6KwPXjXIlXMbbglCyZ42O6HLy6PH2G4HeFuL6lWnkf7EmTKTqPs Tznree3UVXwLGVPFQ3+CHpQ1F7a0y5Tuzrn0pCwpCybmc5zrw13xWUmjXETJo5eYuQ iyJirYR3ha6AWmSxwEXfkUQojDDgUYCdzHeeibatgww1QhohaHXtdG/ojeOeG+gl6N 7SeqHlllu4G8bz37Qg8F1VHgQYfLT7f01WdDZWdlfolvohW6J1Crihs8g74OIg4h43 PIkQNx0lq7QmzKvBkzP6g3rbCqEwbY2hLjeCHqVxdUhXZ4ydicNNObDLzlrz+Uze4q jYJadycT4CV6A== Date: Wed, 21 Feb 2024 20:21:30 -0600 From: Bjorn Andersson To: Johan Hovold Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Vinod Koul , Jonas Karlman , Laurent Pinchart , Jernej Skrabec , Konrad Dybcio , Kishon Vijay Abraham I , Dmitry Baryshkov , Rob Clark , Abhinav Kumar , Kuogee Hsieh , freedreno@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, stable@vger.kernel.org, Bjorn Andersson Subject: Re: [PATCH 5/6] phy: qcom-qmp-combo: fix drm bridge registration Message-ID: <36tnarj4tgxceapo4fdvp5novqm2a6qdwqeox6rmhobdi6y3vj@kezj3wl4jixi> References: <20240217150228.5788-1-johan+linaro@kernel.org> <20240217150228.5788-6-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240217150228.5788-6-johan+linaro@kernel.org> On Sat, Feb 17, 2024 at 04:02:27PM +0100, Johan Hovold wrote: > Due to a long-standing issue in driver core, drivers may not probe defer > after having registered child devices to avoid triggering a probe > deferral loop (see fbc35b45f9f6 ("Add documentation on meaning of > -EPROBE_DEFER")). > > This could potentially also trigger a bug in the DRM bridge > implementation which does not expect bridges to go away even if device > links may avoid triggering this (when enabled). > > Move registration of the DRM aux bridge to after looking up clocks and > other resources. > > Note that PHY creation can in theory also trigger a probe deferral when > a 'phy' supply is used. This does not seem to affect the QMP PHY driver > but the PHY subsystem should be reworked to address this (i.e. by > separating initialisation and registration of the PHY). > > Fixes: 35921910bbd0 ("phy: qcom: qmp-combo: switch to DRM_AUX_BRIDGE") > Fixes: 1904c3f578dc ("phy: qcom-qmp-combo: Introduce drm_bridge") > Cc: stable@vger.kernel.org # 6.5 > Cc: Bjorn Andersson > Cc: Dmitry Baryshkov > Signed-off-by: Johan Hovold Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c > index 1ad10110dd25..e19d6a084f10 100644 > --- a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c > +++ b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c > @@ -3566,10 +3566,6 @@ static int qmp_combo_probe(struct platform_device *pdev) > if (ret) > return ret; > > - ret = drm_aux_bridge_register(dev); > - if (ret) > - return ret; > - > /* Check for legacy binding with child nodes. */ > usb_np = of_get_child_by_name(dev->of_node, "usb3-phy"); > if (usb_np) { > @@ -3589,6 +3585,10 @@ static int qmp_combo_probe(struct platform_device *pdev) > if (ret) > goto err_node_put; > > + ret = drm_aux_bridge_register(dev); > + if (ret) > + goto err_node_put; > + > pm_runtime_set_active(dev); > ret = devm_pm_runtime_enable(dev); > if (ret) > -- > 2.43.0 >