Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755097AbdC3U5c (ORCPT ); Thu, 30 Mar 2017 16:57:32 -0400 Received: from smtp2-g21.free.fr ([212.27.42.2]:29638 "EHLO smtp2-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754586AbdC3U5a (ORCPT ); Thu, 30 Mar 2017 16:57:30 -0400 Subject: Re: [PATCH v3 0/2] Tango PCIe controller support To: linux-pci , Linux ARM Cc: Marc Gonzalez , Bjorn Helgaas , Robin Murphy , Lorenzo Pieralisi , Liviu Dudau , David Laight , Thibaud Cornic , Phuong Nguyen , LKML References: <5309e718-5813-5b79-db57-9d702b50d0f9@sigmadesigns.com> From: Mason Message-ID: <1561c381-bfa7-6e4d-a016-8ad7293a60ce@free.fr> Date: Thu, 30 Mar 2017 22:56:58 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49 MIME-Version: 1.0 In-Reply-To: <5309e718-5813-5b79-db57-9d702b50d0f9@sigmadesigns.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 773 Lines: 26 On 29/03/2017 13:11, Marc Gonzalez wrote: > PCI: Add tango MSI controller support > PCI: Add tango PCIe host bridge support I've run into an issue. If I boot the system with earlyprintk enabled (as I've been doing throughout my dev), things work as expected. But if I boot with earlyprintk disabled, then the system does not "see" the PCIe board, because reading the vendor ID returns 0xffffffff. What we think is happening, is that when earlyprintk is disabled, the system proceeds much faster through the various inits, and the PCIe init happens when PCIe link training has not completed yet. If that is the case, then it seems I would need to check the link state in my probe function. Or would there be some other solution I haven't thought about? Regards.