From patchwork Mon Sep 21 07:49:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11788637 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9BC22618 for ; Mon, 21 Sep 2020 07:50:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7F64E20874 for ; Mon, 21 Sep 2020 07:50:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="zluKvCTL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726357AbgIUHuA (ORCPT ); Mon, 21 Sep 2020 03:50:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbgIUHuA (ORCPT ); Mon, 21 Sep 2020 03:50:00 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1880CC061755 for ; Mon, 21 Sep 2020 00:50:00 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id d4so11120337wmd.5 for ; Mon, 21 Sep 2020 00:50:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eQeugMSbNm4MoGJLzLTQ1K90HqMCkQsDeLBTGL4VkMo=; b=zluKvCTLGO4Q1xNTMRSk0CyQwXbjLielLIiaHrs4aJ5B23YEK6UYXhfPZMmf68MMOU iXyvqIhrO/BHAKZf7qyHRQtoTetEsfzpsvASAnylyINqR4S2WdmLE/h6s8/Jnuk2wjJR fEPUhakN0RlOs2+ggSV6P5Xy7mjIdLSYAC+40Ghdh0WnDP2O+E85ah/3weYMe56st1sT L961A5Y/17Ncdz8TwYz8QJjIUHfR+8nMcSlRIUnr7CmhLHXpVPuFzY4xoXgLn7GGbr5t qicW/hvk80C9FR5o0cel+FJDhEML91OlwWYTx8HyuHfkGeB9u5qbtP5S/5szRwLCzVl4 TjiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eQeugMSbNm4MoGJLzLTQ1K90HqMCkQsDeLBTGL4VkMo=; b=mXCYthjSt8pJE5KFDru8HixXBCcpnqLq9SpWwrNCdWf/l4RvGbWChHuep/NVMNsjon Y77Q7eXq2Ygv/fE48j7QE/2cDm3KanCWMkbh6AMOp7Bt/+xg9m2E7+XWj8ls4VBVZD4m oigP/S6C+COkEHCt/e262py/K5eYocBVNSyChAG8Hi3IiaRdRwbF2E1JXIkrabP3SUSS n4rULjFCbzqj/b8bud0w2FY0wro3ApUAXoxz7cqLWzzjyQleimUwYUcnzSx1ZI40XpXU cox+OTwGdKVdxUBO890KmfUoc0id060kwyTgQfu5lMrerKoh/88Ged0i9TBARp+KXSF5 rdGg== X-Gm-Message-State: AOAM530Wt4qNnMMBkTQ2hjCq7l0JfCF/F2MjlWgiCl6XlE9YNCpgmgNJ i3oFz3W+dtwgbc8w8/E0TO1NHg== X-Google-Smtp-Source: ABdhPJwM5F5CftRbSvYRv3kUr5yxBYf5c+QTnBmrJtpThRGN8qtcsxzNDcx41GF7jYUmHq+NVA49eA== X-Received: by 2002:a7b:ca4a:: with SMTP id m10mr22398950wml.11.1600674598674; Mon, 21 Sep 2020 00:49:58 -0700 (PDT) Received: from bender.baylibre.local (home.beaume.starnux.net. [82.236.8.43]) by smtp.gmail.com with ESMTPSA id o16sm17854778wrp.52.2020.09.21.00.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2020 00:49:58 -0700 (PDT) From: Neil Armstrong To: lorenzo.pieralisi@arm.com, yue.wang@Amlogic.com, robh@kernel.org Cc: linux-pci@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong Subject: [PATCH] PCI: dwc/meson: do not fail on wait linkup timeout Date: Mon, 21 Sep 2020 09:49:53 +0200 Message-Id: <20200921074953.25289-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org When establish link timeouts, probe fails but the error is unrelated since the PCIe controller has been probed succesfully. Align with most of the other dw-pcie drivers and ignore return of dw_pcie_wait_for_link() in the host_init callback. Signed-off-by: Neil Armstrong Tested-by: Kevin Hilman --- drivers/pci/controller/dwc/pci-meson.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/pci/controller/dwc/pci-meson.c b/drivers/pci/controller/dwc/pci-meson.c index 33deb290c4e7..846275e68fbc 100644 --- a/drivers/pci/controller/dwc/pci-meson.c +++ b/drivers/pci/controller/dwc/pci-meson.c @@ -383,10 +383,7 @@ static int meson_pcie_host_init(struct pcie_port *pp) pp->bridge->ops = &meson_pci_ops; - ret = meson_pcie_establish_link(mp); - if (ret) - return ret; - + meson_pcie_establish_link(mp); dw_pcie_msi_init(pp); return 0;