Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4113109pxk; Tue, 22 Sep 2020 10:32:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwqPOY1yGGLN85dJ0VJboRSV65VnDVDChQOOnbK1CbfJdItVKEbNPQUeOr5XQYs3cZLpcB X-Received: by 2002:a17:906:7c82:: with SMTP id w2mr6022377ejo.87.1600795943737; Tue, 22 Sep 2020 10:32:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600795943; cv=none; d=google.com; s=arc-20160816; b=vt7yp+ITdcFnVP9hhd06xzA50XzR1z6auQlT26JIiDj3h3KcNptSDxK9rmtovMoS5o GZ8RY096HZc7AY9WG558U1cJM63YCi4LeWgySNkFmqllM1rc0IyhyvqXA+c/xZTm65Xe LmQ1YpyhLiwIyDVT56/D6IPnT1V44jX0Apy6OolLL0rSLx8Ru/CqqNy1ycb3VOmkptcU 3nXP6lW1kjYPt+IECsodpgGRSoHZDnE+d/2SLV3ksIZSlUJLl0pQPWQ5ko4aNzLfMzaw BfxeYWLExXivP7D0wdVpJc80wdGiWwEBVOietbX86LsicUC0FFi++F8i7v2CFrxCUFtH oZRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=h/Ld3B+y9ti44HaX9WBK4umuicsG2Hw4yBOtkCQsXm0=; b=RE+lS74G93/gUe9+dAnr9PnZyoU4a8r5ozvndYISwibuiwFihqmG5ewL+VoWeZmTs8 3eLsxmQX0ZANFgyPH/CK/g6TUsUcgR6j/2qKi3JWQH9FRYy8+J0ZVuLFl8WH7YOA+cW5 6AUCDMqJ/r96kxG6Mz0I4IW43ZprjKWZwTfXC/9Ple67cCVokgiMd+NkGxS7Ag7s5lx/ 3PM681n0o3QTiG5+ijuRlIaOJKz8ZiWGBoIpyJYopjFyquMT+5efZvqoU+IdS4aF3eum fATWa/xQnHqXg4dZKnQJ9V2HMEqVuz6n9IAIyh006/jjdgydaN/wS1csUEHuSO1YDqZh t33A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hA8Xdhw2; 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 z19si10804995edx.205.2020.09.22.10.31.58; Tue, 22 Sep 2020 10:32:23 -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; dkim=pass header.i=@kernel.org header.s=default header.b=hA8Xdhw2; 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 S1726623AbgIVRan (ORCPT + 99 others); Tue, 22 Sep 2020 13:30:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:39008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726526AbgIVRam (ORCPT ); Tue, 22 Sep 2020 13:30:42 -0400 Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 429FF22206; Tue, 22 Sep 2020 17:30:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600795842; bh=h/Ld3B+y9ti44HaX9WBK4umuicsG2Hw4yBOtkCQsXm0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hA8Xdhw2USh4kEEPqjKDIT0mhCkpZpCochvP0DjCFvzxc+vAhm+YpgHLL9mZu5HeU GakRDxsjIPzPj53y2Za7Fwa3UN8BOj34bJ5v+X1TB8hzlE1YanZlO80Qyx0G018TVo vmRBRRVaboUuhyQvTKIIuBkvUDsfzT07l4CyQb6Y= Received: by mail-oi1-f176.google.com with SMTP id v20so21914043oiv.3; Tue, 22 Sep 2020 10:30:42 -0700 (PDT) X-Gm-Message-State: AOAM532VnlAaIX+rJmpqHBcv+D/A4hGgmVZj4YvK30PBIo+3WFDGnDoF X8mvKEtdsnrX308ALJ7Cdf9we5pNIjiGYIYTLA== X-Received: by 2002:aca:1711:: with SMTP id j17mr3427994oii.152.1600795841602; Tue, 22 Sep 2020 10:30:41 -0700 (PDT) MIME-Version: 1.0 References: <20200921074953.25289-1-narmstrong@baylibre.com> In-Reply-To: <20200921074953.25289-1-narmstrong@baylibre.com> From: Rob Herring Date: Tue, 22 Sep 2020 11:30:30 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] PCI: dwc/meson: do not fail on wait linkup timeout To: Neil Armstrong Cc: Lorenzo Pieralisi , Yue Wang , PCI , "open list:ARM/Amlogic Meson..." , linux-arm-kernel , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 1:50 AM Neil Armstrong wrote: > > 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. I think all, not most DWC drivers should be aligned. Plus the code here is pretty much the same, so I'm working on moving all this to the common DWC code. Drivers that need to bring up the link will need to implement .start_link() (currently only used for EP mode). Most of the time that is just setting the LTSSM bit which Synopsys thought letting every vendor do their own register for was a good idea. Sigh. Rob