Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp83589rdb; Wed, 21 Feb 2024 18:23:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV8Vk2Wxo/1fVlNtNOpCTS0OMnWNAmQ7A69G+ubf6ufQI9mDM28fHJxbvWZ/IeCfPR8LssJex1CCcr6no7KZxYtyItbB2kujvh77/Dcdw== X-Google-Smtp-Source: AGHT+IFWYLfs9X8Iu8pDzfY52xdQIa6bcD/FdVYlyK5QouFMs1FNFP7ZwOPDtEOLqT1Umy8gW2mN X-Received: by 2002:a05:6214:5087:b0:68f:62a1:c2bb with SMTP id kk7-20020a056214508700b0068f62a1c2bbmr13419726qvb.9.1708568596205; Wed, 21 Feb 2024 18:23:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708568596; cv=pass; d=google.com; s=arc-20160816; b=xms+sOE/dYAqea1n0xLywbf7iLyt2b4Ps3eXDxIsntucLw8Ovc8TTQ9Lm7YEkfy+mu LMZcIbrKcI3M3m235PDxfh0zvQnopmYfGYYxYwp0iVzIMidQ01bJamB0rTAx2Tz/aPkD gX4JBubteAbHUexrn0VrHucXYCSLwjwbq2DS5Nu78jfwaxKwHeTi/f4Hwm4gP5rZdrM9 6yxL31dddRjIJDUksSvj+ZEpf+/QE0S6tdwO/d5M4KLjn2ssPjwHIqETGs7a8EZfSCt5 h6dSVLum+taH0o1wrfTKnxmpp3y5AcVfkga3c+atMQoWonjAoNmUNC8jNb9EV/qjj7Kc kx/Q== 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=yxJDpb5GO1xZbZ3Wb4wloV+/cICsGDWtPAGLCgyAoKA=; fh=ej1yJLOFTsbSa8OhtQSeI9mFkzdN0QanbjnsoqJgZVQ=; b=v/OAOv4I9NFIKinJLWG5Y5exbs6ZRvLzIGY7IZV7n1YAKFxSQ4bEr7z0Xee5+DVQ5h 8Sy5UgqhW2PjxpwuksIbSj0w3k+exySJWwlo/3NP0WF80S3hHtLT+tiOXvteaHEBzBaM 5RzYNvSdExbDedyX1iOP3oUsGB2Fl7kmu2Dg6/hbgbjTm4yJtkgExIOkGeeN61YMc+Yp AxE7fVWGcFZ52E4HreW394WAcY0pwzfffnATfoq60HnU6NxoCPo/U/3u2CLUbT2HSh0W 7kU6XDxWlWxRrPV/pEHIPuO9DPa3IXrdZqwXLov0hb6hZ48ufYkLJnkDl8WZLotsEHgx nqXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T2q7x03B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-75798-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75798-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 gv2-20020a056214262200b0068f714d3e99si7816490qvb.26.2024.02.21.18.23.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 18:23:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75798-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=@kernel.org header.s=k20201202 header.b=T2q7x03B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-75798-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75798-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E1DA31C2215E for ; Thu, 22 Feb 2024 02:23:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 112A614F86; Thu, 22 Feb 2024 02:23:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T2q7x03B" 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 2F75D10A19; Thu, 22 Feb 2024 02:23:07 +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=1708568588; cv=none; b=SmOi0kYQoKhmoGiKMnkDCJYr0GVkTsgxAV7obMzYPTINtvACVuUgavb5KWU+ZQVdkG1dV1ZNezmvBXxsa9qabqhrHYabM9XqwtBpONaepCu1/CUSg43cfM36Wd3MUGUFJzW9/EKgx5f2E7JBsPIvFiNdoB3FDTyp4d9NdEdh6xE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708568588; c=relaxed/simple; bh=MMlkjmsJsicEDs7i5WxUmhs8W/iz3PM4L1aTQKsYqS4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BD8JOhBuy4E64zudO4vrbBjwzyU9ouoX0aFuyqDlVouMUZis/TZemX/7772ol4gmwvU/VX9ydzGvYqA8dY4OM/2nsLslmkwSGXVMiyeYvuzFUaNgON+6QcUXPrZzAh10tyzHs3myoIOfXzZB3PggkqpjHNuoeDA5cn4IzxJVdzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T2q7x03B; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C481DC433C7; Thu, 22 Feb 2024 02:23:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708568587; bh=MMlkjmsJsicEDs7i5WxUmhs8W/iz3PM4L1aTQKsYqS4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T2q7x03BsCLrEV+dAiEnodN6qvtQf8spHVxVTLO7VN2AznIQ7r0uW+vkoD+o0npAA vve9abeOEDefbhv27dw+nVSB+Gz2M2c1QAy78CDkf6gRh+YpnvxYTb61AKFYdSwYhy dgzQPjHMwmBREv8OE/+dcm0+nFwcKqxjH5w1W33PcH8pwcGJEJf3JeCBweF09scS+L yGa57tso+nIIgKFb7AyKPZFM/z6hICesMczCh6qFE8QjMwEA6WX+ATklittaMdmyem D3bHL21fCNo/e4779NOodc6DctIUc9pjMXmBLuDhjQTC62dkPV0nnk12nu2yHntbg4 SspNPWE022PBQ== Date: Wed, 21 Feb 2024 20:23:03 -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 6/6] phy: qcom-qmp-combo: fix type-c switch registration Message-ID: <7emxapsbkv5evnuhpr4uanr5fhnqaxy6thow4y3zlfwvnzbpdk@ioyynlfubfsr> References: <20240217150228.5788-1-johan+linaro@kernel.org> <20240217150228.5788-7-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-7-johan+linaro@kernel.org> On Sat, Feb 17, 2024 at 04:02:28PM +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")). > > 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 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 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 >