From patchwork Wed Oct 23 05:12:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Harvey X-Patchwork-Id: 3086121 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 909DFBF924 for ; Wed, 23 Oct 2013 05:12:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B3375202C1 for ; Wed, 23 Oct 2013 05:12:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D534020272 for ; Wed, 23 Oct 2013 05:12:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750870Ab3JWFM3 (ORCPT ); Wed, 23 Oct 2013 01:12:29 -0400 Received: from mail-pb0-f53.google.com ([209.85.160.53]:60371 "EHLO mail-pb0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750820Ab3JWFM2 (ORCPT ); Wed, 23 Oct 2013 01:12:28 -0400 Received: by mail-pb0-f53.google.com with SMTP id up7so310716pbc.26 for ; Tue, 22 Oct 2013 22:12:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TWcTfD8IKE3LpKgVSog65VKLRj6cXpPYTZ8gVC47TyM=; b=BYarjiZEp51h2cx8SihxLhE/TjWqG9UQYAw4HPJRYw5C/OqsWut9QKG2TjEzvPt8KW A5lQYFVaE1cfNG0lUaUUdPRz2QMrGk2qMkD+CnaB1YRT00biiznW4A6eMqEBwXIwsmwc +Db3TLbg11jKAQkl9Sr0c66QsLMkL+mNiqb7XLw3EJrkTJ3/HwHUqRDJ5xtRMms2K1iR zzVBm500QZrAk9NFfyLOE7eXK6xIGby5FlX/G63k7sXi55yiv24kgdkw7Uev2APdozlG 7U/DY81tymPsNth3erOdxA1W3KjmxiI0y+IlKKbm/WqzJtTy2lb1jpnKYuZ6mzcJeC41 YP8A== X-Gm-Message-State: ALoCoQnCiwwOyK1esByvgXZFtAgCxNESZOmcKn4GGmmjBBcAmYKKeUUjAT0S1mZRzmEMRfqcMaIx X-Received: by 10.68.109.195 with SMTP id hu3mr1273152pbb.123.1382505148236; Tue, 22 Oct 2013 22:12:28 -0700 (PDT) Received: from localhost.localdomain (68-189-91-139.static.snlo.ca.charter.com. [68.189.91.139]) by mx.google.com with ESMTPSA id tz3sm1649639pbc.20.2013.10.22.22.12.26 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Oct 2013 22:12:27 -0700 (PDT) From: Tim Harvey To: linux-pci@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Marek Vasut , Bjorn Helgaas , Frank Li , Jingoo Han , Mohit KUMAR , Pratyush Anand , Richard Zhu , Sascha Hauer , Sean Cross , Shawn Guo , Siva Reddy Kallam , Srikanth T Shivanand , Troy Kisky , Yinghai Lu Subject: [PATCH] PCI: imx6: increase link startup Date: Tue, 22 Oct 2013 22:12:18 -0700 Message-Id: <1382505138-23286-1-git-send-email-tharvey@gateworks.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP An increase link startup delay is required when certain PCI switches are attached to the root complex. This was tested with a Pericom switch and a PLX switch. From: Marek Vasut Signed-off-by: Marek Vasut Acked-by: Tim Harvey Acked-by: Shawn Guo --- drivers/pci/host/pci-imx6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c index 90fce05..34c571a 100644 --- a/drivers/pci/host/pci-imx6.c +++ b/drivers/pci/host/pci-imx6.c @@ -318,7 +318,7 @@ static void imx6_pcie_host_init(struct pcie_port *pp) while (!dw_pcie_link_up(pp)) { usleep_range(100, 1000); count++; - if (count >= 10) { + if (count >= 200) { dev_err(pp->dev, "phy link never came up\n"); dev_dbg(pp->dev, "DEBUG_R0: 0x%08x, DEBUG_R1: 0x%08x\n",