From patchwork Tue Aug 28 17:22:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ray Jui X-Patchwork-Id: 10578881 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6EE6D175A for ; Tue, 28 Aug 2018 17:23:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 447BE286C0 for ; Tue, 28 Aug 2018 17:23:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34072288FD; Tue, 28 Aug 2018 17:23:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3173286C0 for ; Tue, 28 Aug 2018 17:23:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727040AbeH1VPt (ORCPT ); Tue, 28 Aug 2018 17:15:49 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:43380 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726833AbeH1VPt (ORCPT ); Tue, 28 Aug 2018 17:15:49 -0400 Received: by mail-qt0-f196.google.com with SMTP id g53-v6so2581854qtg.10 for ; Tue, 28 Aug 2018 10:23:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=8/9S4oNIuaIwN4/KHGrMqpYUYY2ShYnEoEe1dn+7sXs=; b=NJxgFelPJNY0tZo6wVPeuqONacOX5cS2PYkHNmJJn/XeJmRJD6qcdy9ebXIn9fpAqS mpehpWrdd7O4YddZvdefdFksAKB8nWNnvwh6kZmZYkmeI6/TDWcCWI7fZ5AtN61Z05ks InrJVXa6BoVyQz0xqtLVqdlna42SXMpafeJuY= 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; bh=8/9S4oNIuaIwN4/KHGrMqpYUYY2ShYnEoEe1dn+7sXs=; b=Hzklp8HDuLq1NnC8jvD0/CFNo5F9HBwzC7JAPooVLDiSWcnAM+DtYis677K9CqG5Uq OZv4ndmNnzTmsHJT2egGtf38TKvU/edvojVKH3mDyta+cRfkhmwyRz26W4jJCiyorM1S vRXtue7WeoPOdugEWr5PjwK0SjftU/4NrLvQxak/h6cZNUBQMwFoSC9AngjBGzrdi9Jo xGwPVzfdx9grbF5+m4FZALvVs2RBNok/dC+r4M+j4TIOfvUUuhviVmZGBv9jgRJqkhr9 6Jef7/S0yptN4Dk6Nmm0kvncHnymmIx1TaG6IfvWg/YNd8pzoTCUIm9gIcQ8+1fqMBT4 AEKA== X-Gm-Message-State: APzg51D9WN4VKeAWxeQ73OqMeNDVIQcqdgsxPufHWw2R4YKVpt8nyJEu hTQ6Qa7nXgrL2aavfHrFUgRYBA== X-Google-Smtp-Source: ANB0Vda/lxGhzT9eNlrKVfZis0C0qodZcSwdUyc4HihLJ3/n9UgkukV3Gjunmk0kSz0KlkGrwjzNOQ== X-Received: by 2002:aed:21ac:: with SMTP id l41-v6mr2710899qtc.293.1535476990000; Tue, 28 Aug 2018 10:23:10 -0700 (PDT) Received: from rj-aorus.ric.broadcom.com ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id o18-v6sm981868qki.38.2018.08.28.10.23.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Aug 2018 10:23:08 -0700 (PDT) From: Ray Jui To: Lorenzo Pieralisi , Bjorn Helgaas Cc: Bjorn Helgaas , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org, Jitendra Bhivare , Ray Jui Subject: [PATCH] PCI: iproc: Remove PAXC slot check to allow VF support Date: Tue, 28 Aug 2018 10:22:58 -0700 Message-Id: <20180828172258.76629-1-ray.jui@broadcom.com> X-Mailer: git-send-email 2.17.1 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jitendra Bhivare Fix previous incorrect logic that limits PAXC slot number to zero only. In order for SRIOV/VF to work, we need to allow the slot number to be greater than zero. Fixes: 46560388c476c ("PCI: iproc: Allow multiple devices except on PAXC") Signed-off-by: Jitendra Bhivare Signed-off-by: Ray Jui Reviewed-by: Andy Gospodarek --- drivers/pci/controller/pcie-iproc.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/pci/controller/pcie-iproc.c b/drivers/pci/controller/pcie-iproc.c index 3160e9342a2f..c20fd6bd68fd 100644 --- a/drivers/pci/controller/pcie-iproc.c +++ b/drivers/pci/controller/pcie-iproc.c @@ -630,14 +630,6 @@ static void __iomem *iproc_pcie_map_cfg_bus(struct iproc_pcie *pcie, return (pcie->base + offset); } - /* - * PAXC is connected to an internally emulated EP within the SoC. It - * allows only one device. - */ - if (pcie->ep_is_internal) - if (slot > 0) - return NULL; - return iproc_pcie_map_ep_cfg_reg(pcie, busno, slot, fn, where); }