Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1015502rdb; Mon, 19 Feb 2024 01:04:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV+2bX3fPwGNFFC8rxVK1U1csP20JzSsb/YMFne+gNa5a560AczMBR9E6zMUjWQV9VedU10Q4W9MKlAYcqWbtRcZd1fBDyXdZauWDFDDg== X-Google-Smtp-Source: AGHT+IFzQoakiPLgPsYO+aC8L6O+VH9fUYOmB/WCBnetyy3bN3uaS6ouTO+36lc7O9dE84yC/8VX X-Received: by 2002:a17:902:dad2:b0:1da:1d91:7131 with SMTP id q18-20020a170902dad200b001da1d917131mr13612618plx.57.1708333445697; Mon, 19 Feb 2024 01:04:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708333445; cv=pass; d=google.com; s=arc-20160816; b=083nSALMtq6LaGFNdgN3tK59svES5E+B96SMcpA6JoaylYV5kWRdApO5rxAbE9HoqY nNlOag/HEGu1TCxv3w/BQiRdOgguyGhbWAm8o9gHl2nBLg0dbPcwVepeGUM1+TWKmKvj 6D8aafa7VxaPn+JSCgk9P1RovK72nGmFzftL8RPrCJlAkkN/G9iILwF6U8Gm3r2fEjrf l88UAXE3F/Mw2Y24GkttPDqFYLYQe39n5Vp5lC2tIKmzHuKmYqET3bOautMJb7/qqdC7 HH7bEr5ZoCRbDctRvM2JIosjTU/Mtqpp2CSEiaZbKQn1rsEtWNRC/2F+C+MxIF4BmBmz dhdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=gF7sGDk1x24G6RZbBVHNrWjV9qvXDZGdRDsrtRvQq9E=; fh=b3klaoZV3u611MFqgfyP7JhFfe2LA2w6IgCAVpunUKU=; b=hGRuOniDPv435ntg9WHlKlPIGKMfR3//C/2T5ywQ0E6WLhN0GkpmN/Mv3KPx+IrRTO QVvRC0mZQ2V6wifEryBiM2IKdsflfKQDAhhH78+EJg/+CzCWs4gAWhMkmW3CLSwtAddf iv3ymbrMjhIKS6+gzw6oUOBhTonhNFNx+s8PK174luXDe1Q6yVNQMa3OMHtnVyjQGALz u22EiHCan5ISCrrz8ob3VONN7jAejImrVslVyO5NIGktRfg+5zrQf+WPHryBJfXRVHUV 2filXDsvQHVkKVicgTCnjwpK0mbhjZES+aC5xhg9E/WG6w6r1IR7MSWpqHo3/vQBurBG QEUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dJvJw+MD; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-70989-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70989-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id jj13-20020a170903048d00b001db5933016bsi4034062plb.188.2024.02.19.01.04.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 01:04:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70989-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dJvJw+MD; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-70989-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70989-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 69B12280F49 for ; Mon, 19 Feb 2024 09:04:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46CD7225D4; Mon, 19 Feb 2024 09:03:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dJvJw+MD" Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E4D42135C for ; Mon, 19 Feb 2024 09:03:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708333422; cv=none; b=Ww/a/NOwHnUN4G0svZT8T9EvHtCKa74JNq+AwPn4mJ/ZsYk4UBg9rEPF+nkAoQX7c6HH63wHldyLpDZZh/FFqD1ZyNJ+5lhSFYlRJYK82pa+8GInF5TLFDbPsDCdMVBoG7lu2eF7Q7wnBEZVFlGhRXh97QRuIEG0Rj5fG8juc30= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708333422; c=relaxed/simple; bh=zpTa+qfeGV2k5NtVzTVITl85Yym3NlMeyy53MZ3h8nI=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=h7r3FU/RFAoeFWUVuH0gWqV3zvdD7IuKpYJAdR7qbyx2x9UPtq2mzYIay6cGSA+lF8WQJxQc+U/vQPtVVmuoJVBmXX85XKG1de9Po2L6Y4Un4ahqJmPsRdMkGjONUIK1RM6nrXbBHtY6g/mCLVm1LOXz8NCITg3gCCKBWyeRTBs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=dJvJw+MD; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-33d509ab80eso208954f8f.3 for ; Mon, 19 Feb 2024 01:03:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708333419; x=1708938219; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=gF7sGDk1x24G6RZbBVHNrWjV9qvXDZGdRDsrtRvQq9E=; b=dJvJw+MDFW//kuh8SimerpT4lecUfksPHfHT6jJhmDGnFYP7GG75Znf6PY0WtePuPO Ni/9Bh81gdIUFBZBM7qeWQsej+Sywka6qqbHC3Ttt1EB9cp+ePRtS8puZwKbb6vzdR/0 v/qFDPqjggI8aFCHjIrfpQPyPWR1kk2WH3g3YiOycklOxlV/jmIN+Sl/kJ9F1Y086NcH z62hwKFLtGz6p/AUyMW3mEwphoPW/rQhaRBjcHyP+7Y54HoqqXOTxhKiVDbATV9DJa4d tjWN+gS8ZSxHxw6l+a+7Q5El5YLvl41STdcKVL0Qk7XQiomDQ5eVfCAk/5JcCszBNhh0 nz0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708333419; x=1708938219; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=gF7sGDk1x24G6RZbBVHNrWjV9qvXDZGdRDsrtRvQq9E=; b=F9y8sVQs1ZkXZgSklsT76uIM6e1YBkV+wKwORn+iUFCjtiE/TOaFO3PE30gYSHj2Ef kaTEZ3uJVGdnmrxQSw+ZkgBveN6DelGRmGb3zsjEFLJ72NtYU8EL4mqgFa6fDzoOwgyh FFmqYdHXzQrRU0P5gU2m5MY2VNWvucx8rKJ5fffTjpxr6OFVgDBYFMRs9ye8aq8IqlaW Bo+mxnyPuYs01CvesVem9F7hdIn61mgxxvl9BZd3b7kylB08wB7XaUBODnHiCDeOMyMK dWqBGGE/P6Rh+bdTrtY/pdynvm56exjRZlz/89e5MMh+y0ntlQr+o5jmowqlXsL5WMoM lVhg== X-Forwarded-Encrypted: i=1; AJvYcCVNZEU/kgPolLF9CCE5NBqKhOP4AME9f/pc8IGOMHpel9LL6YmwWjDqiPBespc5lzCFZb2jB9KDKFdxrOEsIZtbO6bH8Y/pF+PA05R8 X-Gm-Message-State: AOJu0YxKfXCQ3vBZlUet+n9ADROuKZPh7rws/QW1PelKIzi8JJcOU/zg qSs0q6v0AJYbDN1589/Cc4hk2bI6X2g4oommaQLv9Qp2cgW8sdOVkyHrDR9XYdo= X-Received: by 2002:a5d:588f:0:b0:33d:2b3d:b598 with SMTP id n15-20020a5d588f000000b0033d2b3db598mr4141771wrf.70.1708333418779; Mon, 19 Feb 2024 01:03:38 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:9470:c6e0:c87a:fa9f? ([2a01:e0a:982:cbb0:9470:c6e0:c87a:fa9f]) by smtp.gmail.com with ESMTPSA id s1-20020adff801000000b0033d01fe1f04sm9722957wrp.55.2024.02.19.01.03.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Feb 2024 01:03:38 -0800 (PST) Message-ID: Date: Mon, 19 Feb 2024 10:03:36 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 5/6] phy: qcom-qmp-combo: fix drm bridge registration Content-Language: en-US, fr To: Johan Hovold , Bjorn Andersson , Andrzej Hajda , Robert Foss , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Vinod Koul Cc: 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 References: <20240217150228.5788-1-johan+linaro@kernel.org> <20240217150228.5788-6-johan+linaro@kernel.org> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsL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8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: <20240217150228.5788-6-johan+linaro@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 17/02/2024 16:02, 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 > --- > 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) Reviewed-by: Neil Armstrong