Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1731916rdd; Thu, 11 Jan 2024 07:43:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnUN2lO5GlaaXMqU9tYb+uz2ytijue9sMr/RiO7P4O8pXbqXysAT4xlqI0Wu6X/TE5sEmm X-Received: by 2002:a05:6512:132a:b0:50e:6f8a:77d8 with SMTP id x42-20020a056512132a00b0050e6f8a77d8mr795123lfu.13.1704987825329; Thu, 11 Jan 2024 07:43:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704987825; cv=none; d=google.com; s=arc-20160816; b=erRU/zplMe3rk89hX0MU04aNMCIJRhhNpY2dZMroN/ED7LUJ+CwRqYkk9+RmNIuxDw k77ov2A5A41qq30j5mXjvj3Sb5dIXdxMNXbDoi6OSUX5LoiOtum9PHVjQ569yY//Mt1r /emVPbrt9ibeDGjEgOZQ7YFUP6HRlHttZSXTDmJhpq6SKhwuZLHsJK4Ugg9gfwWuEzJo ucCBHWVaXCnaulYoEm41iCz6Sj9Gounm7oRVM+MtLpp4TjwdtPPmBklly0Jwq9jZHTKt kXhRCLTqKYREQwmLYSnJivw9TNbrFzbRkR/w2EM13r9rZQ/xxDy0zxXVZp7l3cuG5C7p IsUQ== ARC-Message-Signature: i=1; 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=emlCTYFoJ7HTQ2zXqmk/2tpC5aAMyfsd8X53K7e0g/Q=; fh=3aKSsHR5rtUpGkIL1vDFji16FSvdn8Dp9ucxnnyafB0=; b=sjhaywrU3RshIE69IyjJHC8HRWTXdJA6vBXttu5vTGE+SXjpmdlzQNNRfd9jIeF6iA H8KPViT0imPTiCB7pVSiuWcGaLSnwLRhOCpiPH7weKIiEqObZQuBVgUQhlZS5dqV5YC+ Gu2TvOoMciSvX+3ojFGh8wyWPV6Z9xPLcIMArhOrbYP3LZy2TJlhknTa5TDS/Tfri0MN NJCmCjgXtIHcAlZmD+W7VNqXreuARS6t948owUfxuj1DuPKDYrKYK13Qlbw1nr9WfoHU xSgVbxNHLG9GnLCHnj1QkSMtRDPMO/CC0e/p7VW12kvRnpOF5HBoZB+sNoj6OyNwGU0C RtrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=kszKQUJg; spf=pass (google.com: domain of linux-kernel+bounces-23810-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r27-20020a170906365b00b00a2a0889da88si589551ejb.304.2024.01.11.07.43.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 07:43:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23810-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=@google.com header.s=20230601 header.b=kszKQUJg; spf=pass (google.com: domain of linux-kernel+bounces-23810-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 14FC81F22F04 for ; Thu, 11 Jan 2024 15:43:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1428A4EB5C; Thu, 11 Jan 2024 15:43:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="kszKQUJg" Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 1553E4CE09 for ; Thu, 11 Jan 2024 15:43:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6d98ce84e18so4582428b3a.3 for ; Thu, 11 Jan 2024 07:43:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1704987815; x=1705592615; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=emlCTYFoJ7HTQ2zXqmk/2tpC5aAMyfsd8X53K7e0g/Q=; b=kszKQUJgnT75KyoKkYIzgLlr/fSEAnCWEyV8ociIm50uGsifW+ujJj2lzdnpS4V2e5 TpSLduHwaf61tiI9e6TNm8n8SDzuu/RPEY00tW3HDx6GBac1m+bW0v7iOr41LCv6O1K5 WuIOacooRx/Fc7fujBmRG8HMb8q72AOhh62YBv11g+u8MJ75VOCgTeqfhD8saHFmUBKy AZbcARMlegIENZH6Be82PUTqqVNehl/pIWrb9GBz0MHaqKEe2JE+IiZZgX3mQqLjj/6M g2KuhRvbHujoQmNwygKjj5hI6B6XD6Ms6lvqFAkpKWC4ND/yAwas1R/Z6ul+BOXs3iOE f06Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704987815; x=1705592615; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=emlCTYFoJ7HTQ2zXqmk/2tpC5aAMyfsd8X53K7e0g/Q=; b=XsmUdgoZYKuxo+s66ND66r2isYlf4DrzXm6gkFGMclvvwLYY0CmUVXuBHPWSpikRWF v2w8k4nb9SAAhEhKNXw23od/6DJir/ResHN3cJ/Yw5ioaodYWOQlg3sFHLiUNfeTRVZB 21EVZV8zsx/bkJYefn6bQIzSupb5MTbAw2gzDSexX2tVEca5DMqx3FeDuU89wfDhnhDz rAYRE4mzSE4m4lBtrA5cKSfjFN5BvU17rTQmGCX9Yzg3isKNkl7KiNMU5qht96pZonaS lTI9d7MM6sTbJn3QbpTBgMsjIgWwPlw5SNF9NAiueeMlr/1S9nw9Zk1zXyG876CY0C6x 9WOg== X-Gm-Message-State: AOJu0Ywmj8kSFX8XZMf9RmesrYFtEEon1JwnMPiwGellpMgwV56bbXu7 oqCOX6xF41tqbHergTpgQW5xX+W3uA95 X-Received: by 2002:a05:6a20:1595:b0:19a:5eb0:4389 with SMTP id h21-20020a056a20159500b0019a5eb04389mr27554pzj.31.1704987815222; Thu, 11 Jan 2024 07:43:35 -0800 (PST) Received: from google.com (108.93.126.34.bc.googleusercontent.com. [34.126.93.108]) by smtp.gmail.com with ESMTPSA id n8-20020aa78a48000000b006da5e1638b6sm1360917pfa.19.2024.01.11.07.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 07:43:34 -0800 (PST) Date: Thu, 11 Jan 2024 21:13:26 +0530 From: Ajay Agarwal To: Johan Hovold , Manivannan Sadhasivam Cc: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Lorenzo Pieralisi , Jingoo Han , Gustavo Pimentel , Rob Herring , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Sajid Dalvi Subject: Re: [PATCH] Revert "PCI: dwc: Wait for link up only if link is started" Message-ID: References: <20230706082610.26584-1-johan+linaro@kernel.org> <20230706125811.GD4808@thinkpad> <20230710170608.GA346178@rocinante> 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: On Fri, Jul 14, 2023 at 10:55:29AM +0200, Johan Hovold wrote: > On Wed, Jul 12, 2023 at 11:15:54PM +0530, Ajay Agarwal wrote: > > On Tue, Jul 11, 2023 at 08:52:23AM +0200, Johan Hovold wrote: > > > > All mainline drivers already start the link before that > > > wait-for-link-up, so the commit in question makes very little sense. > > > That's why I prefer reverting it, so as to not pollute the git logs > > > (e.g. for git blame) with misleading justifications. > > > I am developing a PCIe driver which will not have the start_link > > callback defined. Instead, the link will be coming up much later based > > on some other trigger. So my driver will not attempt the LTSSM training > > on probe. So even if the probe is made asynchronous, it will still end > > up wasting 1 second of time. > > Yeah, I had the suspicion that this was really motivated by some > out-of-tree driver, which as I'm sure you know, is not a concern for > mainline. > > Vendor drivers do all sorts of crazy stuff and we don't carry code in > mainline for the sole benefit of such drivers that have not been > upstreamed (and likely never will be). > > So again, I think this patch should just be reverted. > > If you want to get something like this in, you can send a follow-on > patch describing your actual motivation and use case. But as it appears > to boil down to "I need this for my out-of-tree driver", I suspect such > a patch would still be rejected. > > Johan Johan, Mani, I submitted https://lore.kernel.org/all/20240111152517.1881382-1-ajayagarwal@google.com/ which does not return an error value if the dw_pcie_wait_for_link fails in probe. Can you please check and provide your comments? Thanks Ajay