Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp597120rdb; Thu, 22 Feb 2024 13:13:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW6HmK+dOruU2nZkttNZKUV3yA7OPGCEDgHN2jonhvjPPNegj7232S5g1xMIMHKuw5zPkeeoJAQIUCqZwwKkHaq0jOS3lsGrVYr9ijqzA== X-Google-Smtp-Source: AGHT+IGxIiMmb/+LJj1tWS3yune2wHFEwKd65bC8jJwWlS1bqVJUOiXD4A7Q4LtL48OftY5XPuxf X-Received: by 2002:ad4:5eca:0:b0:68f:9420:8e1 with SMTP id jm10-20020ad45eca000000b0068f942008e1mr482036qvb.18.1708636380319; Thu, 22 Feb 2024 13:13:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708636380; cv=pass; d=google.com; s=arc-20160816; b=bBI6aZwpjsdGn58Ir9W6om+ax+qF2f+BqfAIKqChyUjoFjJ46DgU1OMFs5z6640D0F bnzaf4IpDmVnvx7qpUjFRLOAhwTh3+Co4GqObp2TZe+7isIEwuyf8DzSXy5oSL1xNGu2 hMpnYriKYcInOFpNa6dxKcL/qo85bL4ujlY0+2OBncWeu2Wm7WSTptccjRhrBuAKc7p1 fwDcLVAPt2T9wN7tMR+tS3pAyO+ax3e+FNRmLYoQONAFGpxxvh8KWuJVxn4C+60AG7pt NuxbiGKBT06jq7TxQAcTDA5dAht6DcVAiioQJ9JI3YNHb9REyD08nNn8TtJjodJWQnWK Q1xA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=fenjTlVOLcRdKZFsqaTFAV94+jNqh66pMdN4WeCK6m8=; fh=JYV/15GR5lz4OSfYxNLg/TAkN/R9HjCaS5IGXNKHAKk=; b=Pjzr/TPgq6w2r+B46Bws9XW/EGAYwh+gO0+82x7CocZQfANYVSONA9Xq4ZxFirgNzq 0EhA9esNuGrpkBSLiGxlr+VbvND8VnC6TouN1N9feULLUQXXUVIwhdM/jP/IhzRmkvm6 bO+8TROOvCNT+LCGCb9dahFJwyctSSth8T9fSw0NpRWyd84p3GVDa5D//KPjhNXYQfiS A7R+1UC1AKtH+oNueZKtF3ySBDcR1EyhhtOqs7cD3PqsXf3BTK7gzgSs+L+ujRY6GOYN WeIZelPRDny0rt8wcoSaaK6AwsbCpa0VRWTzZviRh4cXtoG3ji2QIDTjN/9uKnCLCIuW DYmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qMxFcXbY; 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-77373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u12-20020ad45aac000000b0068f8f1cb83esi6864185qvg.425.2024.02.22.13.13.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 13:13:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qMxFcXbY; 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-77373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77373-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 087741C228B1 for ; Thu, 22 Feb 2024 21:13:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D09C73F2D; Thu, 22 Feb 2024 21:12:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qMxFcXbY" Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) (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 14A966E5E3 for ; Thu, 22 Feb 2024 21:12:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708636353; cv=none; b=JG/TO8xfQh2brcmafO/Pq8X2t3V1YknKaep0VpuStVJ+5W/Ygb8dvdph0XSM+4VkbXRgwpS+IUU9m8BnTRaR0NrF1ijAtX6Hz25k7rb1ym7H7Bn4v2rB2q00/R6t7yRqikg+qCOD9XNKupSeYC76m6LTKSw4JDcNkYJhLke5K+w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708636353; c=relaxed/simple; bh=lTdUa42NwYjJJpKBleL4FHR9ezbFYLTvE/pbZhVextI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=XHXFqTSHbbsgUVX2RegmWCXO4kWiummsTEtgFAP8nqpLLSk8h82M6lqLYRGlCrchIUpfwy4TNVUdEdgcpWmo1naivybBufNb8b54+JKXJUni1iScH9s95+XbhpOZVl6DnJPHIapWdyui4uN3LPT2lDGS3LV1X0EqvY3mcsMa+AY= 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=qMxFcXbY; arc=none smtp.client-ip=209.85.219.175 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-yb1-f175.google.com with SMTP id 3f1490d57ef6-dcd94fb9e4dso167400276.2 for ; Thu, 22 Feb 2024 13:12:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708636350; x=1709241150; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=fenjTlVOLcRdKZFsqaTFAV94+jNqh66pMdN4WeCK6m8=; b=qMxFcXbYiHN5obuw2sfrNhLiCCc6Vl50BSuLwGxNyd2AjOMoUGOeTGvwSXTOvXwfsV 10X16X9OWDGu1hEsDmGo1pvLN6Ah7X7yyoM/r9LmbsetnpdbYHoKQrsBE8MRVWXZ3Skc Dh0yd6MhHe7wnoc3LhHb/J+GbVTOOaDsn57C+SVc4zD2eX3HrssMyAYnrKt+Zs2tDyRp 9Z4RlDVUiIRrvsUyLrdXyDW+8d4lpzOEuDettsmn6Mc95ud1/LFoZoS+lYsBQQTgQYeG u5qc8Y/cdO6Ps/2ewDvx5KjByPnD/EpcaUEMcHCm4X727xDSjSJY/mCQgaZ725UHBhjX /pYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708636350; x=1709241150; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fenjTlVOLcRdKZFsqaTFAV94+jNqh66pMdN4WeCK6m8=; b=GpRTKdjLnUqI3dakN9br4ojY/Osnpu8T/ZG/VLppQaO6wTb0ZX+qXkNLFEw3XejHWz YI37DKmmQeHXiQeO4DEMqgdoj909sZIum7R75tj8/h2qHpdR7ZdJAyiZOQwio7u2yLRL bUM6wifTlqdMTZDD0S/bWxQL8AZZSAhgwTUwsKBlB6Q61SSRTNMKuwxU8lW/GCEV8Vlg fpiAwoxgW1SJo1kByC+gReuHoyntckrR57QwTw8CXSkS/syMPQKHEtNYqds0UzXh4V9R DwVDwh1Yf/yJxrB6f5eVYeQdpHGVtuS2to8Q28WvkVmVkfq8Frpp4mbeciIGkIHOg3Sw IBQg== X-Forwarded-Encrypted: i=1; AJvYcCVy/o0X9d+5qQzeAtPKvAmj5ID78mmYSb9CjzyiMNo2WfiEWgwKTOtxXsAvo/m4F1mx0gWrDwJsqYJxeejgqvQepzgwQpvjxDs+IDO5 X-Gm-Message-State: AOJu0YxOFqwMuUszmo0ShUpyFJamUqamuoT7MzfEF9TfaTxeFbQ7UcwE VMDE/T4m6a7lzIX4n6ul7J5FUfKawAa0kh8RYJEV3RZO46KYbhzl2CzTIyF2MvBa4xFFIcK8rRU CcWNLs6hbJLwo4rdxCqBryRx3DnwhjWAKqFeaBA== X-Received: by 2002:a25:2747:0:b0:dcd:3338:a3c5 with SMTP id n68-20020a252747000000b00dcd3338a3c5mr382880ybn.33.1708636349969; Thu, 22 Feb 2024 13:12:29 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240217150228.5788-1-johan+linaro@kernel.org> <20240217150228.5788-7-johan+linaro@kernel.org> In-Reply-To: <20240217150228.5788-7-johan+linaro@kernel.org> From: Dmitry Baryshkov Date: Thu, 22 Feb 2024 23:12:18 +0200 Message-ID: Subject: Re: [PATCH 6/6] phy: qcom-qmp-combo: fix type-c switch registration To: Johan Hovold Cc: Bjorn Andersson , 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 , 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 Content-Type: text/plain; charset="UTF-8" On Sat, 17 Feb 2024 at 17:03, 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")). > > Move registration of the typec switch 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: 2851117f8f42 ("phy: qcom-qmp-combo: Introduce orientation switching") > Cc: stable@vger.kernel.org # 6.5 > Cc: Bjorn Andersson > Signed-off-by: Johan Hovold > --- > drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Dmitry Baryshkov Note to myself (or to anybody else, who has spare hands), we should probably implement the same changes for phy-qcom-qmp-usbc.c > > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c > index e19d6a084f10..17c4ad7553a5 100644 > --- a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c > +++ b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c > @@ -3562,10 +3562,6 @@ static int qmp_combo_probe(struct platform_device *pdev) > if (ret) > return ret; > > - ret = qmp_combo_typec_switch_register(qmp); > - 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) { > @@ -3585,6 +3581,10 @@ static int qmp_combo_probe(struct platform_device *pdev) > if (ret) > goto err_node_put; > > + ret = qmp_combo_typec_switch_register(qmp); > + if (ret) > + goto err_node_put; > + > ret = drm_aux_bridge_register(dev); > if (ret) > goto err_node_put; > -- > 2.43.0 > -- With best wishes Dmitry