Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1068156ybj; Thu, 7 May 2020 14:07:16 -0700 (PDT) X-Google-Smtp-Source: APiQypIToaMcsa/yxbBHKXLnSpDwnGOEeH0LvGk2ZElK0UCEEdsYHiBuV1+Q1YbAdyCdaWg2Hx0P X-Received: by 2002:a17:907:b11:: with SMTP id h17mr14420192ejl.371.1588885636019; Thu, 07 May 2020 14:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588885636; cv=none; d=google.com; s=arc-20160816; b=FsFVoFnq0bXFKXwrgeF0LCy0+wW9Id2SXCb/3yPRcBJVDO2kjB9LRZKEoTjgDHOVUi QCPzzPQ8ikv5QyO7WY8HPh3jcJtFfRXB1NekPHa6nxlt+Ea3apJ+uyIbtjKnbY2YGOeD 9/GeJlRYRuuc0dXFhNETYN2Z8BTMFMg6zRc84W8PRQ/HlNkvCaUXnCgZ7QU9xmBOvZaG DZ1guR5oroN+PvdT5bRbhURcedeFRjm/uM6++sf3qFhvbPtIbHkn4jUZ7Q6PZ++pgP4K +z4461db+fey9BILfthn35D6OuzMgeUMIU7rNILS2a7WuYAnSBLUUoxb1ORve0l32O5W J//A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=GIj6kxDR7LGNuMotCOajJTwyR96cZe3Qpni2Sj/PoIY=; b=rKtIDAyqlB3EXMNs8NrcVIiQqibuQyDiIU2jUKHHVRnPWXqBEYf+XxuyxaqYXUTLWo +Exc6f6MH4EBlHrtui+flEv4JUcoZnyT0XDiJxrQ+CmbS8OsOwvalAFdKsTfVK+4ohNG 7/RBAbcfSwLQWqCoAVwS6FufQfr68u8YE87kZp2rrAG1KzYzbr9igxFdFOgQMFf3e2rz MEMvzEGR2r4+fI0mSesZ5eCPH+KQIRZf+x//FfruK4WCyj6oh7xIawTxIOegWb67lHm8 ngQBqCi+roD3CvkSUg6pOILfENRIeE2GpzVZIYKyccMJ9EM+H7yszH0lUg1mabtzsD+S rMaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn16si3989653edb.488.2020.05.07.14.06.52; Thu, 07 May 2020 14:07:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726480AbgEGVF1 (ORCPT + 99 others); Thu, 7 May 2020 17:05:27 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:41966 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbgEGVF0 (ORCPT ); Thu, 7 May 2020 17:05:26 -0400 Received: by mail-ot1-f67.google.com with SMTP id c3so5777838otp.8; Thu, 07 May 2020 14:05:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=GIj6kxDR7LGNuMotCOajJTwyR96cZe3Qpni2Sj/PoIY=; b=l1447p3gnOCNtkWw6U2Vu+6hvNC9desFaXzPss625l+w/mM/gaJJR0VUkUAot79vs9 8bbiBzoN0YgBySrbZS73PgupapeMyPJkn6WcDva4qohpguygt2oZ3hy9NDiE2aIC2Jzu Z3KBZzE4fD8lYrnGDmOLpB3+UwnG9UAZHRUXWdKb/LkLLqoPuH7ctouNg6hO25OfqO59 I9VEn9m8wZesTn5tePjyRaVe7A78AzV1nfxKCm47zBlZvjPDGactrktURIA+BdgfBeaX ygzr/3toYJSm0IChVGL+gvr89CJ3QS8m6E6aeBA9eT3x5FPnjkG8UqnVgG/XQbnENEIM qGEQ== X-Gm-Message-State: AGi0PuanioIEmGB/tzVX9Bba9EU5+0KvMkL5Ia7xO1vW0fi/7SJ2WLJB 3/Xbw4KZLqUknOVzLlinG/Uf774= X-Received: by 2002:a05:6830:1592:: with SMTP id i18mr12868544otr.190.1588885525673; Thu, 07 May 2020 14:05:25 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id e13sm1619297otj.46.2020.05.07.14.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 14:05:24 -0700 (PDT) Received: (nullmailer pid 23601 invoked by uid 1000); Thu, 07 May 2020 21:05:23 -0000 Date: Thu, 7 May 2020 16:05:23 -0500 From: Rob Herring To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Thomas Petazzoni , Lorenzo Pieralisi , Andrew Murray , Bjorn Helgaas , Remi Pommarel , Marek =?iso-8859-1?Q?Beh=FAn?= , Tomasz Maciej Nowak , Xogium , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v4 01/12] PCI: aardvark: Train link immediately after enabling training Message-ID: <20200507210523.GA23539@bogus> References: <20200430080625.26070-1-pali@kernel.org> <20200430080625.26070-2-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200430080625.26070-2-pali@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 30 Apr 2020 10:06:14 +0200, =?UTF-8?q?Pali=20Roh=C3=A1r?= wrote: > Adding even 100ms (PCI_PM_D3COLD_WAIT) delay between enabling link > training and starting link training causes detection issues with some > buggy cards (such as Compex WLE900VX). > > Move the code which enables link training immediately before the one > which starts link traning. > > This fixes detection issues of Compex WLE900VX card on Turris MOX after > cold boot. > > Fixes: f4c7d053d7f7 ("PCI: aardvark: Wait for endpoint to be ready...") > Signed-off-by: Pali Roh?r > --- > drivers/pci/controller/pci-aardvark.c | 15 +++++++++------ > 1 file changed, 9 insertions(+), 6 deletions(-) > Acked-by: Rob Herring