Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36423333rwd; Tue, 11 Jul 2023 00:21:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlFK/7wufcmBaO+1Xe1yIc14k3oHh6X+MDcOPjnKf0vaNtPNGAJ1W0gvfk56ujvk4QUXilzh X-Received: by 2002:a17:907:3d9e:b0:985:259f:6f50 with SMTP id he30-20020a1709073d9e00b00985259f6f50mr23701137ejc.34.1689060066421; Tue, 11 Jul 2023 00:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689060066; cv=none; d=google.com; s=arc-20160816; b=hsuwju6WKFsTH24a2udx1/B+3uENyF++izidHuxJwBLcSyrwv5gXBqepcDYBw2Thkn v3O+eJH/N+Nbd0tTuBLMlJKzCNTnYet5KJX+XwGxJ2wxTJOtoILEcqBc5/cTxT6WzIhN Zy3qddGzi1rY2EzyrWaGX/DqXiXfCmFe0aMydSXBtoef+lNZwCJ1cP3br+fDUtzDhEl1 ODz1GNIL5qmWCq08GSe453CCaNQvqBJhNJi3L6rYsWu4qZBsNenzUOnIXBIOdpwTJwgm ef1CglrpLPaHj4VG0dq4r1afME7yJxUsJyaIXLo5fyjWwIylqh8ahmxT6KqAJVQWF0s2 SOBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LmqFTQ4WT5RtjTJnk1E3YIpiKKEM56jCvokT2olf/Ls=; fh=UDXQ7Uncxn3K2bt6l5kHLCAwYIj9EosCw8QJUnUwMBg=; b=iS/ZIkXyqUTeS8aKZsCeVXd2mq88hxZXlNUhi/4MAUpvSeQ+lP82UvY576eIhFgKep gzLrk5omV6YwZf/IvqeoT92e1p2+NV6Sn/YfOzkoYMZPCAJNrQnYpfqFVTwk+m1N+m6o P2ZNb/oOKKiuVGtYp3ZVC5QB6N7z0DjCVbgt/kvzYOHmvgSu9hjbUlzUM0U6OeDnJD3G JLxMZ7eaG3dRMx65plvMtfbrEIMOvD2KXyHxzIWA8yKeK7UTzGDGMDRH41AdCHpkgb8s 06rG2iSQBlPVMKA1U4JqqYR6wpky+kHZ+2dnLY8k0QBxUAJNhtjGpwzkM93UKw7PYWBU dokg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oSEWMiJP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r19-20020aa7d593000000b0051e57e85cfbsi1383725edq.545.2023.07.11.00.20.42; Tue, 11 Jul 2023 00:21:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oSEWMiJP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230263AbjGKGwD (ORCPT + 99 others); Tue, 11 Jul 2023 02:52:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjGKGv6 (ORCPT ); Tue, 11 Jul 2023 02:51:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F750136; Mon, 10 Jul 2023 23:51:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9F5766132C; Tue, 11 Jul 2023 06:51:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAC7EC433C8; Tue, 11 Jul 2023 06:51:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689058316; bh=Z9ivX8eJ/lXQ9bZDCm1ns2xF/81RV2oFuTHoehDONQA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oSEWMiJPxvW8OHWpMAbd/2Km6jkdjAKbe4El+4QvNxNT5id8rVklKpLjtMNR1N4Jq AU7DU0t1Mjurutc/4HqrTD3uLjnUbsIjjWsQ8u9K7zLOk6rQ++a9+7nteuTgUWZi31 Sc8P1nQ7fYLFGmPAbSfC1CGoUdv36J0aBU4fdI9uNnkmuCf5PdADoq5TSTLpFYQYws 2w47CqvnhbPfm5SwftsRSvrbXMUPP1XMC47ZJTWPcOU0AzChLy378s5KiIO95EpN6r 8+TaUp1VlDVIarwBBa6EQ8pGBVuQl8/D8ZPySUetYy+b9iEBWRlBjoP7yG8KBvFIQA 37rRBffoBenvw== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qJ7EV-00070G-26; Tue, 11 Jul 2023 08:52:24 +0200 Date: Tue, 11 Jul 2023 08:52:23 +0200 From: Johan Hovold To: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= Cc: Ajay Agarwal , Manivannan Sadhasivam , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230710170608.GA346178@rocinante> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 11, 2023 at 02:06:08AM +0900, Krzysztof WilczyƄski wrote: > > > > > > Finally, note that the intel-gw driver is the only driver currently not > > > > > > providing a start_link callback and instead starts the link in its > > > > > > host_init callback, and which may avoid an additional one-second timeout > > > > > > during probe by making the link-up wait conditional. If anyone cares, > > > > > > that can be done in a follow-up patch with a proper motivation. > The whole conversation above about the intel-gw driver: would something > need to be addressed here? Or can I pick the suggested fix? No, it's just another indication that the offending commit was confused. 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. > > > My apologies for adding this regression in some of the SOCs. > > > May I suggest to keep my patch and make the following change instead? > > > This shall keep the existing behavior as is, and save the boot time > > > for drivers that do not define the start_link()? > [...] > > > I just realized that Fabio pushed exactly the same patch as I suggested > > here: > > https://lore.kernel.org/all/20230704122635.1362156-1-festevam@gmail.com/. > > I think it is better we take it instead of reverting my commit. > > Will do. I will also make sure that we have correct attributions in place. As I mentioned in the commit message, I think the commit should just be reverted and if there's a valid argument to be made for a similar type of change (without the breakage), that can be done as a follow-up with a proper motivation. Johan