From patchwork Thu Sep 1 10:14:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bharat Kumar Gogada X-Patchwork-Id: 9308765 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.web.codeaurora.org (Postfix) with ESMTP id 0C6E9607D6 for ; Thu, 1 Sep 2016 10:15:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F11E7292B1 for ; Thu, 1 Sep 2016 10:15:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5F15292CB; Thu, 1 Sep 2016 10:15:57 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 95625292BB for ; Thu, 1 Sep 2016 10:15:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754163AbcIAKPv (ORCPT ); Thu, 1 Sep 2016 06:15:51 -0400 Received: from mail-cys01nam02on0072.outbound.protection.outlook.com ([104.47.37.72]:36484 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752164AbcIAKPI (ORCPT ); Thu, 1 Sep 2016 06:15:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+uFKOd16ED4hBP5tuWtYHGz2kZfgt3Mry+E/Z67NwLQ=; b=fMimrFYK6wq2L51S1gvFV7igZHwQkSxwjQGnsTcrEFzU4W56WxDARcqt0z588zY25fpRNsyq4tNQ8/pRjMcDNbfisBdX2Fnhz3xlaeFvFwfoDIUkmAUa1t26xt0kNImP4nO7XK7hg/t8dzdyqS0XRJQUgsBOxZgwxYZFgyHfIjI= Received: from BN6PR02CA0054.namprd02.prod.outlook.com (10.175.94.144) by BN3PR02MB1141.namprd02.prod.outlook.com (10.162.168.147) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9; Thu, 1 Sep 2016 10:15:06 +0000 Received: from BL2NAM02FT027.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::209) by BN6PR02CA0054.outlook.office365.com (2603:10b6:404:f9::16) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.587.13 via Frontend Transport; Thu, 1 Sep 2016 10:15:06 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; wanadoo.fr; dkim=none (message not signed) header.d=none;wanadoo.fr; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT027.mail.protection.outlook.com (10.152.77.160) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.587.6 via Frontend Transport; Thu, 1 Sep 2016 10:15:06 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1bfP1T-000398-Fc; Thu, 01 Sep 2016 03:15:03 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1bfP1R-0002Ls-Ul; Thu, 01 Sep 2016 03:15:02 -0700 Received: from xsj-pvapsmtp01 (smtp2.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id u81AErHm011705; Thu, 1 Sep 2016 03:14:53 -0700 Received: from [172.23.64.217] (helo=xhd-lin64re105.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1bfP1I-0002Ic-O6; Thu, 01 Sep 2016 03:14:53 -0700 Received: by xhd-lin64re105.xilinx.com (Postfix, from userid 45489) id 541B1CA1C4E; Thu, 1 Sep 2016 15:44:52 +0530 (IST) From: Bharat Kumar Gogada To: , , , , , , , , CC: , , , , Bharat Kumar Gogada Subject: [PATCH 5/6] PCI: Xilinx: Read more than one function per device. Date: Thu, 1 Sep 2016 15:44:45 +0530 Message-ID: <1472724886-28301-5-git-send-email-bharatku@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1472724886-28301-1-git-send-email-bharatku@xilinx.com> References: <1472724886-28301-1-git-send-email-bharatku@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-22548.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(189002)(199003)(36756003)(42186005)(4326007)(19580405001)(19580395003)(2950100001)(103686003)(63266004)(92566002)(50986999)(90966002)(626004)(5660300001)(106466001)(76176999)(5003940100001)(5890100001)(2906002)(33646002)(11100500001)(48376002)(50466002)(36386004)(4001430100002)(229853001)(46386002)(45336002)(305945005)(50226002)(5001770100001)(7846002)(47776003)(87936001)(189998001)(586003)(356003)(52956003)(86362001)(8676002)(8936002)(81156014)(81166006)(107886002)(7416002)(2201001)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR02MB1141; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; PTR:unknown-60-83.xilinx.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT027; 1:f0LlWciHqE5SwcttShODFQPY/iU4WMzsVjiASCaiGJGh5iB0OX/ShHzvVKp+dVCqcDhV18ksUhtdALoyXC3KNzE60vjSFl3nseDx73Aw1OZSn5t//lH4W80LAjFPEl/UkiaArYRak7PKCFSl8J0297npldCmfKIR4bJzd5cFQcjSNvfPtIeWCdjlfcZy2gPX1Hu/OWQd1xHRgDza+zviyHsXWiQW1byrc5Ka9ZxD/OM6nIbwN1m6H6xXEyAppcVCemRgs8xKgtewcGiGJu316v927CJAD1PKJo4g2IMI+gH1pOgC5eVNsnxMwQQ3slIA5+VQTUgxDtHdYAKiaqz+VpLG0C1Mx+RXfPqgtmphZPCKwUBk27otS+dsN2zIcfBxxoU2woikTX/bxto57/gQ7rrgbWEw7HLo0QJowt1x6YtgOruFW8XtU6IQjHn/Z9FfADRQv+YeijWWKWBSn2TpxroOFEWW0glIm0r8BPA7tGX2FehABVAea4JkSk+f4FhU8XjiGD8gnBOiZV4lvKdI8OSpgTdfaZ1bZiWFlUtyTDQnPQLm70TugHkuCIAoCJ3BMc+4b68r2sBl+d6S6Qyv7FjdN+m5XJdmIK/dNeNfB6VoMAdYCkBQEPHm994STiL8U7/uNyskZ+X9hrXfpMuqzA== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 5c3b8300-ba09-46f7-9701-08d3d250d890 X-Microsoft-Exchange-Diagnostics: 1; BN3PR02MB1141; 2:1VX6Tua6j7hlJfgj1yxkQJ1xG5wE1glyYWh22FMB5ndkF/TRoOJU24jrM7+tt9Z846GBAvso1ks9mu6MabfU4VdlqznL61a81yuxhpikchcUGaQuoTM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CgAk+Xk9w2mgzARa70P0pz/BDKokvfWB3nyVMXfahq2jL3NGJM3CI152+5+r3MIX/BraP5hO6kxIxLXxeKfJcDJFx/FwYwv7MRSEto75nNe6DeBD1+TRhl1+QAh6HLDT/fYBYP2l51S6IcU/2im9t3rDdXy7IGAD05PAlmK1tUfw/wyvvGlD05Ab7quSKKEzOAuX2ctPFfs46XGVnzNpZnIwyjf X-Microsoft-Exchange-Diagnostics: 1; BN3PR02MB1141; 31:QtF3oZb9Gwt2nJp9mPGwsojtTvThMhYRBAjMabB01fjFwGH1j/uhabUmhVUz1iY1zUd745LRE1Axah+8MI3vhIt8r6FIhCGWPhXpLM/7JTNsHviww4mRfZW6SRnQrbv9yyHJC9QsX4TiiYD8jIgSqT8UwUrlL1EPdI2ixEngLl0y8LxofgmhoUn1HvJc/+oIfB/DGEVVGpyR+d2IMQfaUmydhZyp5fE8HStOJGB2a1c=; 20:/QsPN+rRPOK77Vzh+mkzWAMnxpw6uCV/tsM64sms8enEogTE+ukKr2X1i0ApZcFFr8c+TkXA1XN6Pla5E3xCWd3AsXTcVkfjINUoi3sUo8cUhtKN3z/eU6QRR/hQilF0sdhsWlU25T2wev0K3Dw3q++sMgMIzwqW6HUbVHbAxEqY5Wr/dIN6jER1lHHktLMZ5yXnL+2YE046tyyK3mz4ocMXRDaVEhceKc8f8L6XRHXQyv3Ls6wNJeFCi44ZRDLM38IN62Ml+zSSeU2FyZ5PssiGxZoHuM8Bb/teo3ca40vLG7w0Ec0lugsapjwWCAHsMMNO/JuMqwtXTDH+JnhSFbfHjimY6EvMbcpCZ2HMkZR6mh8rlzTixtTJ1pz+EvbKZbpBZItcNRabcSNY0b0Y47nVN62Ull0f4m167bOWoIYNk9Fl6zTdPnnG1eG8RuMm7WURhrRA8MwvFAyVBZN5iPC5V4S/PM8IOSBbuEVtTYnsn77n1vzZKaZ9CQRFqk8e X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13015025)(13017025)(13023025)(13018025)(13024025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:BN3PR02MB1141; BCL:0; PCL:0; RULEID:; SRVR:BN3PR02MB1141; X-Microsoft-Exchange-Diagnostics: 1; BN3PR02MB1141; 4:HktMk+oVdE2UkY84VbU6pq6Ftg4XheZp4ou1b35PLZiLDzmkDN7zjbhjUUTlGy9WiLp3y224N/5K3eAo9ziQy/zqFL/ivtD0gC9nnV8qjjVnblQlffN8oDAAUeexbh7R5RGO1X9BqmWrs7goTj+smrGxLR27FU+rosJuP8228pE6l1uU6l/7bcvvILyVwogT4HSk1ybJYk+FZ/Tn99W0CvGodyzz1n47E66X/7WGl36K9SFZA+zzQ+0TaAp//167sHU9WivzY5KS93fsnpQZ65ARhiIM5/mGSMBpdM2+5+hJiu7vFYV22+/UOsaajbN9cbQrsZMVThhw6KQG9yQY+USh3StTQ0Xayk5Q+58fq357TPUs1NquRmN5z+ON4gfKwzHt8K38emv6hyogVEtriit8vDwHFdGtBrpVmAaFaJ0mgkG2T30LLayayqSjubc6WmU+urjkaucRKIeKzpXjRBmHEiqRpAlW+gmgB7hsLm6DqOAxd4adIDflzinyMIlq20fGtyzIHpO+EHfyPz8aefbLMFpQiESQf7QzEKwfwHE= X-Forefront-PRVS: 0052308DC6 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR02MB1141; 23:ME4w7JwwdDSN9P4r8qbejrNQCtu3UqUiXUFdRqWqL?= =?us-ascii?Q?ajHNNY5bDggjzQHSrnSiCMCy+XhwBVc4FKNFd5DMAcjAgdtEchwKljQp+OZw?= =?us-ascii?Q?htFNBwQ3j9D84tg1mZH64Qc5BoSLy7spPB8uE2iIZhWiiThjubX9elQLozQM?= =?us-ascii?Q?MSZHSLRJ6Pb1tin8Zf+VlIS6W+pagwDefVlTMH8c16immJV6TMAof335ExI2?= =?us-ascii?Q?jFa+ip80eATo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a+HQF0/pJEZwXYGwRwQ0Rf4DjKlTEvjlcjgQss8m SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2016 10:15:06.0067 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR02MB1141 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 AXI PCIe supports multifunciton device. Removing unneccessary condition. Signed-off-by: Bharat Kumar Gogada --- drivers/pci/host/pcie-xilinx.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/pci/host/pcie-xilinx.c b/drivers/pci/host/pcie-xilinx.c index a276fa6..58b7a13 100644 --- a/drivers/pci/host/pcie-xilinx.c +++ b/drivers/pci/host/pcie-xilinx.c @@ -170,13 +170,6 @@ static bool xilinx_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) if (bus->number == port->root_busno && devfn > 0) return false; - /* - * Do not read more than one device on the bus directly attached - * to RC. - */ - if (bus->primary == port->root_busno && devfn > 0) - return false; - return true; }