Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp513160lqh; Sat, 4 May 2024 09:55:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW22Y5ncHhVw3LhwCiBt7HfaAw+qUQduF3It9M6MnMCzD20tuGnBXQp4IrXOveVH0bj+zpOt/igchM9i0+axXUDdcvypE7r0RdDXBerqg== X-Google-Smtp-Source: AGHT+IE5MM0TQmL17MtL1prLN54EFQs3wMXmxwsZ/rPKOt9bm0nvwnlkHoROyOq7Ub4gJ7YL/T8p X-Received: by 2002:a5d:6182:0:b0:34e:34c5:2312 with SMTP id j2-20020a5d6182000000b0034e34c52312mr3668869wru.59.1714841703985; Sat, 04 May 2024 09:55:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714841703; cv=pass; d=google.com; s=arc-20160816; b=yF4UU/aIEYRYi6KtBoCopaBtxNxrEzFsCGxrOWJUGKrUummpAdquoTlacYyimNeZsi zdXXkKDgUUg37LIBFH7BhuPleJm7hej98207aQJfaONNsvqohZZZ2tYWCBhgBG1CoINH 5c89AtzbP0sg1aD+Lr5/ZJX7jMaDTtiQ3vYMn3Ra9uEnQjp3lclw3cQEEHmk6Ou+pckj dAo3xz0DLmyKiF1Jy/v4OV7zmoz3kteBvYS2aJZ8ZRHdGNH2SNiKhmTTQPEYsRxGpT77 OKW8Vv44i+LyX4/PyZk0BeSc0CzVmDvVHepqOsD38dlELp0HYHvQInE2+Bk3IyFK+RU7 BQZQ== 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=tgIbTlJhI5M2gVvaXjd3+8gvJ0cygD+QTOHA6KrM33U=; fh=Oq3wsj6oco83m1RTAem99l/LFNywlFeZRG40xMLdXXk=; b=DoC9Cz6/lhj6Np6Bdu5CwR1NSjf6QK8RZ9RIg12OltD7quoVBoS2WhnigiIIu6N1Yf tCEmCdp+oAQLQCIOYTSmUvVmdvmsez5ixHFE7jhdVdAKiiDHPFUWBKudQfZ6OBz5CNvF Xk3kehrOfpW0XTByOok6SkjW0HQFzTDFJNRmyU3V1cmmDrtqHQffniAgMxbMDXcqHvF8 JknJgQMNTH1Eg600yrFdGWXeJwPJS70EZPWov1DxBZstzk+LhJg5zQU4MD7bP/d/TnMh fJIgpQSCsxgu4CxRS4NmN/8pLudvKrsux8XjXSLHKIKmqs3Y0560J5FUZQ19RZXIheu2 Ifnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EGu+ImQq; 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-168761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bi18-20020a170906a25200b00a5249bdfd16si2847761ejb.314.2024.05.04.09.55.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 09:55:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EGu+ImQq; 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-168761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168761-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6285E1F21BCD for ; Sat, 4 May 2024 16:55:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8FA15CDF2; Sat, 4 May 2024 16:54:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EGu+ImQq" 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 390EF3D971 for ; Sat, 4 May 2024 16:54:50 +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=1714841691; cv=none; b=JPDFotcShlBYjorwDk2LtkuHrDL1/u0QwZbQqaH5tB8VaRCbFv7c9wI4zlN9302WoFJ5Rl8kq4WavowOqJ6S5U4XKkhxLLvM0CZsbNwi5/2P2eTCH9hO+UroBpN+n7lyuIUn6fdGM1/bDiHHBbzzWy/klKQKiyfy4n43YQmPEqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714841691; c=relaxed/simple; bh=zo0FuvvheiYFFNT9SiYqO5W3uBgSTGVpZYuFn4XhiwM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=WG5MMntZBOFvw12oT2ncleMFtgbVArjHxB5H0VjrW668nPXGq4fKs0EuKAQ42Rz+mE+XzL/fps9Ckp5EJJrqatwUDmhfw27Y8iqo6v3fyB/wyAV2tzNOv6EYreYmoSEe6qoNbz/sSGcHl/NENK2zOyHW4hhUJHZuJXq8T1HAkBs= 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=EGu+ImQq; 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-de60380c04aso832480276.2 for ; Sat, 04 May 2024 09:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714841689; x=1715446489; 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=tgIbTlJhI5M2gVvaXjd3+8gvJ0cygD+QTOHA6KrM33U=; b=EGu+ImQq15C9oAXQMirzbB13CaAuAjcp36h3Ab+vThGiRCqP6NCx/SefeqBzjyBt/q /C1yRaqsJ6e1BjHG33CQYR0xp8QTGYRXMQkuHPuJpviA9K5Va3/lAJIWq1hQ5JNLBey8 rM6Ei7/uk7oOxSVdsPZIVNzI7UCUBq9d8n8iDV7IigaGK5XMYVUuXRjTxknMxjyfOm4N gRrWEEbIVtPXP/YOA0cs0Ko25/Si2rPktG4vEJaKdmJ49C/fauOXN4KU9Zs88G0MpG5W +G55UO6tuc4bXANSi3feXp3JG98Pi5UvhLFVg/ayKlrTo8VHoDjyiQo0VPl3/ElU9Hoe aIsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714841689; x=1715446489; 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=tgIbTlJhI5M2gVvaXjd3+8gvJ0cygD+QTOHA6KrM33U=; b=WydAzUJNwgJz7WhQOoKJ2sLVci84RhTwjtBpimnIqo6FF6DmPrYpbs+Pld8b5TS6St oOLoycuSvQY2/nWh96eUrPzRX0CnB9ykPy5UrrLSVJuTTdlH40OYm8GVkvhU1HyMxI2b K4aJlf/VqootvUkxCb6/XDVXN5CvigongrUQQO3BLIfQY+eWtrbD+kGxWY5lLTj04cQ2 oKHH0ImVzwDzD07TM8wWCfIaKRiX2mpOH5gk1gCKuSizeYaos7AcZnxkIMwIjTdzKkkd F7DXdWx0ZncYUtxiZw5Ruq74AGtfXw5QKL9Dj1M9JW6zAx9oF2dfPf9QH0Ze+stoEMUA DhKA== X-Forwarded-Encrypted: i=1; AJvYcCU2Ibuce2WW7ymyDJcwBAlUohmzmfpjn3LPHtxx26QJFMebqjSBRTy1uYxdFepQP61f9dLZlbHAWeDH/mwihsr2sZ9pf7gypJ6DeNJN X-Gm-Message-State: AOJu0YwsKHwt6ovoiCzFSyyr53QtOgIdzhowna752lzLj+qRq0PcpBAC PL1eCv/qs2cRONCQdNbWRW6AnmZ2beHjzTCZtQhBAWy0yiBI4ozYqNBMfAMPcvKjGOO4XuPmO+H F8T5HL8CpjrgKTuy4dAnPr6HHXNzHwI0iUeGpkQ== X-Received: by 2002:a25:f604:0:b0:de5:53a6:24ed with SMTP id t4-20020a25f604000000b00de553a624edmr6272638ybd.50.1714841689115; Sat, 04 May 2024 09:54:49 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240424-qc-pmic-typec-hpd-split-v4-1-f7e10d147443@linaro.org> <2024050415-retorted-gory-5fa6@gregkh> <2024050416-mandolin-gauging-9342@gregkh> In-Reply-To: <2024050416-mandolin-gauging-9342@gregkh> From: Dmitry Baryshkov Date: Sat, 4 May 2024 19:54:37 +0300 Message-ID: Subject: Re: [PATCH v4] usb: typec: qcom-pmic-typec: split HPD bridge alloc and registration To: Greg Kroah-Hartman 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 Content-Type: text/plain; charset="UTF-8" On Sat, 4 May 2024 at 19:22, Greg Kroah-Hartman wrote: > > 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? > > Oh wait, I need Johan's patches applied first, I was waiting for that to > happen, so I'll take this next week when that gets into Linus's tree, > sorry for the delay. No problem, as long as it has a chance to land at 6.10. Thank you! -- With best wishes Dmitry