Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp499456lqh; Sat, 4 May 2024 09:22:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRHSvzTzVLl6pylop3Ng0pau62ruT8LmjL+SZIuvJsE5DcVEuNtg9DMxhBACgeXGieyjXWaq73agvX14EBzwqzU5iG0rTCwhY3MikSqw== X-Google-Smtp-Source: AGHT+IE/YzBI0LmNGN00enp/OcGuucr7t5tmqaYjxPB+Aup3VFoJehFUvotVS0OTxSbXpZ0t2xUM X-Received: by 2002:a05:6218:2601:b0:18d:7755:8214 with SMTP id oy1-20020a056218260100b0018d77558214mr6893375rwc.28.1714839724613; Sat, 04 May 2024 09:22:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714839724; cv=pass; d=google.com; s=arc-20160816; b=n35ssx38LyFXrjaGdlNVQwrXQxWG5h4zZCx3wUqp66DI2eBoIqFzr4Hu0PP/wszlqz IF+OF+7Dhl5ZxvkygdtGvikTf/Zu5fnF59+pAUHrvQVJ6kao3+NnbnrbceXreVnBzqj7 FRTIY20/4gWyLt3okDRjv3qtOVg3kTXZKMeO4yOle/nfAHr2MlaGjwiWd0lDPRcs15+v irtqJZQpkfvgfIrYBqzYtVM44B1FVxnoYCR8fxAwDDqtByVlAUVOs+/oY1EKrHTUf8u8 +MxPJ3SKimijY6pteoQYzLbYj0t1sTTGNrhdM67qjEBD1CqmdmSjLOqoV9t6Z7WICeKp ClHA== 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=XjiY7avDc36RfIX2JaIB19aV9E7ccdfTWLkFw7Qxntk=; fh=toETY0jQKAVHupjm7WLWlOPuNixK1DhP1aumEYBAtNM=; b=dUW/rz9Xf9lg5o7dftvmVp9rsc4o1hp258EPkYUZkyhF5K/3PU5H4/xczqmQFJsxMq exK04KMUQhjEjnoAQDBW4lotAQM5wuK0mu7iOvaGLhDap7unRiazlVcRCMyYhpm6KUkr c9WgtXug3uuEallwvjVfJC4G8++YRhdtb28wM2KxIjG6XMD5hi22MbZOJnhM7a1jKGPX 0IBaoRzUzwz9EkEp7+YLhiWP8yUB/qzlbZ9KCJbH1Kts3SmCaPpgU4xrFeDBLH6VebzU hbfrYkBf0L+BNE6vINbEa1Y1/tZSaISE6PbILnRurfwBvdhjHLeqLkC2DTN29NAy+KFg m/QA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Fezc/zo1"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-168749-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168749-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 r78-20020a632b51000000b0060549c033f5si4942846pgr.37.2024.05.04.09.22.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 09:22:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168749-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=@linuxfoundation.org header.s=korg header.b="Fezc/zo1"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-168749-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168749-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 37DB928231C for ; Sat, 4 May 2024 16:22:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26D8E57333; Sat, 4 May 2024 16:21:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Fezc/zo1" 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 34A2E208C4; Sat, 4 May 2024 16:21:51 +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=1714839712; cv=none; b=XBpMkpbedCbFb0t/bFiiNCc74+ozbvfzeQvLFIKwHnHrIcJTaVpI4kFwwgz/6hHiy8uoMwQzLelNCVzDIuERYRXM4gWROaBTscG7DLrddSGZ3U0sPN9t7m/pmwDcIKucwVkNkVbe7XN8B2a6u1h029byL/wj9DE4Vmz56YV34AI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714839712; c=relaxed/simple; bh=BCOzB9V/gIPN7sgBRmyyILrDfAl5PNbRnic0ZX2G7Rg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CB4Az/CtJf8Plm2NCHTx+kWEd/VZzgsZhTzx5EmsAyi98QOX0jkY3VWe/ozHXiYYXY4a13VETrehvoeImjCneE1sHSs4QTk3PZUTUsYpkgx+wucM4eGqQVCNiRMAIe/vv57SQiwBnbdidRfFY5wghoOCqHxZ6kNjYKnGt9oj1H8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Fezc/zo1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FA6AC072AA; Sat, 4 May 2024 16:21:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714839711; bh=BCOzB9V/gIPN7sgBRmyyILrDfAl5PNbRnic0ZX2G7Rg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fezc/zo1eLxf4H/thKanhcf4UphQb+KXnRvuCxeO0im+X1mPOUtVnB26c9tXcPGNO AA4bhxG/qY0SFBafiVozjqmuJQxHlb/n70JgtqX5kjgraVEdP3RlHtuSr4RW0WsCmu GEOiermybFDk81gA6IqOLxIJQpgQ/Y/e9vXntP6c= Date: Sat, 4 May 2024 18:21:48 +0200 From: Greg Kroah-Hartman To: Dmitry Baryshkov Cc: Bryan O'Donoghue , Heikki Krogerus , Bjorn Andersson , Konrad Dybcio , Johan Hovold , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Caleb Connolly Subject: Re: [PATCH v4] usb: typec: qcom-pmic-typec: split HPD bridge alloc and registration Message-ID: <2024050432-math-iguana-e3c3@gregkh> References: <20240424-qc-pmic-typec-hpd-split-v4-1-f7e10d147443@linaro.org> <2024050415-retorted-gory-5fa6@gregkh> 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: <2024050415-retorted-gory-5fa6@gregkh> On Sat, May 04, 2024 at 05:15:45PM +0200, Greg Kroah-Hartman wrote: > On Sat, May 04, 2024 at 05:23:20PM +0300, Dmitry Baryshkov wrote: > > On Wed, 24 Apr 2024 at 05:16, Dmitry Baryshkov > > wrote: > > > > > > If a probe function returns -EPROBE_DEFER after creating another device > > > there is a change of ending up in a probe deferral loop, (see commit > > > fbc35b45f9f6 ("Add documentation on meaning of -EPROBE_DEFER"). In case > > > of the qcom-pmic-typec driver the tcpm_register_port() function looks up > > > external resources (USB role switch and inherently via called > > > typec_register_port() USB-C muxes, switches and retimers). > > > > > > In order to prevent such probe-defer loops caused by qcom-pmic-typec > > > driver, use the API added by Johan Hovold and move HPD bridge > > > registration to the end of the probe function. > > > > > > The devm_drm_dp_hpd_bridge_add() is called at the end of the probe > > > function after all TCPM start functions. This is done as a way to > > > overcome a different problem, the DRM subsystem can not properly cope > > > with the DRM bridges being destroyed once the bridge is attached. Having > > > this function call at the end of the probe function prevents possible > > > DRM bridge device creation followed by destruction in case one of the > > > TCPM start functions returns an error. > > > > > > Reported-by: Caleb Connolly > > > Acked-by: Bryan O'Donoghue > > > Signed-off-by: Dmitry Baryshkov > > > --- > > > Dependency: https://lore.kernel.org/lkml/20240418145730.4605-2-johan+linaro@kernel.org/ > > > --- > > > Changes in v4: > > > - Rebased on top of Johan's patches > > > - Link to v3: https://lore.kernel.org/r/20240416-qc-pmic-typec-hpd-split-v3-1-fd071e3191a1@linaro.org > > > > > > Changes in v3: > > > - Updated commit message to explain my decisions (Johan). > > > - Link to v2: https://lore.kernel.org/r/20240408-qc-pmic-typec-hpd-split-v2-1-1704f5321b73@linaro.org > > > > > > Changes in v2: > > > - Fix commit message (Bryan) > > > - Link to v1: https://lore.kernel.org/r/20240405-qc-pmic-typec-hpd-split-v1-1-363daafb3c36@linaro.org > > > --- > > > drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c | 10 ++++++++-- > > > 1 file changed, 8 insertions(+), 2 deletions(-) > > > > A stupid gracious ping. It would be nice to fix the issue in 6.10 > > Is this a regression? If so, what commit does it fix? Or has it always > just not worked? Nevermind, you meant 6.10, not 6.9, my fault, queueing it up now... greg k-h