From patchwork Thu Nov 16 07:47:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christian Zigotzky X-Patchwork-Id: 838435 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yctnW64q0z9t6k for ; Thu, 16 Nov 2017 18:54:55 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=xenosoft.de header.i=@xenosoft.de header.b="CFFv1OkW"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3yctnW4fVmzDr21 for ; Thu, 16 Nov 2017 18:54:55 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=xenosoft.de header.i=@xenosoft.de header.b="CFFv1OkW"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (helo) smtp.helo=mo6-p00-ob.smtp.rzone.de (client-ip=2a01:238:20a:202:5300::12; helo=mo6-p00-ob.smtp.rzone.de; envelope-from=chzigotzky@xenosoft.de; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=xenosoft.de header.i=@xenosoft.de header.b="CFFv1OkW"; dkim-atps=neutral X-Greylist: delayed 366 seconds by postgrey-1.36 at bilbo; Thu, 16 Nov 2017 18:53:25 AEDT Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3yctln5N5qzDqsT for ; Thu, 16 Nov 2017 18:53:24 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1510818801; s=domk; d=xenosoft.de; h=Content-Language:Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Subject:From:To; bh=dyF/zvP9phDjol9pKbiSVQR313BN2OooeYtju1jdrjU=; b=CFFv1OkWg6VKo8IWgG4Hz7MHvZNZTtDZfSyjTe8wPfoqXwtwDEGGgPpvrXvwGmCS7L 2vAV7vsGs9PBUXh9TJLdKDwsbT5n2Nlq/RpQH69DpcSyS4WtGJ6rKXltxgkvhytJ7fV8 8BFNRuFnXjaxVfeGlp0LxOYZBCw6gTclU9wNw= X-RZG-AUTH: :L2QefEenb+UdBJSdRCXu93KJ1bmSGnhMdmOod1DhGM4l4Hio94KKxRySf+VvAflxJtIS4kwlxdoO X-RZG-CLASS-ID: mo00 Received: from [192.168.1.139] (ppp-188-174-80-201.dynamic.mnet-online.de [188.174.80.201]) by smtp.strato.de (RZmta 42.9 DYNA|AUTH) with ESMTPSA id m08e38tAG7l9oAg (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Thu, 16 Nov 2017 08:47:09 +0100 (CET) To: linuxppc-dev@lists.ozlabs.org From: Christian Zigotzky Subject: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus Message-ID: Date: Thu, 16 Nov 2017 08:47:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux ppc64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Language: de-LU X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Hi All, Just a small patch for the P.A. Semi Nemo board: ----- ---- This is my first patch on this mailing list. Sorry if it isn't in a good quality. I am still learning. I hope you can add it. Thanks, Christian diff -rupN a/drivers/pci/probe.c b/drivers/pci/probe.c --- a/drivers/pci/probe.c    2017-11-16 08:18:40.504012010 +0100 +++ b/drivers/pci/probe.c    2017-11-16 08:17:22.044368405 +0100 @@ -2219,6 +2219,8 @@ static int only_one_child(struct pci_bus      if (!parent || !pci_is_pcie(parent))          return 0; +    #ifndef CONFIG_PPC_PASEMI_NEMO +    // SB600 for the Nemo board has non-zero devices on non-root bus.      if (pci_pcie_type(parent) == PCI_EXP_TYPE_ROOT_PORT)          return 1; @@ -2231,6 +2233,7 @@ static int only_one_child(struct pci_bus      if (parent->has_secondary_link &&          !pci_has_flag(PCI_SCAN_ALL_PCIE_DEVS))          return 1; +    #endif      return 0;  }